public function download($url)
	{
		$getResult = $this->session->get($url);

		if (!$getResult->success) {
			$this->error = array();
			$this->error['file'] = 'Download error (HTTP status: ' . $getResult->status_code . ')';
			$this->error['http'] = $getResult->status_code;
			return null;
		}
		return $getResult->body;
	}
public function download($url)
	{
		$getResult = $this->session->get($url);

		if (!$getResult->success) {
			$this->error = array();
			$this->error['file'] = 'Download error (HTTP status: ' . $getResult->status_code . ')';
			$this->error['http'] = $getResult->status_code;
			return null;
		}
		return $getResult->body;
	}
public function download ( $ url ) { $ getResult = $ this -> session -> get ( $ url ) ; if ( ! $ getResult -> success ) { $ this -> error = array ( ) ; $ this -> error [ 'file' ] = 'Download error (HTTP status: ' . $ getResult -> status_code . ')' ; $ this -> error [ 'http' ] = $ getResult -> status_code ; return null ; } return $ getResult -> body ; }
Downloads data from the given URL.

@param   string  $url  The URL to download from
@return  mixed         The downloaded data (string), or null if error
Downloads data from the given URL .