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; } }