equal
deleted
inserted
replaced
14 * to license@zend.com so we can send you a copy immediately. |
14 * to license@zend.com so we can send you a copy immediately. |
15 * |
15 * |
16 * @category Zend |
16 * @category Zend |
17 * @package Zend_Gdata |
17 * @package Zend_Gdata |
18 * @subpackage YouTube |
18 * @subpackage YouTube |
19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
20 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @license http://framework.zend.com/license/new-bsd New BSD License |
21 * @version $Id: VideoQuery.php 20097 2010-01-06 15:40:27Z bate $ |
21 * @version $Id: VideoQuery.php 25185 2013-01-08 08:07:08Z frosch $ |
22 */ |
22 */ |
23 |
23 |
24 /** |
24 /** |
25 * Zend_Gdata_YouTube |
25 * Zend_Gdata_YouTube |
26 */ |
26 */ |
37 * @link http://code.google.com/apis/youtube/ |
37 * @link http://code.google.com/apis/youtube/ |
38 * |
38 * |
39 * @category Zend |
39 * @category Zend |
40 * @package Zend_Gdata |
40 * @package Zend_Gdata |
41 * @subpackage YouTube |
41 * @subpackage YouTube |
42 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
42 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
43 * @license http://framework.zend.com/license/new-bsd New BSD License |
43 * @license http://framework.zend.com/license/new-bsd New BSD License |
44 */ |
44 */ |
45 class Zend_Gdata_YouTube_VideoQuery extends Zend_Gdata_Query |
45 class Zend_Gdata_YouTube_VideoQuery extends Zend_Gdata_Query |
46 { |
46 { |
47 |
47 |
90 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; |
90 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; |
91 throw new Zend_Gdata_App_Exception( |
91 throw new Zend_Gdata_App_Exception( |
92 'Video ID must be set for feed of type: ' . $feedType); |
92 'Video ID must be set for feed of type: ' . $feedType); |
93 } else { |
93 } else { |
94 $this->_url = Zend_Gdata_YouTube::VIDEO_URI . '/' . $videoId . |
94 $this->_url = Zend_Gdata_YouTube::VIDEO_URI . '/' . $videoId . |
95 'responses'; |
95 '/responses'; |
96 } |
96 } |
97 break; |
97 break; |
98 case 'comments': |
98 case 'comments': |
99 if ($videoId === null) { |
99 if ($videoId === null) { |
100 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; |
100 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; |
101 throw new Zend_Gdata_App_Exception( |
101 throw new Zend_Gdata_App_Exception( |
102 'Video ID must be set for feed of type: ' . $feedType); |
102 'Video ID must be set for feed of type: ' . $feedType); |
103 } else { |
103 } else { |
104 $this->_url = Zend_Gdata_YouTube::VIDEO_URI . '/' . |
104 $this->_url = Zend_Gdata_YouTube::VIDEO_URI . '/' . |
105 $videoId . 'comments'; |
105 $videoId . '/comments'; |
106 if ($entry !== null) { |
106 if ($entry !== null) { |
107 $this->_url .= '/' . $entry; |
107 $this->_url .= '/' . $entry; |
108 } |
108 } |
109 } |
109 } |
110 break; |
110 break; |