settings; $this->_timezone = $data->timezone; $this->_dateFormat = $data->dateformat; $this->_timeFormat = $data->timeformat; $this->_defaultList = $data->defaultlist; $this->_language = $data->language; } /** * Returns the user's Olson timezone, or the empty string if the user has * not set a timezone. (Ex: Australia/Sydney) * * @return string */ public function getTimezone() { return $this->_timezone; } /** * Returns whether or not an American date format is being used. * * @return bool TRUE for American (e.g. 02/14/06), FALSE for European * (e.g. 14/02/06) */ public function getDateFormat() { return $this->_dateFormat; } /** * Returns whether or not a 24 hour time format is being used. * * @return bool TRUE for 24 hour time (e.g. 17:00), FALSE for 12 hour time * (e.g. 5pm) */ public function getTimeFormat() { return $this->_timeFormat; } /** * Returns the identifier of the user's default list. * * @return int Identifier for the default list, or NULL if no default is * set */ public function getDefaultList() { return $this->_defaultList; } /** * Returns the user's language. * * @return string Language (ISO 639-1 code) */ public function getLanguage() { return $this->_language; } }