| ILIAS
    release_5-4 Revision v5.4.26-12-gabc799a52e6
    | 
Service context (factory) class. More...
 Inheritance diagram for ilContext:
 Inheritance diagram for ilContext: Collaboration diagram for ilContext:
 Collaboration diagram for ilContext:| Static Public Member Functions | |
| static | init ($a_type) | 
| Init context by type.  More... | |
| static | directCall ($a_type, $a_method) | 
| Call context method directly without internal handling.  More... | |
| static | supportsRedirects () | 
| Are redirects supported?  More... | |
| static | hasUser () | 
| Based on user authentication?  More... | |
| static | usesHTTP () | 
| Uses HTTP aka browser.  More... | |
| static | hasHTML () | 
| Has HTML output.  More... | |
| static | usesTemplate () | 
| Uses template engine.  More... | |
| static | initClient () | 
| Init client.  More... | |
| static | doAuthentication () | 
| Try authentication.  More... | |
| static | supportsPushMessages () | 
| Supports push messages.  More... | |
| static | getType () | 
| Get context type.  More... | |
| static | supportsPersistentSessions () | 
| Check if context supports persistent session handling.  More... | |
| static | isSessionMainContext () | 
| Context that are not only temporary in a session (e.g.  More... | |
| Data Fields | |
| const | CONTEXT_WEB = "ilContextWeb" | 
| const | CONTEXT_CRON = "ilContextCron" | 
| const | CONTEXT_RSS = "ilContextRss" | 
| const | CONTEXT_ICAL = "ilContextIcal" | 
| const | CONTEXT_SOAP = "ilContextSoap" | 
| const | CONTEXT_SOAP_NO_AUTH = 'ilContextSoapNoAuth' | 
| const | CONTEXT_WEBDAV = "ilContextWebdav" | 
| const | CONTEXT_RSS_AUTH = "ilContextRssAuth" | 
| const | CONTEXT_SESSION_REMINDER = "ilContextSessionReminder" | 
| const | CONTEXT_SOAP_WITHOUT_CLIENT = "ilContextSoapWithoutClient" | 
| const | CONTEXT_UNITTEST = "ilContextUnitTest" | 
| const | CONTEXT_REST = "ilContextRest" | 
| const | CONTEXT_SCORM = "ilContextScorm" | 
| const | CONTEXT_WAC = "ilContextWAC" | 
| const | CONTEXT_APACHE_SSO = 'ilContextApacheSSO' | 
| const | CONTEXT_SHIBBOLETH = 'ilContextShibboleth' | 
| const | CONTEXT_LTI_PROVIDER = 'ilContextLTIProvider' | 
| const | CONTEXT_SAML = 'ilContextSaml' | 
| Static Protected Member Functions | |
| static | callContext ($a_method) | 
| Call current content.  More... | |
| Static Protected Attributes | |
| static | $class_name | 
| static | $type | 
| 
 | staticprotected | 
Call current content.
| string | $a_method | 
Definition at line 77 of file class.ilContext.php.
References init().
Referenced by doAuthentication(), hasHTML(), hasUser(), initClient(), isSessionMainContext(), supportsPersistentSessions(), supportsPushMessages(), supportsRedirects(), usesHTTP(), and usesTemplate().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Call context method directly without internal handling.
| int | $a_type | 
Definition at line 60 of file class.ilContext.php.
References $a_type, and $class_name.
Referenced by ilAwarenessUserCollector\getOnlineUsers().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Try authentication.
Definition at line 162 of file class.ilContext.php.
References callContext().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Get context type.
Definition at line 182 of file class.ilContext.php.
References $type.
Referenced by ILIAS\FileDelivery\Delivery\__construct(), ilSession\_writeData(), ilInitialisation\blockedAuthentication(), ilInitialisation\buildHTTPPath(), ilAuthFrontend\handleAuthenticationSuccess(), ilSoapAdministration\initIlias(), ilLoggerFactory\isConsoleAvailable(), ilBackgroundTaskHub\isSOAPEnabled(), ilMail\isSOAPEnabled(), ilECSTaskScheduler\start(), and ilContextTest\testInit().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Has HTML output.
Definition at line 132 of file class.ilContext.php.
References callContext().
Referenced by ilForumAuthorInformation\getUserImagePath(), ilInitialisation\handleMaintenanceMode(), ilInitialisation\initILIAS(), ilInitialisation\redirect(), and ilBadgeHandler\sendNotification().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Based on user authentication?
Definition at line 112 of file class.ilContext.php.
References callContext().
Referenced by ilLTIViewGUI\__construct(), ilInitialisation\initHTML(), and ilInitialisation\initILIAS().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Init context by type.
| string | $a_type | 
Definition at line 45 of file class.ilContext.php.
References $a_type, and $type.
Referenced by ilSoapFunctions\__call(), ilCronStartUp\__construct(), callContext(), ilSoapAdministration\getClientInfoXML(), ilSoapAdministration\getInstallationInfoXML(), ilNusoapUserAdministrationAdapter\handleSoapPlugins(), ilCalendarRemoteAccessHandler\initIlias(), ilWebAccessChecker\initILIAS(), and ilContextTest\testInit().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Init client.
Definition at line 152 of file class.ilContext.php.
References callContext().
Referenced by ilInitialisation\initILIAS().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Context that are not only temporary in a session (e.g.
WAC is, Cron is not)
Definition at line 204 of file class.ilContext.php.
References callContext().
Referenced by ilSession\_writeData().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Check if context supports persistent session handling.
false for cli context
Definition at line 194 of file class.ilContext.php.
References callContext().
Referenced by ilInitialisation\determineClient(), and ilInitialisation\initILIAS().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Supports push messages.
Definition at line 172 of file class.ilContext.php.
References callContext().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Are redirects supported?
Definition at line 90 of file class.ilContext.php.
References $DIC, $ilCtrl, and callContext().
Referenced by ilUserRequestTargetAdjustment\adjust(), ilInitialisation\redirect(), and ilAuthFrontendCredentialsApache\tryAuthenticationOnLoginPage().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Uses HTTP aka browser.
Definition at line 122 of file class.ilContext.php.
References callContext().
Referenced by ilUtil\_getHttpPath(), ilLanguageDetectorFactory\getValidInstances(), ilInitialisation\initClient(), ilInitialisation\initSettings(), and ilInitialisation\redirect().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Uses template engine.
Definition at line 142 of file class.ilContext.php.
References callContext().
Referenced by ilInitialisation\requireCommonIncludes().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Definition at line 16 of file class.ilContext.php.
Referenced by directCall(), and ilContextExtended\getClassName().
| 
 | staticprotected | 
Definition at line 17 of file class.ilContext.php.
Referenced by getType().
| const ilContext::CONTEXT_APACHE_SSO = 'ilContextApacheSSO' | 
Definition at line 33 of file class.ilContext.php.
Referenced by ilInitialisation\blockedAuthentication(), and ilInitialisation\buildHTTPPath().
| const ilContext::CONTEXT_CRON = "ilContextCron" | 
Definition at line 20 of file class.ilContext.php.
Referenced by ilCronStartUp\__construct(), ilContextTest\contextProvider(), ilBackgroundTaskHub\isSOAPEnabled(), and ilMail\isSOAPEnabled().
| const ilContext::CONTEXT_ICAL = "ilContextIcal" | 
Definition at line 22 of file class.ilContext.php.
Referenced by ilContextTest\contextProvider(), and ilCalendarRemoteAccessHandler\initIlias().
| const ilContext::CONTEXT_LTI_PROVIDER = 'ilContextLTIProvider' | 
Definition at line 35 of file class.ilContext.php.
Referenced by ilInitialisation\blockedAuthentication(), and ilAuthFrontend\handleAuthenticationSuccess().
| const ilContext::CONTEXT_REST = "ilContextRest" | 
Definition at line 30 of file class.ilContext.php.
Referenced by ilContextTest\contextProvider().
| const ilContext::CONTEXT_RSS = "ilContextRss" | 
Definition at line 21 of file class.ilContext.php.
Referenced by ilContextTest\contextProvider().
| const ilContext::CONTEXT_RSS_AUTH = "ilContextRssAuth" | 
Definition at line 26 of file class.ilContext.php.
Referenced by ilContextTest\contextProvider().
| const ilContext::CONTEXT_SAML = 'ilContextSaml' | 
Definition at line 36 of file class.ilContext.php.
Referenced by ilInitialisation\blockedAuthentication(), and ilInitialisation\buildHTTPPath().
| const ilContext::CONTEXT_SCORM = "ilContextScorm" | 
Definition at line 31 of file class.ilContext.php.
Referenced by ilContextTest\contextProvider().
| const ilContext::CONTEXT_SESSION_REMINDER = "ilContextSessionReminder" | 
Definition at line 27 of file class.ilContext.php.
Referenced by ilContextTest\contextProvider().
| const ilContext::CONTEXT_SHIBBOLETH = 'ilContextShibboleth' | 
Definition at line 34 of file class.ilContext.php.
Referenced by ilInitialisation\blockedAuthentication().
| const ilContext::CONTEXT_SOAP = "ilContextSoap" | 
Definition at line 23 of file class.ilContext.php.
Referenced by ilSoapFunctions\__call(), ilContextTest\contextProvider(), ilNusoapUserAdministrationAdapter\handleSoapPlugins(), and ilSoapAdministration\initIlias().
| const ilContext::CONTEXT_SOAP_NO_AUTH = 'ilContextSoapNoAuth' | 
Definition at line 24 of file class.ilContext.php.
Referenced by ilSoapFunctions\__call(), and ilNusoapUserAdministrationAdapter\handleSoapPlugins().
| const ilContext::CONTEXT_SOAP_WITHOUT_CLIENT = "ilContextSoapWithoutClient" | 
Definition at line 28 of file class.ilContext.php.
Referenced by ilContextTest\contextProvider(), ilSoapAdministration\getClientInfoXML(), and ilSoapAdministration\getInstallationInfoXML().
| const ilContext::CONTEXT_UNITTEST = "ilContextUnitTest" | 
Definition at line 29 of file class.ilContext.php.
Referenced by ilContextTest\contextProvider().
| const ilContext::CONTEXT_WAC = "ilContextWAC" | 
Definition at line 32 of file class.ilContext.php.
Referenced by ilInitialisation\blockedAuthentication(), ilContextTest\contextProvider(), and ilWebAccessChecker\initILIAS().
| const ilContext::CONTEXT_WEB = "ilContextWeb" | 
Definition at line 19 of file class.ilContext.php.
Referenced by ilContextTest\contextProvider(), ilLoggerFactory\isConsoleAvailable(), and ilECSTaskScheduler\start().
| const ilContext::CONTEXT_WEBDAV = "ilContextWebdav" | 
Definition at line 25 of file class.ilContext.php.
Referenced by ilInitialisation\blockedAuthentication(), and ilContextTest\contextProvider().