コード例 #1
0
 /**
  * Create Zend_Gdata_Books 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_Books');
     $this->registerPackage('Zend_Gdata_Books_Extension');
     parent::__construct($client, $applicationId);
     $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME);
 }
コード例 #2
0
ファイル: Gbase.php プロジェクト: janssit/www.kadulleke.be
 /**
  * Create Zend_Gdata_Gbase object
  */
 public function __construct($client = null)
 {
     $this->registerPackage('Zend_Gdata_Gbase');
     $this->registerPackage('Zend_Gdata_Gbase_Extension');
     parent::__construct($client);
     $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME);
 }
コード例 #3
0
 /**
  * Create Gdata_Calendar object
  *
  * @param string $email
  * @param string $password
  *
  */
 public function __construct($client = null, $key = null)
 {
     parent::__construct($client);
     if ($key != null) {
         $this->setDeveloperKey($key);
     }
 }
コード例 #4
0
ファイル: Health.php プロジェクト: hackingman/TubeX
 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;
 }
コード例 #5
0
ファイル: Contacts.php プロジェクト: delkyd/sugarcrm_dev
 /**
  * Create Gdata_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('Zend_Gdata_Contacts');
     $this->registerPackage('Zend_Gdata_Contacts_Extension');
     parent::__construct($client, $applicationId);
     $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME);
     $this->setMajorProtocolVersion(self::DEFAULT_MAJOR_PROTOCOL_VERSION);
 }
コード例 #6
0
ファイル: Docs.php プロジェクト: MexinaD/SuiteCRM
 /**
  * Create Gdata_Docs 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, $applicationName)
 {
     $this->registerPackage('Zend_Gdata_Docs');
     $this->registerPackage('Zend_Gdata_Docs_Extension_WritersCanInvite');
     parent::__construct($client, $applicationName);
     $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME);
     $this->setMajorProtocolVersion(self::DEFAULT_MAJOR_PROTOCOL_VERSION);
 }
コード例 #7
0
ファイル: Content.php プロジェクト: natxetee/magento2
 /**
  * Create 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, $accountId = null, $applicationId = 'MyCompany-MyApp-1.0')
 {
     $this->_accountId = $accountId;
     $this->registerPackage('Varien_Gdata_Gshopping');
     $this->registerPackage('Varien_Gdata_Gshoppinge_Extension');
     parent::__construct($client, $applicationId);
     $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME);
 }
コード例 #8
0
 /**
  * Class constructor
  *
  * Creates authenticated Google client. Note that this is never called directly
  * from public scope, but via the singleton function {@link GClient::getInstance()}.
  *
  * @method	GClient		GClient()	GClient($service)	creates and initializes new GClient object
  * @param	string		$service	type of service access (either St, Doc, or Raw)
  * @see		GClient::getInstance()
  * @return	GClient
  */
 public function __construct($service, $token = NULL, $captcha = NULL)
 {
     // get login credentials
     $user = get_option('gdocs_user');
     $pwd = get_option('gdocs_pwd');
     // create Zend Http Client
     $httpClient = Zend_Gdata_ClientLogin::getHttpClient($user, $pwd, $service, NULL, NULL, $token, $captcha);
     $this->setProxy($httpClient);
     // create Zend Gdata client
     parent::__construct($httpClient);
 }
コード例 #9
0
ファイル: DublinCore.php プロジェクト: be-dmitry/zf1
 /**
  * Create Zend_Gdata_DublinCore 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_DublinCore');
     $this->registerPackage('Zend_Gdata_DublinCore_Extension');
     parent::__construct($client, $applicationId);
 }
コード例 #10
0
 /**
  * Create Gdata_Calendar object
  */
 public function __construct($client = null)
 {
     parent::__construct($client);
     $this->_httpClient->setParameterPost('service', 'cl');
 }
コード例 #11
0
ファイル: Spreadsheets.php プロジェクト: vojtajina/sitellite
 /**
  * Create Gdata_Spreadsheets object
  */
 public function __construct($client = null)
 {
     parent::__construct($client);
     $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME);
     $this->registerPackage('Zend_Gdata_Spreadsheets');
     $this->registerPackage('Zend_Gdata_Spreadsheets_Extension');
     $this->_server = 'spreadsheets.google.com';
 }
コード例 #12
0
 /**
  * Create object
  *
  * @param \Zend_Http_Client $client (optional) The HTTP client to use when
  *          when communicating with the Google Apps servers.
  * @param string $accountId Google Merchant account ID
  * @param string $applicationId The identity of the app in the form of Company-AppName-Version
  */
 public function __construct($client = null, $accountId = null, $applicationId = 'MyCompany-MyApp-1.0')
 {
     $this->_accountId = $accountId;
     parent::__construct($client, $applicationId);
     $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME);
 }
コード例 #13
0
ファイル: EMail.php プロジェクト: NareshPS/LifeParserWeb
 public function __construct($client = null, $applicationId = 'New App')
 {
     parent::__construct($client, $applicationId);
 }
コード例 #14
0
ファイル: Media.php プロジェクト: dalinhuang/popo
 /**
  * Create Gdata_Media object
  *
  * @param Zend_Http_Client $client The optional pre-configured HTTP client
  */
 public function __construct($client = null)
 {
     $this->registerPackage('Zend_Gdata_Media');
     $this->registerPackage('Zend_Gdata_Media_Extension');
     parent::__construct($client);
 }