/** * Create ZendGData\Calendar object * * @param \Zend\Http\Client $client (optional) The HTTP client to use when * when communicating with the Google servers. * @param string $applicationId The identity of the app in the form of Company-AppName-Version */ public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1.0') { $this->registerPackage('ZendGData\\Calendar'); $this->registerPackage('ZendGData\\Calendar\\Extension'); parent::__construct($client, $applicationId); $this->_httpClient->setParameterPost(array('service' => self::AUTH_SERVICE_NAME)); }
/** * Create Zend_Gdata_Health object * * @param \Zend\Http\Client $client (optional) The HTTP client to use when * when communicating with the Google Health servers. * @param string $applicationId The identity of the application in the form * of Company-AppName-Version * @param bool $useH9Sandbox True if the H9 Developer's Sandbox should be * used instead of production Google Health. */ public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1.0', $useH9Sandbox = false) { $this->registerPackage('Zend\\GData\\Health'); $this->registerPackage('Zend\\GData\\Health\\Extension\\Ccr'); parent::__construct($client, $applicationId); $this->_useH9Sandbox = $useH9Sandbox; }
/** * Create Gdata_Spreadsheets object * * @param \Zend\Http\Client $client (optional) The HTTP client to use when * when communicating with the Google servers. * @param string $applicationId The identity of the app in the form of Company-AppName-Version */ public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1.0') { $this->registerPackage('\\Zend\\GData\\Spreadsheets'); $this->registerPackage('\\Zend\\GData\\Spreadsheets\\Extension'); parent::__construct($client, $applicationId); $this->_httpClient->setParameterPost(array('service' => self::AUTH_SERVICE_NAME)); $this->_server = 'spreadsheets.google.com'; }
/** * Create Zend_Gdata_Geo object * * @param \Zend\Http\Client $client (optional) The HTTP client to use when * when communicating with the Google Apps servers. * @param string $applicationId The identity of the app in the form of Company-AppName-Version */ public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1.0') { $this->registerPackage('Zend\GData\Geo'); $this->registerPackage('Zend\GData\Geo\Extension'); parent::__construct($client, $applicationId); }
/** * Create Gdata_GApps object * * @param \Zend\Http\Client $client (optional) The HTTP client to use when * when communicating with the Google Apps servers. * @param string $domain (optional) The Google Apps domain which is to be * accessed. * @param string $applicationId The identity of the app in the form of Company-AppName-Version */ public function __construct($client = null, $domain = null, $applicationId = 'MyCompany-MyApp-1.0') { $this->registerPackage('Zend\\GData\\GApps'); $this->registerPackage('Zend\\GData\\GApps\\Extension'); parent::__construct($client, $applicationId); $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); $this->_domain = $domain; }