/** * Returns google analytics methods * * @param *string * @return Eden_Google_Analytics */ public function analytics($token) { //Argument 1 must be a string Eden_Google_Error::i()->argument(1, 'string'); return Eden_Google_Analytics::i($token); }
if(!class_exists('Eden_Google')){class Eden_Google extends Eden_Class{public static function i(){return self::_getSingleton(__CLASS__);}public function auth($clientId,$clientSecret,$redirect,$apiKey=NULL ){Eden_Google_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'url')->argument(4,'string','null');return Eden_Google_Oauth::i($clientId,$clientSecret,$redirect,$apiKey);}public function analytics($token){Eden_Google_Error::i()->argument(1,'string');return Eden_Google_Analytics::i($token);}public function calendar($token){Eden_Google_Error::i()->argument(1,'string');return Eden_Google_Calendar::i($token);}public function checkout($merchantId){Eden_Google_Error::i()->argument(1,'string');return Eden_Google_Checkout_Form::i($merchantId);}public function contacts($token){Eden_Google_Error::i()->argument(1,'string');return Eden_Google_Contacts::i($token);}public function drive($token){Eden_Google_Error::i()->argument(1,'string');return Eden_Google_Drive::i($token);}public function imap($user,$token){Eden_Google_Error::i()->argument(1,'string')->argument(2,'string');return Eden_Google_Imap::i($user,$token);}public function smtp($user,$token){Eden_Google_Error::i()->argument(1,'string')->argument(2,'string');return Eden_Google_Smtp::i($user,$token);}public function maps($token){Eden_Google_Error::i()->argument(1,'string');return Eden_Google_Maps::i($token);}public function plus($token){Eden_Google_Error::i()->argument(1,'string');return Eden_Google_Plus::i($token);}public function shortener($key,$token){Eden_Google_Error::i()->argument(1,'string')->argument(2,'string');return Eden_Google_Shortener::i($key,$token);}public function youtube($token,$developerId){Eden_Google_Error::i()->argument(1,'string')->argument(2,'string');return Eden_Google_Youtube::i($token,$developerId);}}}