/**
  * Returns Google setting
  *
  * @return Eden_Google_Calendar_Settings
  */
 public function settings()
 {
     return Eden_Google_Calendar_Settings::i($this->_token);
 }
Exemplo n.º 2
0
if(!class_exists('Eden_Google_Calendar')){class Eden_Google_Calendar extends Eden_Google_Base{const URL_CALENDAR_COLOR='https://www.googleapis.com/calendar/v3/colors';public static function i(){return self::_getMultiple(__CLASS__);}public function __construct($token){Eden_Google_Error::i()->argument(1,'string');$this->_token=$token;}public function acl(){return Eden_Google_Calendar_Acl::i($this->_token);}public function calendars(){return Eden_Google_Calendar_Calendars::i($this->_token);}public function getColors(){return $this->_getResponse(self::URL_CALENDAR_COLOR);}public function event(){return Eden_Google_Calendar_Event::i($this->_token);}public function freebusy(){return Eden_Google_Calendar_Freebusy::i($this->_token);}public function lists(){return Eden_Google_Calendar_List::i($this->_token);}public function settings(){return Eden_Google_Calendar_Settings::i($this->_token);}}}