equal
deleted
inserted
replaced
13 * obtain it through the world-wide-web, please send an email |
13 * obtain it through the world-wide-web, please send an email |
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_Feed |
17 * @package Zend_Feed |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: Atom.php 24593 2012-01-05 20:35:02Z matthew $ |
20 * @version $Id$ |
21 */ |
21 */ |
22 |
22 |
23 |
23 |
24 /** |
24 /** |
25 * @see Zend_Feed_Entry_Abstract |
25 * @see Zend_Feed_Entry_Abstract |
26 */ |
26 */ |
27 require_once 'Zend/Feed/Entry/Abstract.php'; |
27 require_once 'Zend/Feed/Entry/Abstract.php'; |
28 |
28 |
|
29 /** @see Zend_Xml_Security */ |
|
30 require_once 'Zend/Xml/Security.php'; |
29 |
31 |
30 /** |
32 /** |
31 * Concrete class for working with Atom entries. |
33 * Concrete class for working with Atom entries. |
32 * |
34 * |
33 * @category Zend |
35 * @category Zend |
34 * @package Zend_Feed |
36 * @package Zend_Feed |
35 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
37 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
36 * @license http://framework.zend.com/license/new-bsd New BSD License |
38 * @license http://framework.zend.com/license/new-bsd New BSD License |
37 */ |
39 */ |
38 class Zend_Feed_Entry_Atom extends Zend_Feed_Entry_Abstract |
40 class Zend_Feed_Entry_Atom extends Zend_Feed_Entry_Abstract |
39 { |
41 { |
40 /** |
42 /** |
192 } |
194 } |
193 |
195 |
194 // Update internal properties using $client->responseBody; |
196 // Update internal properties using $client->responseBody; |
195 @ini_set('track_errors', 1); |
197 @ini_set('track_errors', 1); |
196 $newEntry = new DOMDocument; |
198 $newEntry = new DOMDocument; |
197 $status = @$newEntry->loadXML($response->getBody()); |
199 $newEntry = @Zend_Xml_Security::scan($response->getBody(), $newEntry); |
198 @ini_restore('track_errors'); |
200 @ini_restore('track_errors'); |
199 |
201 |
200 if (!$status) { |
202 if (!$newEntry) { |
201 // prevent the class to generate an undefined variable notice (ZF-2590) |
203 // prevent the class to generate an undefined variable notice (ZF-2590) |
202 if (!isset($php_errormsg)) { |
204 if (!isset($php_errormsg)) { |
203 if (function_exists('xdebug_is_enabled')) { |
205 if (function_exists('xdebug_is_enabled')) { |
204 $php_errormsg = '(error message not available, when XDebug is running)'; |
206 $php_errormsg = '(error message not available, when XDebug is running)'; |
205 } else { |
207 } else { |