<?php
/**
* Abstract class
*
* 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_Class {
function mtfetcher_Class() {
mtfetcher_Class::_includeFile('mtfetcher_errors');
}
/**
* Includes indicated class
*
* @param string $fName File name without ".php"
* @param string $customDir Custom directory to include class. Default is empty.
* @return void
* @throws object PEAR_Error
* @access protected
*/
function _includeFile($fName,$customDir='') {
$dn = dirname(__FILE__);
$dirName = ($customDir)?$customDir:$dn;
$fileName = $dirName."/".$fName.".php";
if (!file_exists($fileName)) return new mtfetcher_NoFileExists_Error('No file exists '.$fileName);
require_once $fileName;
} // function _includeFile
} // class
?>