ILIAS
Release_4_2_x_branch Revision 61807
|
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 () | |
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... | |
initFeed () | |
Initialisation for feed.php. | |
initLog () | |
initILIASObject () |
Data Fields | |
$script = "" |
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, $path, ILIAS_MODULE, and ilUtil\removeTrailingPathSeparators().
Referenced by initSettings().
ilInitialisation::checkUserAgreement | ( | ) |
Definition at line 764 of file class.ilInitialisation.php.
References $_GET, $_POST, and ilUtil\redirect().
ilInitialisation::checkUserClientIP | ( | ) |
Definition at line 742 of file class.ilInitialisation.php.
References $ilLog, and ilUtil\redirect().
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, ilUtil\setCookie(), and ilUtil\stripSlashes().
Referenced by initFeed().
ilInitialisation::determineScriptAndUpDir | ( | ) |
determine current script and path to main ILIAS directory
Definition at line 602 of file class.ilInitialisation.php.
ilInitialisation::goToLogin | ( | $a_auth_stat = "" | ) |
go to login
Definition at line 878 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, $script, and exit.
Referenced by goToPublicSection().
ilInitialisation::goToPublicSection | ( | ) |
go to public section
Definition at line 797 of file class.ilInitialisation.php.
References $_GET, $_POST, $script, ilStartUpGUI\_checkGoto(), ilAuthUtils\_initAuth(), exit, goToLogin(), initUserAccount(), and setSessionHandler().
ilInitialisation::handleMaintenanceMode | ( | ) |
handle maintenance mode
Definition at line 441 of file class.ilInitialisation.php.
References ilUtil\redirect().
Referenced by initFeed().
ilInitialisation::handleStyle | ( | ) |
set skin and style via $_GET parameters "skin" and "style"
Definition at line 656 of file class.ilInitialisation.php.
References $_GET, $_SESSION, and ilObjStyleSettings\_lookupActivatedStyle().
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().
ilInitialisation::initAccessHandling | ( | ) |
$ilAccess and $rbac...
initialisation
Definition at line 984 of file class.ilInitialisation.php.
References $GLOBALS, $ilBench, and ilRbacSystem\getInstance().
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 376 of file class.ilInitialisation.php.
References $GLOBALS, ILIAS_ABSOLUTE_PATH, and ILIAS_WEB_DIR.
Referenced by initFeed().
ilInitialisation::initDatabase | ( | ) |
initialise database object $ilDB
Definition at line 464 of file class.ilInitialisation.php.
References $GLOBALS, $ilDB, and ilDBWrapperFactory\getWrapper().
Referenced by initFeed().
ilInitialisation::initEventHandling | ( | ) |
initialise event handler ilAppEventHandler
Definition at line 480 of file class.ilInitialisation.php.
References $GLOBALS.
Referenced by initFeed().
ilInitialisation::initFeed | ( | ) |
Initialisation for feed.php.
Definition at line 1510 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::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().
ilInitialisation::initILIASObject | ( | ) |
Definition at line 1588 of file class.ilInitialisation.php.
ilInitialisation::initLanguage | ( | ) |
$lng initialisation
Definition at line 917 of file class.ilInitialisation.php.
References $_GET, $_POST, $_SESSION, $GLOBALS, $ilBench, $ilSetting, $lng, ilLanguage\getInstalledLanguages(), and ilUtil\stripSlashes().
ilInitialisation::initLocale | ( | ) |
Init Locale.
Definition at line 714 of file class.ilInitialisation.php.
References $GLOBALS, and $ilSetting.
ilInitialisation::initLog | ( | ) |
ilInitialisation::initSettings | ( | ) |
initialise $ilSettings object and define constants
Definition at line 566 of file class.ilInitialisation.php.
References $GLOBALS, $ilSetting, ilPaymentSettings\_isPaymentEnabled(), and buildHTTPPath().
Referenced by initFeed().
ilInitialisation::initStyle | ( | ) |
provide $styleDefinition object
Definition at line 629 of file class.ilInitialisation.php.
References $GLOBALS, $ilBench, ilPluginAdmin\getPluginObject(), and IL_COMP_SERVICE.
ilInitialisation::initUserAccount | ( | ) |
Definition at line 682 of file class.ilInitialisation.php.
References $_SESSION, and $ilLog.
Referenced by goToPublicSection().
ilInitialisation::removeUnsafeCharacters | ( | ) |
Remove unsafe characters from GET.
Definition at line 27 of file class.ilInitialisation.php.
References $_GET.
Referenced by initFeed().
ilInitialisation::requireCommonIncludes | ( | ) |
get common include code files
Definition at line 61 of file class.ilInitialisation.php.
References $GLOBALS, $ilBench, and ilUtil\StopWatch().
Referenced by initFeed().
ilInitialisation::returnBeforeAuth | ( | $a_flag = null | ) |
Definition at line 47 of file class.ilInitialisation.php.
References $return_before_auth.
ilInitialisation::setCookieParams | ( | ) |
set session cookie params for path, domain, etc.
Definition at line 511 of file class.ilInitialisation.php.
References $GLOBALS, ilAuthFactory\CONTEXT_HTTP, ilAuthFactory\getContext(), and IL_COOKIE_PATH.
ilInitialisation::setSessionHandler | ( | ) |
set session handler to db
Definition at line 493 of file class.ilInitialisation.php.
References $ilErr, and db_set_save_handler().
Referenced by goToPublicSection().
|
private |
Definition at line 21 of file class.ilInitialisation.php.
Referenced by returnBeforeAuth().
ilInitialisation::$script = "" |
Definition at line 22 of file class.ilInitialisation.php.
Referenced by goToLogin(), and goToPublicSection().