_xpath->query('/tapi/document/result/querycount/text()'); if ($result->length == 1) $this->_queryCount = (int) $result->item(0)->data; $this->_totalResultsReturned = (int) $this->_xpath->evaluate("count(/tapi/document/item)"); $this->_totalResultsAvailable = (int) $this->_queryCount; } /** * Implements Zend_Service_Technorati_ResultSet::current(). * * @return Zend_Service_Technorati_SearchResult current result */ public function current() { /** * @see Zend_Service_Technorati_SearchResult */ #require_once 'Zend/Service/Technorati/SearchResult.php'; return new Zend_Service_Technorati_SearchResult($this->_results->item($this->_currentIndex)); } }