/** * Register the Chamilo autoloader on the stack. * Will only do it once so this method is repeatable. */ public static function register() { if (self::is_registered()) { return false; } $f = array(new self(), 'load'); spl_autoload_register($f); self::$is_registered = true; return true; }