diff -r 5e7a0fedabdf -r 877f952ae2bd web/lib/Zend/Gdata/App.php --- a/web/lib/Zend/Gdata/App.php Thu Mar 21 17:31:31 2013 +0100 +++ b/web/lib/Zend/Gdata/App.php Thu Mar 21 19:50:53 2013 +0100 @@ -16,9 +16,9 @@ * @category Zend * @package Zend_Gdata * @subpackage App - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License - * @version $Id: App.php 22972 2010-09-18 20:33:53Z ramon $ + * @version $Id: App.php 25259 2013-02-13 17:38:12Z frosch $ */ /** @@ -42,6 +42,11 @@ require_once 'Zend/Gdata/App/MediaSource.php'; /** + * Zend_Uri/Http + */ +require_once 'Zend/Uri/Http.php'; + +/** * Provides Atom Publishing Protocol (APP) functionality. This class and all * other components of Zend_Gdata_App are designed to work independently from * other Zend_Gdata components in order to interact with generic APP services. @@ -49,7 +54,7 @@ * @category Zend * @package Zend_Gdata * @subpackage App - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ class Zend_Gdata_App @@ -719,14 +724,14 @@ * @param string $uri * @param Zend_Http_Client $client The client used for communication * @param string $className The class which is used as the return type + * @param bool $useObjectMapping Enable/disable the use of XML to object mapping. * @throws Zend_Gdata_App_Exception - * @return string|Zend_Gdata_App_Feed Returns string only if the object - * mapping has been disabled explicitly - * by passing false to the - * useObjectMapping() function. + * @return string|Zend_Gdata_App_Feed Returns string only if the fourth + * parameter ($useObjectMapping) is set + * to false. */ public static function import($uri, $client = null, - $className='Zend_Gdata_App_Feed') + $className='Zend_Gdata_App_Feed', $useObjectMapping = true) { $app = new Zend_Gdata_App($client); $requestData = $app->prepareRequest('GET', $uri); @@ -734,7 +739,7 @@ $requestData['method'], $requestData['url']); $feedContent = $response->getBody(); - if (!$this->_useObjectMapping) { + if (false === $useObjectMapping) { return $feedContent; } $feed = self::importString($feedContent, $className); @@ -1055,6 +1060,9 @@ break; } catch (Zend_Exception $e) { // package wasn't here- continue searching + } catch (ErrorException $e) { + // package wasn't here- continue searching + // @see ZF-7013 and ZF-11959 } } if ($foundClassName != null) { @@ -1087,7 +1095,7 @@ * significant amount of time to complete. In some cases this may cause * execution to timeout without proper precautions in place. * - * @param $feed The feed to iterate through. + * @param object $feed The feed to iterate through. * @return mixed A new feed of the same type as the one originally * passed in, containing all relevent entries. */ @@ -1117,7 +1125,7 @@ * NOTE: This will not work if you have customized the adapter * already to use a proxy server or other interface. * - * @param $logfile The logfile to use when logging the requests + * @param string $logfile The logfile to use when logging the requests */ public function enableRequestDebugLogging($logfile) {