Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Service/Yahoo/WebResult.php
Go to the documentation of this file.
00001 <?php
00002 
00028 require_once 'Zend/Service/Yahoo/Result.php';
00029 
00030 
00038 class Zend_Service_Yahoo_WebResult extends Zend_Service_Yahoo_Result
00039 {
00045     public $Summary;
00046 
00052     public $MimeType;
00053 
00059     public $ModificationDate;
00060 
00066     public $CacheUrl;
00067 
00073     public $CacheSize;
00074 
00080     protected $_namespace = 'urn:yahoo:srch';
00081 
00082 
00089     public function __construct(DOMElement $result)
00090     {
00091         $this->_fields = array('Summary', 'MimeType', 'ModificationDate');
00092         parent::__construct($result);
00093 
00094         $this->_xpath = new DOMXPath($result->ownerDocument);
00095         $this->_xpath->registerNamespace('yh', $this->_namespace);
00096 
00097         // check if the cache section exists
00098         $cacheUrl = $this->_xpath->query('./yh:Cache/yh:Url/text()', $result)->item(0);
00099         if ($cacheUrl instanceof DOMNode)
00100         {
00101             $this->CacheUrl = $cacheUrl->data;
00102         }
00103         $cacheSize = $this->_xpath->query('./yh:Cache/yh:Size/text()', $result)->item(0);
00104         if ($cacheSize instanceof DOMNode)
00105         {
00106             $this->CacheSize = (int) $cacheSize->data;
00107         }
00108     }
00109 }
 All Data Structures Namespaces Files Functions Variables Enumerations