Service/Ebay/Finding/PaginationOutput.php

Show: inherited
Table of Contents

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

Package: Zend\Service\Ebay

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

Propertyprotectedarray $_attributes = array()
Default valuearray()Details
Type
array
Inherited_from
\Zend_Service_Ebay_Finding_Abstract::$$_attributes  
Propertyprotected\DOMElement $_dom =
Propertyprotected\DOMXPath $_xPath =
Propertypublicinteger $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.

Details
Type
integer
Propertypublicinteger $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.

Details
Type
integer
Propertypublicinteger $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.

Details
Type
integer
Propertypublicinteger $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.

Details
Type
integer

Methods

methodpublic__construct(\DOMElement $dom) : void
Parameters
Name Type Description
$dom \DOMElement
methodprotected_init() : void

Initialize object.

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

methodprotected_initXPath() : void
inherited

Load DOMXPath for current DOM object.

Inherited from: \Zend_Service_Ebay_Finding_Abstract::_initXPath()
Details
See
\global\Zend_Service_Ebay_Finding::_parseResponse()  
methodprotected_query(string $path, string $type, string $array = false) : mixed
Parameters
Name Type Description
$path string
$type string
$array string

When true means it expects more than one node occurence

Returns
Type Description
mixed
methodpublicattributes(string $tag, string $attribute = null) : mixed
Parameters
Name Type Description
$tag string
$attribute string
Returns
Type Description
mixed
methodpublicgetDom() : \DOMElement
Returns
Type Description
\DOMElement
methodpublicgetXPath() : \DOMXPath
Returns
Type Description
\DOMXPath
Documentation was generated by phpDocumentor 2.0.0a8.