/** * Initializes the web result * * @param DOMElement $result * @return void */ public function __construct(DOMElement $result) { $this->_fields = array('Summary', 'MimeType', 'ModificationDate'); parent::__construct($result); $this->_xpath = new DOMXPath($result->ownerDocument); $this->_xpath->registerNamespace('yh', $this->_namespace); $this->CacheUrl = $this->_xpath->query('//yh:Cache/yh:Url/text()')->item(0)->data; $this->CacheSize = (int) $this->_xpath->query('//yh:Cache/yh:Size/text()')->item(0)->data; }
/** * Initializes the web result * * @param DOMElement $result * @return void */ public function __construct(DOMElement $result) { $this->_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; } }
/** * Initializes the video result * * @param DOMElement $result * @return void */ public function __construct(DOMElement $result) { $this->_fields = array('Summary', 'RefererUrl', 'FileSize', 'FileFormat', 'Height', 'Width', 'Duration', 'Channels', 'Streaming', 'Thumbnail'); parent::__construct($result); $this->_setThumbnail(); }
/** * Initializes the news result * * @param DOMElement $result * @return void */ public function __construct(DOMElement $result) { $this->_fields = array('Summary', 'NewsSource', 'NewsSourceUrl', 'Language', 'PublishDate', 'ModificationDate', 'Thumbnail'); parent::__construct($result); $this->_setThumbnail(); }
/** * Initializes the web result * * @param DOMElement $result * @return void */ public function __construct(DOMElement $result) { $this->_fields = array(); parent::__construct($result); }
/** * Initializes the local result * * @param DOMElement $result * @return void */ public function __construct(DOMElement $result) { $this->_fields = array('Address', 'City', 'City', 'State', 'Phone', 'Rating', 'Distance', 'MapUrl', 'BusinessUrl', 'BusinessClickUrl'); parent::__construct($result); }
/** * @todo docblock */ public function __construct(DomElement $result) { $this->_fields = array('Summary', 'RefererUrl', 'FileSize', 'FileFormat', 'Height', 'Width', 'Thumbnail'); parent::__construct($result); $this->setThumbnail(); }