diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/Service/Technorati/GetInfoResult.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Service/Technorati/GetInfoResult.php Fri Mar 11 15:05:35 2011 +0100 @@ -0,0 +1,103 @@ +query('//result'); + if ($result->length == 1) { + $this->_author = new Zend_Service_Technorati_Author($result->item(0)); + } + + /** + * @see Zend_Service_Technorati_Weblog + */ + require_once 'Zend/Service/Technorati/Weblog.php'; + + $result = $xpath->query('//item/weblog'); + if ($result->length >= 1) { + foreach ($result as $weblog) { + $this->_weblogs[] = new Zend_Service_Technorati_Weblog($weblog); + } + } + } + + + /** + * Returns the author associated with queried username. + * + * @return Zend_Service_Technorati_Author + */ + public function getAuthor() { + return $this->_author; + } + + /** + * Returns the collection of weblogs authored by queried username. + * + * @return array of Zend_Service_Technorati_Weblog + */ + public function getWeblogs() { + return $this->_weblogs; + } + +}