|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| __construct (DomDocument $dom, $options=array()) | |
| totalResults () | |
| totalResultsAvailable () | |
| key () | |
| next () | |
| rewind () | |
| seek ($index) | |
| valid () | |
| getXml () | |
| __sleep () | |
| __wakeup () | |
Protected Member Functions | |
| _init (DomDocument $dom, $options=array()) | |
Protected Attributes | |
| $_totalResultsAvailable | |
| $_totalResultsReturned | |
| $_results | |
| $_dom | |
| $_xpath | |
| $_xml | |
| $_currentIndex = 0 | |
Definition at line 45 of file ResultSet.php.
| __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 |
Reimplemented in Zend_Service_Technorati_CosmosResultSet, Zend_Service_Technorati_DailyCountsResultSet, Zend_Service_Technorati_TagResultSet, Zend_Service_Technorati_SearchResultSet, and Zend_Service_Technorati_TagsResultSet.
Definition at line 118 of file ResultSet.php.

| __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.
Definition at line 268 of file ResultSet.php.

| __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.
Definition at line 283 of file ResultSet.php.

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 * |
Definition at line 154 of file ResultSet.php.

| getXml | ( | ) |
Returns the response document as XML string.
Definition at line 255 of file ResultSet.php.

| key | ( | ) |
Implements SeekableIterator::current().
| Zend_Service_Exception | Implements SeekableIterator::key(). |
Definition at line 197 of file ResultSet.php.
| next | ( | ) |
| rewind | ( | ) |
| seek | ( | $ | index | ) |
Implement SeekableIterator::seek().
| int | $index |
| OutOfBoundsException |
Definition at line 230 of file ResultSet.php.
| totalResults | ( | ) |
Number of results returned.
Definition at line 167 of file ResultSet.php.
Number of available results.
Definition at line 178 of file ResultSet.php.
| valid | ( | ) |
$_currentIndex = 0 [protected] |
Definition at line 109 of file ResultSet.php.
$_dom [protected] |
Definition at line 85 of file ResultSet.php.
$_results [protected] |
Definition at line 77 of file ResultSet.php.
$_totalResultsAvailable [protected] |
Definition at line 53 of file ResultSet.php.
$_totalResultsReturned [protected] |
Definition at line 61 of file ResultSet.php.
$_xml [protected] |
Definition at line 101 of file ResultSet.php.
$_xpath [protected] |
Definition at line 93 of file ResultSet.php.