[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Service/Yahoo/ -> NewsResult.php (source)

   1  <?php
   2  
   3  /**
   4   * Zend Framework
   5   *
   6   * LICENSE
   7   *
   8   * This source file is subject to the new BSD license that is bundled
   9   * with this package in the file LICENSE.txt.
  10   * It is also available through the world-wide-web at this URL:
  11   * http://framework.zend.com/license/new-bsd
  12   * If you did not receive a copy of the license and are unable to
  13   * obtain it through the world-wide-web, please send an email
  14   * to [email protected] so we can send you a copy immediately.
  15   *
  16   * @category   Zend
  17   * @package    Zend_Service
  18   * @subpackage Yahoo
  19   * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  20   * @license    http://framework.zend.com/license/new-bsd     New BSD License
  21   * @version    $Id$
  22   */
  23  
  24  
  25  /**
  26   * @see Zend_Service_Yahoo_Result
  27   */
  28  require_once 'Zend/Service/Yahoo/Result.php';
  29  
  30  
  31  /**
  32   * @category   Zend
  33   * @package    Zend_Service
  34   * @subpackage Yahoo
  35   * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  36   * @license    http://framework.zend.com/license/new-bsd     New BSD License
  37   */
  38  class Zend_Service_Yahoo_NewsResult extends Zend_Service_Yahoo_Result
  39  {
  40      /**
  41       * Sumamry text associated with the result article
  42       *
  43       * @var string
  44       */
  45      public $Summary;
  46  
  47      /**
  48       * The company who distributed the article
  49       *
  50       * @var string
  51       */
  52      public $NewsSource;
  53  
  54      /**
  55       * The URL for the company who distributed the article
  56       *
  57       * @var string
  58       */
  59      public $NewsSourceUrl;
  60  
  61      /**
  62       * The language the article is in
  63       *
  64       * @var string
  65       */
  66      public $Language;
  67  
  68      /**
  69       * The date the article was published (in unix timestamp format)
  70       *
  71       * @var string
  72       */
  73      public $PublishDate;
  74  
  75      /**
  76       * The date the article was modified (in unix timestamp format)
  77       *
  78       * @var string
  79       */
  80      public $ModificationDate;
  81  
  82      /**
  83       * The thubmnail image for the article, if it exists
  84       *
  85       * @var Zend_Service_Yahoo_Image
  86       */
  87      public $Thumbnail;
  88  
  89      /**
  90       * News result namespace
  91       *
  92       * @var string
  93       */
  94      protected $_namespace = 'urn:yahoo:yn';
  95  
  96  
  97      /**
  98       * Initializes the news result
  99       *
 100       * @param  DOMElement $result
 101       * @return void
 102       */
 103      public function __construct(DOMElement $result)
 104      {
 105          $this->_fields = array('Summary', 'NewsSource', 'NewsSourceUrl', 'Language', 'PublishDate',
 106                                 'ModificationDate', 'Thumbnail');
 107  
 108          parent::__construct($result);
 109  
 110          $this->_setThumbnail();
 111      }
 112  }


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1