Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Service/Technorati/KeyInfoResult.php
Go to the documentation of this file.
00001 <?php
00034 class Zend_Service_Technorati_KeyInfoResult
00035 {
00042     protected $_apiKey;
00043 
00050     protected $_apiQueries;
00051 
00058     protected $_maxQueries;
00059 
00060 
00068     public function __construct(DomDocument $dom, $apiKey = null)
00069     {
00070         // $this->_dom   = $dom;
00071         // $this->_xpath = new DOMXPath($dom);
00072         $xpath = new DOMXPath($dom);
00073 
00074         $this->_apiQueries   = (int) $xpath->query('/tapi/document/result/apiqueries/text()')->item(0)->data;
00075         $this->_maxQueries   = (int) $xpath->query('/tapi/document/result/maxqueries/text()')->item(0)->data;
00076         $this->setApiKey($apiKey);
00077     }
00078 
00079 
00085     public function getApiKey() {
00086         return $this->_apiKey;
00087     }
00088 
00094     public function getApiQueries() {
00095         return $this->_apiQueries;
00096     }
00097 
00103     public function getMaxQueries() {
00104         return $this->_maxQueries;
00105     }
00106 
00107 
00114     public function setApiKey($apiKey) {
00115         $this->_apiKey = $apiKey;
00116         return $this;
00117     }
00118 }
 All Data Structures Namespaces Files Functions Variables Enumerations