Service/Yahoo/ResultSet.php

Show: PublicProtectedPrivateinherited
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 license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Service  
Subpackage
Yahoo  
Version
$Id$  

\Zend_Service_Yahoo_ResultSet

Package: Zend_Service\Yahoo
Implements
Children
\Zend_Service_Yahoo_NewsResultSet
\Zend_Service_Yahoo_ImageResultSet
\Zend_Service_Yahoo_VideoResultSet
\Zend_Service_Yahoo_PageDataResultSet
\Zend_Service_Yahoo_LocalResultSet
\Zend_Service_Yahoo_InlinkDataResultSet
\Zend_Service_Yahoo_WebResultSet
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedint $_currentIndex = 0
Current Index for SeekableIterator
Default value0Details
Type
int
>VPropertyprotected\DOMDocument $_dom
Yahoo Web Service Return Document
Details
Type
\DOMDocument
>VPropertyprotected\DOMNodeList $_results
A DOMNodeList of results
Details
Type
\DOMNodeList
>VPropertyprotected\DOMXPath $_xpath
Xpath Object for $this->_dom
Details
Type
\DOMXPath
>VPropertypublicint $firstResultPosition
The offset in the total result set of this search set
Details
Type
int
>VPropertypublicint $totalResultsAvailable
Total number of results available
Details
Type
int
>VPropertypublicint $totalResultsReturned
The number of results in this result set
Details
Type
int

Methods

methodpublic__construct(\DOMDocument $dom) : void

Parse the search response and retrieve the results for iteration

Parameters
NameTypeDescription
$dom\DOMDocument

the REST fragment for this object

methodpubliccurrent() : \Zend_Service_Yahoo_Result

Implement SeekableIterator::current()

Must be implemented by child classes
Returns
TypeDescription
\Zend_Service_Yahoo_Result
Throws
ExceptionDescription
\Zend_Service_Exception
methodpublickey() : int

Implement SeekableIterator::key()

Returns
TypeDescription
int
methodpublicnext() : void

Implement SeekableIterator::next()

methodpublicrewind() : void

Implement SeekableIterator::rewind()

methodpublicseek(int $index) : void

Implement SeekableIterator::seek()

Parameters
NameTypeDescription
$indexint
Throws
ExceptionDescription
\OutOfBoundsException
methodpublictotalResults() : int

Total Number of results returned

Returns
TypeDescription
intTotal number of results returned
methodpublicvalid() : boolean

Implement SeekableIterator::valid()

Returns
TypeDescription
boolean
Documentation was generated by phpDocumentor 2.2.0 .