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.
This is the most essential result set.
The scope of this class is to be extended by a query-specific child result set class, and it should never be used to initialize a standalone object.
Each of the specific result sets represents a collection of query-specific Zend_Service_Technorati_Result objects.
int $_currentIndex = '0'Current Item
DetailsDomDocument $_dom = ''Technorati API response document
DetailsDomNodeList $_results = ''A DomNodeList of results
Detailsint $_totalResultsAvailable = ''The total number of results available
Detailsint $_totalResultsReturned = ''The number of results in this result set
Detailsstring $_xml = ''XML string representation for $this->_dom
DetailsDOMXpath $_xpath = ''Object for $this->_dom
Details__construct(
DomDocument $dom, array $options
=
array
)
:
Parses the search response and retrieves the results for iteration.
Details__sleep(
)
:
voidOverwrites standard __sleep method to make this object serializable.
DomDocument and DOMXpath objects cannot be serialized. This method converts them back to an XML string.
Details__wakeup(
)
:
voidOverwrites standard __wakeup method to make this object unserializable.
Restores object status before serialization. Converts XML string into a DomDocument object and creates a valid DOMXpath instance for given DocDocument.
Details_init(
DomDocument $dom, array $options
=
array
)
:
Initializes this object from a DomDocument response.
Because __construct and __wakeup shares some common executions, it's useful to group them in a single initialization method. This method is called once each time a new instance is created or a serialized object is unserialized.
DetailsgetXml(
)
:
stringReturns the response document as XML string.
Detailskey(
)
:
intImplements SeekableIterator::key().
Detailsnext(
)
:
voidImplements SeekableIterator::next().
Detailsrewind(
)
:
boolImplements SeekableIterator::rewind().
Detailsseek(
int $index
)
:
voidImplement SeekableIterator::seek().
DetailstotalResults(
)
:
intNumber of results returned.
DetailstotalResultsAvailable(
)
:
intNumber of available results.
Detailsvalid(
)
:
booleanImplement SeekableIterator::valid().
Details