Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Service/Technorati/SearchResultSet.php
Go to the documentation of this file.
00001 <?php
00027 require_once 'Zend/Service/Technorati/ResultSet.php';
00028 
00029 
00039 class Zend_Service_Technorati_SearchResultSet extends Zend_Service_Technorati_ResultSet
00040 {
00047     protected $_queryCount;
00048 
00055     public function __construct(DomDocument $dom, $options = array())
00056     {
00057         parent::__construct($dom, $options);
00058 
00059         $result = $this->_xpath->query('/tapi/document/result/querycount/text()');
00060         if ($result->length == 1) $this->_queryCount = (int) $result->item(0)->data;
00061 
00062         $this->_totalResultsReturned  = (int) $this->_xpath->evaluate("count(/tapi/document/item)");
00063         $this->_totalResultsAvailable = (int) $this->_queryCount;
00064     }
00065 
00071     public function current()
00072     {
00076         require_once 'Zend/Service/Technorati/SearchResult.php';
00077         return new Zend_Service_Technorati_SearchResult($this->_results->item($this->_currentIndex));
00078     }
00079 }
 All Data Structures Namespaces Files Functions Variables Enumerations