diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/Service/Yahoo/WebResult.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Service/Yahoo/WebResult.php Fri Mar 11 15:05:35 2011 +0100 @@ -0,0 +1,109 @@ +_fields = array('Summary', 'MimeType', 'ModificationDate'); + parent::__construct($result); + + $this->_xpath = new DOMXPath($result->ownerDocument); + $this->_xpath->registerNamespace('yh', $this->_namespace); + + // check if the cache section exists + $cacheUrl = $this->_xpath->query('./yh:Cache/yh:Url/text()', $result)->item(0); + if ($cacheUrl instanceof DOMNode) + { + $this->CacheUrl = $cacheUrl->data; + } + $cacheSize = $this->_xpath->query('./yh:Cache/yh:Size/text()', $result)->item(0); + if ($cacheSize instanceof DOMNode) + { + $this->CacheSize = (int) $cacheSize->data; + } + } +}