本文整理汇总了PHP中Zend_Gdata::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Gdata::__construct方法的具体用法?PHP Zend_Gdata::__construct怎么用?PHP Zend_Gdata::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Gdata
的用法示例。
在下文中一共展示了Zend_Gdata::__construct方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* 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: __construct
/**
* 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: __construct
/**
* 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: __construct
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: __construct
/**
* 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: __construct
/**
* 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: __construct
/**
* 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: __construct
/**
* 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: __construct
/**
* 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: __construct
/**
* Create Gdata_Calendar object
*/
public function __construct($client = null)
{
parent::__construct($client);
$this->_httpClient->setParameterPost('service', 'cl');
}
示例11: __construct
/**
* 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: __construct
public function __construct($client = null, $applicationId = 'New App')
{
parent::__construct($client, $applicationId);
}
示例13: __construct
/**
* 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);
}