|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00027 require_once 'Zend/Service/Technorati/Result.php'; 00028 00029 00041 class Zend_Service_Technorati_DailyCountsResult extends Zend_Service_Technorati_Result 00042 { 00049 protected $_date; 00050 00057 protected $_count; 00058 00059 00065 public function __construct(DomElement $dom) 00066 { 00067 $this->_fields = array( '_date' => 'date', 00068 '_count' => 'count'); 00069 parent::__construct($dom); 00070 00071 // filter fields 00072 $this->_date = new Zend_Date(strtotime($this->_date)); 00073 $this->_count = (int) $this->_count; 00074 } 00075 00081 public function getDate() { 00082 return $this->_date; 00083 } 00084 00090 public function getCount() { 00091 return $this->_count; 00092 } 00093 }