diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/Service/Technorati/DailyCountsResult.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Service/Technorati/DailyCountsResult.php Fri Mar 11 15:05:35 2011 +0100 @@ -0,0 +1,93 @@ +_fields = array( '_date' => 'date', + '_count' => 'count'); + parent::__construct($dom); + + // filter fields + $this->_date = new Zend_Date(strtotime($this->_date)); + $this->_count = (int) $this->_count; + } + + /** + * Returns the date of count. + * + * @return Zend_Date + */ + public function getDate() { + return $this->_date; + } + + /** + * Returns the number of posts containing query on given date. + * + * @return int + */ + public function getCount() { + return $this->_count; + } +}