1<?php 2 3class FetcherLocalFile extends Fetcher { 4 var $_content; 5 6 function FetcherLocalFile($file) { 7 $this->_content = file_get_contents($file); 8 } 9 10 function get_data($dummy1) { 11 return new FetchedDataURL($this->_content, array(), ""); 12 } 13 14 function get_base_url() { 15 return ''; 16 } 17 18 function error_message() { 19 return ''; 20 } 21} 22?>