File indexing completed on 2025-01-26 05:25:30
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_ImageResult extends Zend_Service_Yahoo_Result 0039 { 0040 /** 0041 * Summary info for the image 0042 * 0043 * @var string 0044 */ 0045 public $Summary; 0046 0047 /** 0048 * The URL of the webpage hosting the image 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 image in pixels 0070 * 0071 * @var string 0072 */ 0073 public $Height; 0074 0075 /** 0076 * The width of the image in pixels 0077 * 0078 * @var string 0079 */ 0080 public $Width; 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 * Image result namespace 0091 * 0092 * @var string 0093 */ 0094 protected $_namespace = 'urn:yahoo:srchmi'; 0095 0096 0097 /** 0098 * Initializes the image result 0099 * 0100 * @param DOMElement $result 0101 * @return void 0102 */ 0103 public function __construct(DOMElement $result) 0104 { 0105 $this->_fields = array('Summary', 'RefererUrl', 'FileSize', 'FileFormat', 'Height', 'Width', 'Thumbnail'); 0106 0107 parent::__construct($result); 0108 0109 $this->_setThumbnail(); 0110 } 0111 }