ILIAS
Release_3_10_x_branch Revision 61812
|
ILIAS Initialisation Utility Class perform basic setup: init database handler, load configuration file, init user authentification & error handler, load object type definitions. More...
Public Member Functions | |
removeUnsafeCharacters () | |
Remove unsafe characters from GET. | |
requireCommonIncludes () | |
get common include code files | |
initIliasIniFile () | |
This method provides a global instance of class ilIniFile for the ilias.ini.php file in variable $ilIliasIniFile. | |
buildHTTPPath () | |
builds http path | |
determineClient () | |
This method determines the current client and sets the constant CLIENT_ID. | |
initClientIniFile () | |
This method provides a global instance of class ilIniFile for the client.ini.php file in variable $ilClientIniFile. | |
handleMaintenanceMode () | |
handle maintenance mode | |
initDatabase () | |
initialise database object $ilDB | |
initEventHandling () | |
initialise event handler ilAppEventHandler | |
setSessionHandler () | |
set session handler to db | |
initSettings () | |
initialise $ilSettings object and define constants | |
determineScriptAndUpDir () | |
determine current script and path to main ILIAS directory | |
initStyle () | |
provide $styleDefinition object | |
handleStyle () | |
set skin and style via $_GET parameters "skin" and "style" | |
initUserAccount () | |
checkUserClientIP () | |
checkUserAgreement () | |
goToPublicSection () | |
go to public section | |
goToLogin ($a_auth_stat="") | |
go to login | |
initLanguage () | |
$lng initialisation | |
initAccessHandling () | |
$ilAccess and $rbac... | |
initILIAS ($context="web") | |
ilias initialisation | |
initFeed () | |
Initialisation for feed.php. | |
initLog () | |
initILIASObject () |
ILIAS Initialisation Utility Class perform basic setup: init database handler, load configuration file, init user authentification & error handler, load object type definitions.
Definition at line 39 of file class.ilInitialisation.php.
ilInitialisation::buildHTTPPath | ( | ) |
builds http path
this is also used by other classes now, e.g. in ilSoapAuthenticationCAS.php
Definition at line 253 of file class.ilInitialisation.php.
References $dir, $dirs, ILIAS_MODULE, and ilUtil\removeTrailingPathSeparators().
Referenced by initSettings().
ilInitialisation::checkUserAgreement | ( | ) |
Definition at line 637 of file class.ilInitialisation.php.
References $_GET, $ilAuth, and ilUtil\redirect().
Referenced by initILIAS().
ilInitialisation::checkUserClientIP | ( | ) |
Definition at line 615 of file class.ilInitialisation.php.
References $ilAuth, $ilLog, and ilUtil\redirect().
Referenced by initILIAS().
ilInitialisation::determineClient | ( | ) |
This method determines the current client and sets the constant CLIENT_ID.
Definition at line 314 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, $client_id, and $ilIliasIniFile.
Referenced by initFeed(), and initILIAS().
ilInitialisation::determineScriptAndUpDir | ( | ) |
determine current script and path to main ILIAS directory
Definition at line 521 of file class.ilInitialisation.php.
Referenced by initILIAS().
ilInitialisation::goToLogin | ( | $a_auth_stat = "" | ) |
go to login
Definition at line 754 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, and exit.
Referenced by goToPublicSection(), and initILIAS().
ilInitialisation::goToPublicSection | ( | ) |
go to public section
Definition at line 666 of file class.ilInitialisation.php.
References $_GET, $ilAuth, ilStartUpGUI\_checkGoto(), ilAuthUtils\_initAuth(), exit, goToLogin(), initUserAccount(), and setSessionHandler().
Referenced by initILIAS().
ilInitialisation::handleMaintenanceMode | ( | ) |
handle maintenance mode
Definition at line 415 of file class.ilInitialisation.php.
References ilUtil\redirect().
Referenced by initFeed(), and initILIAS().
ilInitialisation::handleStyle | ( | ) |
set skin and style via $_GET parameters "skin" and "style"
Definition at line 564 of file class.ilInitialisation.php.
References $_GET, $_SESSION, and ilObjStyleSettings\_lookupActivatedStyle().
Referenced by initILIAS().
ilInitialisation::initAccessHandling | ( | ) |
$ilAccess and $rbac...
initialisation
Definition at line 853 of file class.ilInitialisation.php.
References $GLOBALS, and $ilBench.
Referenced by initILIAS().
ilInitialisation::initClientIniFile | ( | ) |
This method provides a global instance of class ilIniFile for the client.ini.php file in variable $ilClientIniFile.
It initializes a lot of constants accordingly to the settings in the client.ini.php file.
Preconditions: ILIAS_WEB_DIR and CLIENT_ID must be set.
Definition at line 354 of file class.ilInitialisation.php.
References $GLOBALS, ILIAS_ABSOLUTE_PATH, and ILIAS_WEB_DIR.
Referenced by initFeed(), and initILIAS().
ilInitialisation::initDatabase | ( | ) |
initialise database object $ilDB
precondition: IL_DSN must be set
Definition at line 439 of file class.ilInitialisation.php.
References $GLOBALS.
Referenced by initFeed(), and initILIAS().
ilInitialisation::initEventHandling | ( | ) |
initialise event handler ilAppEventHandler
Definition at line 458 of file class.ilInitialisation.php.
References $GLOBALS.
Referenced by initFeed(), and initILIAS().
ilInitialisation::initFeed | ( | ) |
Initialisation for feed.php.
Definition at line 1341 of file class.ilInitialisation.php.
References $_COOKIE, $GLOBALS, $ilBench, $ilCtrl, $ilErr, $ilIliasIniFile, $ilLog, $ilSetting, $lng, determineClient(), exit, handleMaintenanceMode(), initClientIniFile(), initDatabase(), initEventHandling(), initIliasIniFile(), initSettings(), removeUnsafeCharacters(), and requireCommonIncludes().
ilInitialisation::initILIAS | ( | $context = "web" | ) |
ilias initialisation
string | $context | this is used for circumvent redirects to the login page if called e.g. by soap |
Definition at line 874 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, $_SESSION, $GLOBALS, $ilAuth, $ilBench, $ilCtrl, $ilErr, $ilIliasIniFile, $ilLog, $ilSetting, $lng, $tpl, ilECSTaskScheduler\_getInstance(), ilSecuritySettings\_getInstance(), ilObjUser\_getLoginAttempts(), ilObjUser\_incrementLoginAttempts(), ilAuthUtils\_initAuth(), ilObjUser\_lookupHasIlias2Password(), ilObjUser\_lookupId(), ilObjUser\_resetLoginAttempts(), ilObjUser\_setUserInactive(), ilObjUser\_switchToIlias3Password(), ilOnlineTracking\_updateAccess(), ilSecuritySettings\ACCOUNT_SECURITY_MODE_CUSTOMIZED, AUTH_EXPIRED, AUTH_IDLED, AUTH_LOCAL, checkUserAgreement(), checkUserClientIP(), determineClient(), determineScriptAndUpDir(), exit, ilUtil\getStyleSheetLocation(), goToLogin(), goToPublicSection(), handleMaintenanceMode(), handleStyle(), initAccessHandling(), initClientIniFile(), initDatabase(), initEventHandling(), initIliasIniFile(), initLanguage(), initLog(), initSettings(), initStyle(), initUserAccount(), ilUtil\redirect(), removeUnsafeCharacters(), requireCommonIncludes(), setSessionHandler(), and ilUtil\stripSlashes().
ilInitialisation::initIliasIniFile | ( | ) |
This method provides a global instance of class ilIniFile for the ilias.ini.php file in variable $ilIliasIniFile.
It initializes a lot of constants accordingly to the settings in the ilias.ini.php file.
Definition at line 189 of file class.ilInitialisation.php.
References $GLOBALS, and $ilIliasIniFile.
Referenced by initFeed(), and initILIAS().
ilInitialisation::initILIASObject | ( | ) |
Definition at line 1420 of file class.ilInitialisation.php.
ilInitialisation::initLanguage | ( | ) |
$lng initialisation
Definition at line 793 of file class.ilInitialisation.php.
References $_GET, $_SESSION, $GLOBALS, $ilBench, $ilSetting, $lng, ilLanguage\getInstalledLanguages(), and ilUtil\stripSlashes().
Referenced by initILIAS().
ilInitialisation::initLog | ( | ) |
Definition at line 1412 of file class.ilInitialisation.php.
References $GLOBALS, $ilLog, and $log.
Referenced by initILIAS().
ilInitialisation::initSettings | ( | ) |
initialise $ilSettings object and define constants
Definition at line 490 of file class.ilInitialisation.php.
References $GLOBALS, $ilSetting, and buildHTTPPath().
Referenced by initFeed(), and initILIAS().
ilInitialisation::initStyle | ( | ) |
provide $styleDefinition object
Definition at line 548 of file class.ilInitialisation.php.
References $GLOBALS, and $ilBench.
Referenced by initILIAS().
ilInitialisation::initUserAccount | ( | ) |
Definition at line 590 of file class.ilInitialisation.php.
References $_SESSION, $ilAuth, and $ilLog.
Referenced by goToPublicSection(), and initILIAS().
ilInitialisation::removeUnsafeCharacters | ( | ) |
Remove unsafe characters from GET.
Definition at line 45 of file class.ilInitialisation.php.
References $_GET.
Referenced by initFeed(), and initILIAS().
ilInitialisation::requireCommonIncludes | ( | ) |
get common include code files
Definition at line 68 of file class.ilInitialisation.php.
References $GLOBALS, $ilBench, and ilUtil\StopWatch().
Referenced by initFeed(), and initILIAS().
ilInitialisation::setSessionHandler | ( | ) |
set session handler to db
Definition at line 471 of file class.ilInitialisation.php.
References $ilErr, and db_set_save_handler().
Referenced by goToPublicSection(), and initILIAS().