當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Service_Yahoo_Result::__construct方法代碼示例

本文整理匯總了PHP中Zend_Service_Yahoo_Result::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Service_Yahoo_Result::__construct方法的具體用法?PHP Zend_Service_Yahoo_Result::__construct怎麽用?PHP Zend_Service_Yahoo_Result::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Service_Yahoo_Result的用法示例。


在下文中一共展示了Zend_Service_Yahoo_Result::__construct方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * 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;
 }
開發者ID:vojtajina,項目名稱:sitellite,代碼行數:15,代碼來源:WebResult.php

示例2: __construct

 /**
  * 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;
     }
 }
開發者ID:Cryde,項目名稱:sydney-core,代碼行數:22,代碼來源:WebResult.php

示例3: __construct

 /**
  * 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();
 }
開發者ID:bizanto,項目名稱:Hooked,代碼行數:12,代碼來源:VideoResult.php

示例4: __construct

 /**
  * 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();
 }
開發者ID:ronseigel,項目名稱:agent-ohm,代碼行數:12,代碼來源:NewsResult.php

示例5: __construct

 /**
  * 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);
 }
開發者ID:siite,項目名稱:choose-sa-cloud,代碼行數:11,代碼來源:LocalResult.php

示例6: __construct

 /**
  * @todo docblock
  */
 public function __construct(DomElement $result)
 {
     $this->_fields = array('Summary', 'RefererUrl', 'FileSize', 'FileFormat', 'Height', 'Width', 'Thumbnail');
     parent::__construct($result);
     $this->setThumbnail();
 }
開發者ID:BackupTheBerlios,項目名稱:openpublisher-svn,代碼行數:9,代碼來源:ImageResult.php


注:本文中的Zend_Service_Yahoo_Result::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。