diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/Service/Technorati/SearchResult.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Service/Technorati/SearchResult.php Fri Mar 11 15:05:35 2011 +0100 @@ -0,0 +1,150 @@ +_fields = array( '_permalink' => 'permalink', + '_excerpt' => 'excerpt', + '_created' => 'created', + '_title' => 'title'); + parent::__construct($dom); + + // weblog object field + $this->_parseWeblog(); + + // filter fields + $this->_permalink = Zend_Service_Technorati_Utils::normalizeUriHttp($this->_permalink); + $this->_created = Zend_Service_Technorati_Utils::normalizeDate($this->_created); + } + + /** + * Returns the weblog object that links queried URL. + * + * @return Zend_Service_Technorati_Weblog + */ + public function getWeblog() { + return $this->_weblog; + } + + /** + * Returns the title of the entry. + * + * @return string + */ + public function getTitle() { + return $this->_title; + } + + /** + * Returns the blurb from entry with search term highlighted. + * + * @return string + */ + public function getExcerpt() { + return $this->_excerpt; + } + + /** + * Returns the datetime the entry was created. + * + * @return Zend_Date + */ + public function getCreated() { + return $this->_created; + } + + /** + * Returns the permalink of the blog entry. + * + * @return Zend_Uri_Http + */ + public function getPermalink() { + return $this->_permalink; + } + +}