/** * Registers autoloader for PHPRtfLite classes */ public static function registerAutoloader() { $baseClassDir = dirname(__FILE__); require $baseClassDir . '/PHPRtfLite/Autoloader.php'; PHPRtfLite_Autoloader::setBaseDir($baseClassDir); spl_autoload_register(array('PHPRtfLite_Autoloader', 'autoload')); }
/** * Sets the base dir, where PHPRtfLite classes can be found * @param string $dir */ public static function setBaseDir($dir) { self::$_baseDir = $dir; }