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); } /** * Retrieve feed object * * @return Zend_Gdata_Calendar_ListFeed */ public function getContactListFeed() { $query = new Zend_Gdata_Query(self::CONTACT_FEED_URI); $query->maxResults = $this->maxResults; $query->startIndex = $this->startIndex; return parent::getFeed($query,'Zend_Gdata_Contacts_ListFeed'); } /** * Retrieve a single feed object by id * * @param string $entryID * @return string|Zend_Gdata_App_Feed */ public function getContactEntry($entryID) { return parent::getEntry($entryID,'Zend_Gdata_Contacts_ListEntry'); } /** * Set the max results that the feed should return. * * @param $maxResults * @return void */ public function setMaxResults($maxResults) { $this->maxResults = $maxResults; } /** * Set the start index. * * @param $value * @return void */ public function setStartIndex($value) { $this->startIndex = $value; } }