Zend Framework
1.12
|
Public Member Functions | |
__construct (DomDocument $dom, $options=array()) | |
Parses the search response and retrieves the results for iteration. | |
totalResults () | |
Number of results returned. | |
totalResultsAvailable () | |
Number of available results. | |
key () | |
Implements SeekableIterator::current(). | |
next () | |
Implements SeekableIterator::next(). | |
rewind () | |
Implements SeekableIterator::rewind(). | |
seek ($index) | |
Implement SeekableIterator::seek(). | |
valid () | |
Implement SeekableIterator::valid(). | |
getXml () | |
Returns the response document as XML string. | |
__sleep () | |
Overwrites standard __sleep method to make this object serializable. | |
__wakeup () | |
Overwrites standard __wakeup method to make this object unserializable. | |
Protected Member Functions | |
_init (DomDocument $dom, $options=array()) | |
Initializes this object from a DomDocument response. | |
Protected Attributes | |
$_totalResultsAvailable | |
$_totalResultsReturned | |
$_results | |
$_dom | |
$_xpath | |
$_xml | |
$_currentIndex = 0 | |
__construct | ( | DomDocument | $dom, |
$options = array() |
|||
) |
Parses the search response and retrieves the results for iteration.
DomDocument | $dom | the ReST fragment for this object |
array | $options | query options as associative array |
__sleep | ( | ) |
Overwrites standard __sleep method to make this object serializable.
DomDocument and DOMXpath objects cannot be serialized. This method converts them back to an XML string.
__wakeup | ( | ) |
Overwrites 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.
|
protected |
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.
DomDocument | $dom | the ReST fragment for this object |
array | $options | query options as associative array * |
getXml | ( | ) |
Returns the response document as XML string.
key | ( | ) |
Implements SeekableIterator::current().
Zend_Service_Exception | Implements SeekableIterator::key(). |
next | ( | ) |
Implements SeekableIterator::next().
rewind | ( | ) |
Implements SeekableIterator::rewind().
seek | ( | $index | ) |
Implement SeekableIterator::seek().
int | $index |
OutOfBoundsException |
totalResults | ( | ) |
Number of results returned.
totalResultsAvailable | ( | ) |
Number of available results.
valid | ( | ) |
Implement SeekableIterator::valid().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |