Exemplo n.º 1
0
 /**
  * Inits the autoloading.
  *
  * @static
  * @param string|array $includePath (optional) string or array of strings of include paths to add to the loader
  * @return bool
  */
 public static function init($includePath = null)
 {
     if (is_null($includePath)) {
         $includePath = realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR);
     }
     self::$_loader =& WeLearn_Base_Loader::getInstance();
     self::$_loader->addIncludePath($includePath);
     return self::registerAutoLoader(__CLASS__ . '::Autoload');
 }