|
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_CosmosResult extends Zend_Service_Technorati_Result 00042 { 00049 protected $_weblog; 00050 00057 protected $_nearestPermalink; 00058 00065 protected $_excerpt; 00066 00073 protected $_linkCreated; 00074 00081 protected $_linkUrl; 00082 00083 00089 public function __construct(DomElement $dom) 00090 { 00091 $this->_fields = array( '_nearestPermalink' => 'nearestpermalink', 00092 '_excerpt' => 'excerpt', 00093 '_linkCreated' => 'linkcreated', 00094 '_linkUrl' => 'linkurl'); 00095 parent::__construct($dom); 00096 00097 // weblog object field 00098 $this->_parseWeblog(); 00099 00100 // filter fields 00101 $this->_nearestPermalink = Zend_Service_Technorati_Utils::normalizeUriHttp($this->_nearestPermalink); 00102 $this->_linkUrl = Zend_Service_Technorati_Utils::normalizeUriHttp($this->_linkUrl); 00103 $this->_linkCreated = Zend_Service_Technorati_Utils::normalizeDate($this->_linkCreated); 00104 } 00105 00111 public function getWeblog() { 00112 return $this->_weblog; 00113 } 00114 00120 public function getNearestPermalink() { 00121 return $this->_nearestPermalink; 00122 } 00123 00129 public function getExcerpt() { 00130 return $this->_excerpt; 00131 } 00132 00138 public function getLinkCreated() { 00139 return $this->_linkCreated; 00140 } 00141 00148 public function getLinkUrl() { 00149 return $this->_linkUrl; 00150 } 00151 00152 }