File indexing completed on 2024-12-22 05:37:06
0001 <?php 0002 0003 /** 0004 * Zend Framework 0005 * 0006 * LICENSE 0007 * 0008 * This source file is subject to the new BSD license that is bundled 0009 * with this package in the file LICENSE.txt. 0010 * It is also available through the world-wide-web at this URL: 0011 * http://framework.zend.com/license/new-bsd 0012 * If you did not receive a copy of the license and are unable to 0013 * obtain it through the world-wide-web, please send an email 0014 * to license@zend.com so we can send you a copy immediately. 0015 * 0016 * @category Zend 0017 * @package Zend_Service 0018 * @subpackage Yahoo 0019 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0020 * @license http://framework.zend.com/license/new-bsd New BSD License 0021 * @version $Id$ 0022 */ 0023 0024 0025 /** 0026 * @see Zend_Service_Yahoo_Result 0027 */ 0028 // require_once 'Zend/Service/Yahoo/Result.php'; 0029 0030 0031 /** 0032 * @category Zend 0033 * @package Zend_Service 0034 * @subpackage Yahoo 0035 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0036 * @license http://framework.zend.com/license/new-bsd New BSD License 0037 */ 0038 class Zend_Service_Yahoo_NewsResult extends Zend_Service_Yahoo_Result 0039 { 0040 /** 0041 * Sumamry text associated with the result article 0042 * 0043 * @var string 0044 */ 0045 public $Summary; 0046 0047 /** 0048 * The company who distributed the article 0049 * 0050 * @var string 0051 */ 0052 public $NewsSource; 0053 0054 /** 0055 * The URL for the company who distributed the article 0056 * 0057 * @var string 0058 */ 0059 public $NewsSourceUrl; 0060 0061 /** 0062 * The language the article is in 0063 * 0064 * @var string 0065 */ 0066 public $Language; 0067 0068 /** 0069 * The date the article was published (in unix timestamp format) 0070 * 0071 * @var string 0072 */ 0073 public $PublishDate; 0074 0075 /** 0076 * The date the article was modified (in unix timestamp format) 0077 * 0078 * @var string 0079 */ 0080 public $ModificationDate; 0081 0082 /** 0083 * The thubmnail image for the article, if it exists 0084 * 0085 * @var Zend_Service_Yahoo_Image 0086 */ 0087 public $Thumbnail; 0088 0089 /** 0090 * News result namespace 0091 * 0092 * @var string 0093 */ 0094 protected $_namespace = 'urn:yahoo:yn'; 0095 0096 0097 /** 0098 * Initializes the news result 0099 * 0100 * @param DOMElement $result 0101 * @return void 0102 */ 0103 public function __construct(DOMElement $result) 0104 { 0105 $this->_fields = array('Summary', 'NewsSource', 'NewsSourceUrl', 'Language', 'PublishDate', 0106 'ModificationDate', 'Thumbnail'); 0107 0108 parent::__construct($result); 0109 0110 $this->_setThumbnail(); 0111 } 0112 }