Service/Ebay/Finding/PaginationOutput.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service
- Subpackage
- Ebay
- Version
- $Id: PaginationOutput.php 22791 2010-08-04 16:11:47Z renanbr $
\Zend_Service_Ebay_Finding_PaginationOutput
- Parent(s)
- \Zend_Service_Ebay_Finding_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Uses
- \global\Zend_Service_Ebay_Finding_Abstract
Properties


array $_attributes = array()
array()
Details- Type
- array
- Inherited_from
- \Zend_Service_Ebay_Finding_Abstract::$$_attributes


\DOMElement $_dom =
- Type
- \DOMElement
- Inherited_from
- \Zend_Service_Ebay_Finding_Abstract::$$_dom


\DOMXPath $_xPath =
- Type
- \DOMXPath
- Inherited_from
- \Zend_Service_Ebay_Finding_Abstract::$$_xPath


integer $entriesPerPage =
The maximum number of items that can be returned in the response.
This number is always equal to the value input for paginationInput.entriesPerPage. The end of the result set has been reached if the number specified for entriesPerPage is greater than the number of items found on the specified pageNumber. In this case, there will be fewer items returned than the number specified in entriesPerPage. This can be determined by comparing the entriesPerPage value with the value returned in the count attribute for the searchResult field.
- Type
- integer


integer $pageNumber =
The subset of item data returned in the current response.
Search results are divided into sets, or "pages," of item data. The number of pages is equal to the total number of items matching the search criteria divided by the value specified for entriesPerPage in the request. The response for a request contains one "page" of item data.
This returned value indicates the page number of item data returned (a subset of the complete result set). If this field contains 1, the response contains the first page of item data (the default). If the value returned in totalEntries is less than the value for entriesPerPage, pageNumber returns 1 and the response contains the entire result set.
The value of pageNumber is normally equal to the value input for paginationInput.pageNumber. However, if the number input for pageNumber is greater than the total possible pages of output, eBay returns the last page of item data in the result set, and the value for pageNumber is set to the respective (last) page number.
- Type
- integer


integer $totalEntries =
The total number of items found that match the search criteria in your request.
Depending on the input value for entriesPerPage, the response might include only a portion (a page) of the entire result set. A value of "0" is returned if eBay does not find any items that match the search criteria.
- Type
- integer


integer $totalPages =
The total number of pages of data that could be returned by repeated search requests.
Note that if you modify the value of inputPagination.entriesPerPage in a request, the value output for totalPages will change. A value of "0" is returned if eBay does not find any items that match the search criteria.
- Type
- integer
Methods


__construct(\DOMElement $dom) : void
Name | Type | Description |
---|---|---|
$dom | \DOMElement |


_init() : void
Initialize object.
Post construct logic, classes must read their members here. Called from __construct() as final step of object initialization.


_initXPath() : void
Load DOMXPath for current DOM object.
Inherited from: \Zend_Service_Ebay_Finding_Abstract::_initXPath()- See
- \global\Zend_Service_Ebay_Finding::_parseResponse()


_query(string $path, string $type, string $array = false) : mixed
Name | Type | Description |
---|---|---|
$path | string | |
$type | string | |
$array | string | When true means it expects more than one node occurence |
Type | Description |
---|---|
mixed |


attributes(string $tag, string $attribute = null) : mixed
Name | Type | Description |
---|---|---|
$tag | string | |
$attribute | string |
Type | Description |
---|---|
mixed |


getDom() : \DOMElement
Type | Description |
---|---|
\DOMElement |


getXPath() : \DOMXPath
Type | Description |
---|---|
\DOMXPath |