Exemplo n.º 1
0
 /**
  * Retrieves a specific volume entry.
  *
  * @param string|null $volumeId The volumeId of interest.
  * @param \Zend\GData\Query|string|null $location (optional) The URL to
  *        query or a Zend_Gdata_Query object from which a URL can be
  *        determined.
  * @return \Zend\GData\Books\VolumeEntry The feed of volumes found at the
  *         specified URL.
  */
 public function getVolumeEntry($volumeId = null, $location = null)
 {
     if ($volumeId !== null) {
         $uri = self::VOLUME_FEED_URI . "/" . $volumeId;
     } elseif ($location instanceof Query) {
         $uri = $location->getQueryUrl();
     } else {
         $uri = $location;
     }
     return parent::getEntry($uri, 'Zend\\GData\\Books\\VolumeEntry');
 }
Exemplo n.º 2
0
 /**
  * Create a new instance.
  *
  * @param string $domain (optional) The Google Apps-hosted domain to use
  *          when constructing query URIs.
  * @param string $groupId (optional) Value for the groupId property.
  * @param string $startGroupName (optional) Value for the
  *          startGroupName property.
  */
 public function __construct($domain = null, $groupId = null,
         $startGroupId = null)
 {
     parent::__construct($domain);
     $this->setGroupId($groupId);
     $this->setStartGroupId($startGroupId);
 }
Exemplo n.º 3
0
 /**
  * Create Gdata_Books_VolumeQuery object
  *
  * @param string|null $url If non-null, pre-initializes the instance to
  *        use a given URL.
  */
 public function __construct($url = null)
 {
     parent::__construct($url);
 }
Exemplo n.º 4
0
 /**
  * Constructs a new instance of a Zend_Gdata_Docs_Query object.
  */
 public function __construct()
 {
     parent::__construct();
 }
Exemplo n.º 5
0
 /**
  * Gets the attribute query string for this query.
  * @return string query string
  */
 public function getQueryString()
 {
     return parent::getQueryString();
 }
Exemplo n.º 6
0
Arquivo: Query.php Projeto: rexmac/zf2
 /**
  * Create a new instance.
  *
  * @param string $domain (optional) The Google Apps-hosted domain to use
  *          when constructing query URIs.
  */
 public function __construct($domain = null)
 {
     parent::__construct();
     $this->_domain = $domain;
 }
Exemplo n.º 7
0
 public function testSetAndGetStartIndex()
 {
     $query = new GData\Query();
     $query->setStartIndex(12);
     $this->assertEquals(12, $query->getStartIndex());
     $this->assertContains('start-index=12', $query->getQueryUrl());
 }