Exemplo n.º 1
0
 /**
  * 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'));
 }
Exemplo n.º 2
0
 /**
  * Sets the base dir, where PHPRtfLite classes can be found
  * @param string $dir
  */
 public static function setBaseDir($dir)
 {
     self::$_baseDir = $dir;
 }