Пример #1
0
 /**
  * Imports a feed located at $uri.
  * This method overrides the default behavior of App,
  * providing support for GApps\ServiceException.
  *
  * @param  string $uri
  * @param  \Zend\Http\Client $client (optional) The client used for
  *          communication
  * @param  string $className (optional) The class which is used as the
  *          return type
  * @throws App\Exception
  * @throws App\HttpException
  * @throws GApps\ServiceException
  * @return App\Feed
  */
 public static function import($uri, $client = null, $className = 'ZendGData\\App\\Feed')
 {
     try {
         return parent::import($uri, $client, $className);
     } catch (App\HttpException $e) {
         self::throwServiceExceptionIfDetected($e);
     }
 }