ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Service context (factory) class. More...
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().
|
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().
|
static |
|
static |
Get context type.
Definition at line 182 of file class.ilContext.php.
References $type.
Referenced by ILIAS\FileDelivery\Delivery\__construct(), ilSession\_writeData(), ilInitialisation\authenticate(), ilInitialisation\blockedAuthentication(), ilInitialisation\buildHTTPPath(), ilAuthFrontend\handleAuthenticationSuccess(), ilSoapAdministration\initIlias(), ilLoggerFactory\isConsoleAvailable(), ilBackgroundTaskHub\isSOAPEnabled(), ilMail\isSOAPEnabled(), ilECSTaskScheduler\start(), and ilContextTest\testInit().
|
static |
Has HTML output.
Definition at line 132 of file class.ilContext.php.
Referenced by ilForumAuthorInformation\getUserImagePath(), ilInitialisation\handleMaintenanceMode(), ilInitialisation\initILIAS(), ilInitialisation\redirect(), and ilBadgeHandler\sendNotification().
|
static |
Based on user authentication?
Definition at line 112 of file class.ilContext.php.
Referenced by ilLTIViewGUI\__construct(), ilInitialisation\initHTML(), and ilInitialisation\initILIAS().
|
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(), ilWebAccessChecker\addAppliedCheckingMethod(), ilSoapAdministration\getClientInfoXML(), ilSoapAdministration\getInstallationInfoXML(), ilNusoapUserAdministrationAdapter\handleSoapPlugins(), ilCalendarRemoteAccessHandler\initIlias(), ilWebAccessChecker\initILIAS(), and ilContextTest\testInit().
|
static |
Init client.
Definition at line 152 of file class.ilContext.php.
Referenced by ilInitialisation\initILIAS().
|
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.
Referenced by ilSession\_writeData().
|
static |
Check if context supports persistent session handling.
false for cli context
Definition at line 194 of file class.ilContext.php.
Referenced by ilInitialisation\determineClient(), and ilInitialisation\initILIAS().
|
static |
|
static |
Are redirects supported?
Definition at line 90 of file class.ilContext.php.
Referenced by ilUserRequestTargetAdjustment\adjust(), ilInitialisation\redirect(), and ilAuthFrontendCredentialsApache\tryAuthenticationOnLoginPage().
|
static |
Uses HTTP aka browser.
Definition at line 122 of file class.ilContext.php.
Referenced by ilUtil\_getHttpPath(), ilLanguageDetectorFactory\getValidInstances(), ilInitialisation\initClient(), ilInitialisation\initSettings(), and ilInitialisation\redirect().
|
static |
Uses template engine.
Definition at line 142 of file class.ilContext.php.
Referenced by ilInitialisation\requireCommonIncludes().
|
staticprotected |
Definition at line 16 of file class.ilContext.php.
Referenced by directCall().
|
staticprotected |
Definition at line 17 of file class.ilContext.php.
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(), ilInitialisation\authenticate(), 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 ilWebAccessChecker\addAppliedCheckingMethod(), ilInitialisation\authenticate(), 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().