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 Gdata |
18 * @subpackage Gdata |
19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @copyright Copyright (c) 2005-2015 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: Gdata.php 24593 2012-01-05 20:35:02Z matthew $ |
21 * @version $Id$ |
22 */ |
22 */ |
23 |
23 |
24 /** |
24 /** |
25 * Zend_Gdata_App |
25 * Zend_Gdata_App |
26 */ |
26 */ |
36 * @link http://code.google.com/apis/gdata/overview.html |
36 * @link http://code.google.com/apis/gdata/overview.html |
37 * |
37 * |
38 * @category Zend |
38 * @category Zend |
39 * @package Zend_Gdata |
39 * @package Zend_Gdata |
40 * @subpackage Gdata |
40 * @subpackage Gdata |
41 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
41 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
42 * @license http://framework.zend.com/license/new-bsd New BSD License |
42 * @license http://framework.zend.com/license/new-bsd New BSD License |
43 */ |
43 */ |
44 class Zend_Gdata extends Zend_Gdata_App |
44 class Zend_Gdata extends Zend_Gdata_App |
45 { |
45 { |
46 |
46 |
119 * mapping has been disabled explicitly |
119 * mapping has been disabled explicitly |
120 * by passing false to the |
120 * by passing false to the |
121 * useObjectMapping() function. |
121 * useObjectMapping() function. |
122 */ |
122 */ |
123 public static function import($uri, $client = null, |
123 public static function import($uri, $client = null, |
124 $className='Zend_Gdata_Feed') |
124 $className='Zend_Gdata_Feed', $useObjectMapping = true) |
125 { |
125 { |
126 $app = new Zend_Gdata($client); |
126 $app = new Zend_Gdata($client); |
127 $requestData = $app->decodeRequest('GET', $uri); |
127 $requestData = $app->decodeRequest('GET', $uri); |
128 $response = $app->performHttpRequest($requestData['method'], $requestData['url']); |
128 $response = $app->performHttpRequest($requestData['method'], $requestData['url']); |
129 |
129 |