<?php
/**
* Concrete web page transport
* Fetches page with file_get_contents PHP-function
*
* Use this class under GPL license
* @author Eugene Panin <hide@address.com>, Lubertsy, Russia, 2004
* @home http://www.tortuga.pp.ru/index.php/processor/index/lang/en
* @package mtfetcher
* @depends PEAR (http://pear.php.net)
* @version 1.0
*/
class mtfetcher_Transport_fgc extends mtfetcher_Transport {
/**
* Fetches web page from indicated URL
*
* @param string $url URL of web page
* @return string Web page
* @throws object mtfetcher_Error
* @access public
*/
function getPage($url) {
$page = file_get_contents($url);
if (!$page) return new mtfetcher_CantFetch_Error('Cant fetch web page at '.$url);
return $page;
} // getPage
}
?>