import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
* @subpackage Yahoo
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: WebResult.php 8064 2008-02-16 10:58:39Z thomas $
|
||||
* @version $Id: WebResult.php 13005 2008-12-03 21:15:02Z matthew $
|
||||
*/
|
||||
|
||||
|
||||
@ -93,8 +93,17 @@ class Zend_Service_Yahoo_WebResult extends Zend_Service_Yahoo_Result
|
||||
|
||||
$this->_xpath = new DOMXPath($result->ownerDocument);
|
||||
$this->_xpath->registerNamespace('yh', $this->_namespace);
|
||||
|
||||
$this->CacheUrl = $this->_xpath->query('./yh:Cache/yh:Url/text()', $result)->item(0)->data;
|
||||
$this->CacheSize = (int) $this->_xpath->query('./yh:Cache/yh:Size/text()', $result)->item(0)->data;
|
||||
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user