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_VideoResult extends Zend_Service_Yahoo_Result
0039 {
0040     /**
0041      * Summary info for the video
0042      *
0043      * @var string
0044      */
0045     public $Summary;
0046 
0047     /**
0048      * The URL of the webpage hosting the video
0049      *
0050      * @var string
0051      */
0052     public $RefererUrl;
0053 
0054     /**
0055      * The size of the files in bytes
0056      *
0057      * @var string
0058      */
0059     public $FileSize;
0060 
0061     /**
0062      * The type of file (bmp, gif, jpeg, etc.)
0063      *
0064      * @var string
0065      */
0066     public $FileFormat;
0067 
0068     /**
0069      * The height of the video in pixels
0070      *
0071      * @var string
0072      */
0073     public $Height;
0074 
0075     /**
0076      * The width of the video in pixels
0077      *
0078      * @var string
0079      */
0080     public $Width;
0081 
0082     /**
0083      * The duration of the video in seconds
0084      *
0085      * @var string
0086      */
0087     public $Duration;
0088 
0089     /**
0090      * The number of audio channels in the video
0091      *
0092      * @var string
0093      */
0094     public $Channels;
0095 
0096     /**
0097      * Whether the video is streamed or not
0098      *
0099      * @var boolean
0100      */
0101     public $Streaming;
0102 
0103     /**
0104      * The thubmnail video for the article, if it exists
0105      *
0106      * @var Zend_Service_Yahoo_Video
0107      */
0108     public $Thumbnail;
0109 
0110     /**
0111      * Video result namespace
0112      *
0113      * @var string
0114      */
0115     protected $_namespace = 'urn:yahoo:srchmv';
0116 
0117 
0118     /**
0119      * Initializes the video result
0120      *
0121      * @param  DOMElement $result
0122      * @return void
0123      */
0124     public function __construct(DOMElement $result)
0125     {
0126         $this->_fields = array('Summary', 'RefererUrl', 'FileSize', 'FileFormat', 'Height', 'Width', 'Duration', 'Channels', 'Streaming', 'Thumbnail');
0127 
0128         parent::__construct($result);
0129 
0130         $this->_setThumbnail();
0131     }
0132 }