ILIAS
Release_4_0_x_branch Revision 61816
|
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. | |
returnBeforeAuth ($a_flag=null) | |
requireCommonIncludes () | |
get common include code files | |
includePhp5Compliance () | |
This is a hack for CAS authentication. | |
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 | |
setCookieParams ($context) | |
set session cookie params for path, domain, etc. | |
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 () | |
initLocale () | |
Init Locale. | |
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 () |
Private Attributes | |
$return_before_auth = false |
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 19 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 266 of file class.ilInitialisation.php.
References $dir, $dirs, ILIAS_MODULE, and ilUtil\removeTrailingPathSeparators().
Referenced by initSettings().
ilInitialisation::checkUserAgreement | ( | ) |
Definition at line 741 of file class.ilInitialisation.php.
References $_GET, $_POST, $ilAuth, and ilUtil\redirect().
Referenced by initILIAS().
ilInitialisation::checkUserClientIP | ( | ) |
Definition at line 719 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 327 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, $client_id, $ilIliasIniFile, and ilUtil\setCookie().
Referenced by initFeed(), and initILIAS().
ilInitialisation::determineScriptAndUpDir | ( | ) |
determine current script and path to main ILIAS directory
Definition at line 590 of file class.ilInitialisation.php.
Referenced by initILIAS().
ilInitialisation::goToLogin | ( | $a_auth_stat = "" | ) |
go to login
Definition at line 846 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, and exit.
Referenced by goToPublicSection(), and initILIAS().
ilInitialisation::goToPublicSection | ( | ) |
go to public section
Definition at line 773 of file class.ilInitialisation.php.
References $_GET, $_POST, $ilAuth, ilStartUpGUI\_checkGoto(), ilAuthUtils\_initAuth(), exit, goToLogin(), initUserAccount(), and setSessionHandler().
Referenced by initILIAS().
ilInitialisation::handleMaintenanceMode | ( | ) |
handle maintenance mode
Definition at line 439 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 633 of file class.ilInitialisation.php.
References $_GET, $_SESSION, and ilObjStyleSettings\_lookupActivatedStyle().
Referenced by initILIAS().
ilInitialisation::includePhp5Compliance | ( | ) |
This is a hack for CAS authentication.
Since the phpCAS lib ships with its own compliance functions.
Definition at line 164 of file class.ilInitialisation.php.
References ilAuthFactory\CONTEXT_CAS, and ilAuthFactory\getContext().
Referenced by initILIAS().
ilInitialisation::initAccessHandling | ( | ) |
$ilAccess and $rbac...
initialisation
Definition at line 952 of file class.ilInitialisation.php.
References $GLOBALS, $ilBench, and ilRbacSystem\getInstance().
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 375 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
Definition at line 462 of file class.ilInitialisation.php.
References $GLOBALS, $ilDB, and ilDBWrapperFactory\getWrapper().
Referenced by initFeed(), and initILIAS().
ilInitialisation::initEventHandling | ( | ) |
initialise event handler ilAppEventHandler
Definition at line 478 of file class.ilInitialisation.php.
References $GLOBALS.
Referenced by initFeed(), and initILIAS().
ilInitialisation::initFeed | ( | ) |
Initialisation for feed.php.
Definition at line 1495 of file class.ilInitialisation.php.
References $_COOKIE, $GLOBALS, $ilBench, $ilCtrl, $ilDB, $ilErr, $ilIliasIniFile, $ilLog, $ilSetting, $lng, determineClient(), exit, handleMaintenanceMode(), initClientIniFile(), initDatabase(), initEventHandling(), initIliasIniFile(), initSettings(), PEAR_ERROR_CALLBACK, removeUnsafeCharacters(), requireCommonIncludes(), and ilUtil\setCookie().
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 976 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, $_POST, $_SESSION, $GLOBALS, $ilAuth, $ilBench, $ilCtrl, $ilDB, $ilErr, $ilIliasIniFile, $ilLog, $ilSetting, $lng, $tpl, $usr_id, ilSession\_exists(), 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(), elseif(), exit, ilUtil\getStyleSheetLocation(), goToLogin(), goToPublicSection(), handleMaintenanceMode(), handleStyle(), includePhp5Compliance(), initAccessHandling(), initClientIniFile(), initDatabase(), initEventHandling(), initIliasIniFile(), initLanguage(), initLocale(), initLog(), initSettings(), initStyle(), initUserAccount(), PEAR_ERROR_CALLBACK, ilUtil\redirect(), removeUnsafeCharacters(), requireCommonIncludes(), returnBeforeAuth(), ilUtil\setCookie(), setCookieParams(), PEAR\setErrorHandling(), 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 191 of file class.ilInitialisation.php.
References $GLOBALS, and $ilIliasIniFile.
Referenced by initFeed(), and initILIAS().
ilInitialisation::initILIASObject | ( | ) |
Definition at line 1573 of file class.ilInitialisation.php.
ilInitialisation::initLanguage | ( | ) |
$lng initialisation
Definition at line 885 of file class.ilInitialisation.php.
References $_GET, $_POST, $_SESSION, $GLOBALS, $ilBench, $ilSetting, $lng, ilLanguage\getInstalledLanguages(), and ilUtil\stripSlashes().
Referenced by initILIAS().
ilInitialisation::initLocale | ( | ) |
Init Locale.
Definition at line 691 of file class.ilInitialisation.php.
References $GLOBALS, $ilSetting, and $l.
Referenced by initILIAS().
ilInitialisation::initLog | ( | ) |
Definition at line 1565 of file class.ilInitialisation.php.
References $GLOBALS, $ilLog, and $log.
Referenced by initILIAS().
ilInitialisation::initSettings | ( | ) |
initialise $ilSettings object and define constants
Definition at line 558 of file class.ilInitialisation.php.
References $GLOBALS, $ilSetting, and buildHTTPPath().
Referenced by initFeed(), and initILIAS().
ilInitialisation::initStyle | ( | ) |
provide $styleDefinition object
Definition at line 617 of file class.ilInitialisation.php.
References $GLOBALS, and $ilBench.
Referenced by initILIAS().
ilInitialisation::initUserAccount | ( | ) |
Definition at line 659 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 26 of file class.ilInitialisation.php.
References $_GET.
Referenced by initFeed(), and initILIAS().
ilInitialisation::requireCommonIncludes | ( | ) |
get common include code files
Definition at line 60 of file class.ilInitialisation.php.
References $GLOBALS, $ilBench, and ilUtil\StopWatch().
Referenced by initFeed(), and initILIAS().
ilInitialisation::returnBeforeAuth | ( | $a_flag = null | ) |
Definition at line 46 of file class.ilInitialisation.php.
References $return_before_auth.
Referenced by initILIAS().
ilInitialisation::setCookieParams | ( | $context | ) |
set session cookie params for path, domain, etc.
Definition at line 509 of file class.ilInitialisation.php.
Referenced by initILIAS().
ilInitialisation::setSessionHandler | ( | ) |
set session handler to db
Definition at line 491 of file class.ilInitialisation.php.
References $ilErr, and db_set_save_handler().
Referenced by goToPublicSection(), and initILIAS().
|
private |
Definition at line 21 of file class.ilInitialisation.php.
Referenced by returnBeforeAuth().