/** * Imports a feed located at $uri. * * @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 * @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. */ public static function import($uri, $client = null, $className = 'Zend\\GData\\App\\Feed') { $app = new self($client); $requestData = $app->prepareRequest('GET', $uri); $response = $app->performHttpRequest($requestData['method'], $requestData['url']); $feedContent = $response->getBody(); if (!$this->_useObjectMapping) { return $feedContent; } $feed = self::importString($feedContent, $className); if ($client != null) { $feed->setHttpClient($client); } return $feed; }