Exemplo n.º 1
0
 /**
  * This class method is called every time a class needs to be autoloaded.
  *
  * @static
  * @throws WeLearn_Base_LoaderNaoIniciadoException
  * @param string $className The name of the class needed to be loaded
  * @return bool
  */
 public static function Autoload($className)
 {
     if (self::hasInitiated()) {
         return self::$_loader->loadClass($className);
     } else {
         throw new WeLearn_Base_LoaderNaoIniciadoException();
     }
 }