当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Service_Yahoo_Result类代码示例

本文整理汇总了PHP中Zend_Service_Yahoo_Result的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Service_Yahoo_Result类的具体用法?PHP Zend_Service_Yahoo_Result怎么用?PHP Zend_Service_Yahoo_Result使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Zend_Service_Yahoo_Result类的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类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。