/** * ilias initialisation */ public static function initILIAS() { global $tree; self::initCore(); if (ilContext::initClient()) { self::initClient(); if (ilContext::hasUser()) { self::initUser(); self::authenticate(); } // init after Auth otherwise breaks CAS self::includePhp5Compliance(); // language may depend on user setting // Object selection breaks if the laguage is not set. self::initLanguage(); $tree->initLangCode(); } }
/** * ilias initialisation */ public static function initILIAS() { global $tree; static::initCore(); if (ilContext::initClient()) { static::initClient(); // we always need a user! static::initUser(); // init after Auth otherwise breaks CAS static::includePhp5Compliance(); // language may depend on user setting static::initLanguage(); $tree->initLangCode(); //if(ilContext::hasHTML()) //{ // include_once('./Services/WebServices/ECS/classes/class.ilECSTaskScheduler.php'); // ilECSTaskScheduler::start(); //} } }
/** * ilias initialisation */ public static function initILIAS() { if (self::$already_initialized) { return; } self::$already_initialized = true; global $tree; self::initCore(); if (ilContext::initClient()) { self::initClient(); if (ilContext::hasUser()) { self::initUser(); if (ilContext::doAuthentication()) { self::authenticate(); } } // init after Auth otherwise breaks CAS self::includePhp5Compliance(); // language may depend on user setting self::initLanguage(); $tree->initLangCode(); if (ilContext::hasHTML()) { include_once './Services/WebServices/ECS/classes/class.ilECSTaskScheduler.php'; ilECSTaskScheduler::start(); self::initHTML(); } } }
/** * ilias initialisation * * This needs to be overwritten because Ilias would ignore several settings * initIlias has to be overwritten because there is no easy way to * refine the context definition */ public static function initILIAS() { if (self::$already_initialized) { return; } self::$already_initialized = true; global $tree; self::initCore(); if (ilContext::initClient()) { self::initClient(); self::initUser(); // NOTE authenticate() will setup the session user self::authenticate(); // init after Auth otherwise breaks CAS self::includePhp5Compliance(); // language may depend on user setting self::initLanguage(); $tree->initLangCode(); } }