|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
StartUp GUI class. More...
Collaboration diagram for ilStartUpGUI:Public Member Functions | |
| __construct (\ilObjUser $user=null, \ilTermsOfServiceDocumentEvaluation $termsOfServiceEvaluation=null, \ilGlobalTemplate $mainTemplate=null, ServerRequestInterface $httpRequest=null) | |
| ilStartUpGUI constructor. More... | |
| executeCommand () | |
| execute command More... | |
| getLogger () | |
| Get logger. More... | |
| jumpToRegistration () | |
| jump to registration gui More... | |
| jumpToPasswordAssistance () | |
| jump to password assistance More... | |
| showAccountMigration (string $message='') | |
| Show account migration screen. More... | |
| doLogout () | |
| show logout screen More... | |
| showNoCookiesScreen () | |
| show help screen, if cookies are disabled More... | |
Static Public Member Functions | |
| static | printToGlobalTemplate ($tpl) |
| static | _checkGoto ($a_target) |
Data Fields | |
| const | ACCOUNT_MIGRATION_MIGRATE = 1 |
| const | ACCOUNT_MIGRATION_NEW = 2 |
Protected Member Functions | |
| showLoginPage (ilPropertyFormGUI $form=null) | |
| retrieveMessagesFromSession () | |
| showCodeForm ($a_username=null, $a_form=null) | |
| initCodeForm ($a_username) | |
| processCode () | |
| initStandardLoginForm () | |
| Initialize the standard. More... | |
| doShibbolethAuthentication () | |
| Trying shibboleth authentication. More... | |
| doCasAuthentication () | |
| Try CAS auth. More... | |
| doLTIAuthentication () | |
| Handle lti requests. More... | |
| doApacheAuthentication () | |
| Try apache auth. More... | |
| doStandardAuthentication () | |
| Check form input; authenticate user. More... | |
| showLoginForm ($page_editor_html, ilPropertyFormGUI $form=null) | |
| Show login form @global ilSetting $ilSetting. More... | |
| showLoginInformation ($page_editor_html, $tpl) | |
| Show login information. More... | |
| showCASLoginForm ($page_editor_html) | |
| Show cas login @global ilSetting $ilSetting. More... | |
| showShibbolethLoginForm ($page_editor_html) | |
| Show shibboleth login form. More... | |
| substituteLoginPageElements ($tpl, $page_editor_html, $element_html, $placeholder, $fallback_tplvar) | |
| Substitute login page elements. More... | |
| getLoginPageEditorHTML () | |
| Get HTML of ILIAS login page editor. More... | |
| showRegistrationLinks ($page_editor_html) | |
| Show registration, password forgotten, client slection links @global ilLanguage $lng @global ilSetting $ilSetting @global <type> $ilIliasIniFile. More... | |
| showTermsOfServiceLink (string $page_editor_html) | |
| Show terms of service link. More... | |
| purgePlaceholders ($page_editor_html) | |
| Purge page editor html from unused placeholders. More... | |
| migrateAccount () | |
| Migrate Account. More... | |
| doMigrationNewAccount () | |
| doMigration () | |
| showLogout () | |
| Show logout screen. More... | |
| getAcceptance () | |
| Get terms of service. More... | |
| confirmAcceptance () | |
| confirmWithdrawal () | |
| showTermsOfService (bool $accepted=false) | |
| Show terms of service. More... | |
| processIndexPHP () | |
| process index.php More... | |
| showSamlLoginForm ($page_editor_html) | |
| showOpenIdConnectLoginForm ($page_editor_html) | |
| doOpenIdConnectAuthentication () | |
| do open id connect authentication More... | |
| doSamlAuthentication () | |
| showSamlIdpSelection (\ilSamlAuth $auth, array $idps) | |
Protected Attributes | |
| $ctrl | |
| $lng | |
| $logger | |
| $mainTemplate | |
| $user | |
| $termsOfServiceEvaluation | |
| $httpRequest | |
| $dic | |
Private Attributes | |
| $help | |
StartUp GUI class.
Handles Login and Registration.
Definition at line 16 of file class.ilStartUpGUI.php.
| ilStartUpGUI::__construct | ( | \ilObjUser | $user = null, |
| \ilTermsOfServiceDocumentEvaluation | $termsOfServiceEvaluation = null, |
||
| \ilGlobalTemplate | $mainTemplate = null, |
||
| ServerRequestInterface | $httpRequest = null |
||
| ) |
ilStartUpGUI constructor.
| \ilObjUser | null | $user | |
ilTermsOfServiceDocumentEvaluation|null
| \ilGlobalTemplate | null | $mainTemplate | |
| ServerRequestInterface | null | $httpRequest |
Definition at line 57 of file class.ilStartUpGUI.php.
References $DIC, $httpRequest, $mainTemplate, $termsOfServiceEvaluation, $user, ilLoggerFactory\getLogger(), help(), and user().
Here is the call graph for this function:
|
static |
Definition at line 1581 of file class.ilStartUpGUI.php.
References $_SESSION, $DIC, $ilUser, $location, XapiProxy\$resp, $ret, $type, ilObject\_getAllReferences(), ilObjCourse\_isActivated(), ilGroupParticipants\_isParticipant(), ilLMObject\_lookupContObjID(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilObjCourse\_registrationEnabled(), ANONYMOUS_USER_ID, ilParticipants\getDefaultMemberRole(), ilPluginAdmin\getPluginObject(), IL_COMP_SERVICE, and ilUtil\redirect().
Here is the call graph for this function:
|
protected |
Definition at line 1436 of file class.ilStartUpGUI.php.
References showTermsOfService().
Here is the call graph for this function:
|
protected |
Definition at line 1441 of file class.ilStartUpGUI.php.
References $tpl, ANONYMOUS_USER_ID, ilUtil\formCheckbox(), ilSystemSupportContacts\getMailsToAddress(), ilUtil\prepareFormOutput(), printToGlobalTemplate(), and user().
Here is the call graph for this function:
|
protected |
Try apache auth.
Definition at line 653 of file class.ilStartUpGUI.php.
References $GLOBALS, ilUtil\appendUrlParameterString(), AUTH_APACHE, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), getLogger(), ilUtil\sendFailure(), and showLoginPage().
Here is the call graph for this function:
|
protected |
Try CAS auth.
Definition at line 562 of file class.ilStartUpGUI.php.
References $DIC, $GLOBALS, AUTH_CAS, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), getLogger(), ilUtil\sendFailure(), showLoginPage(), ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
Here is the call graph for this function:| ilStartUpGUI::doLogout | ( | ) |
show logout screen
Definition at line 1347 of file class.ilStartUpGUI.php.
References $DIC, $GLOBALS, $ilIliasIniFile, $ilSetting, $lng, $user, AUTH_SAML, CLIENT_ID, ilSession\get(), ilSession\SESSION_CLOSE_USER, ilSession\setClosingContext(), ilUtil\setCookie(), and user().
Here is the call graph for this function:
|
protected |
Handle lti requests.
Definition at line 606 of file class.ilStartUpGUI.php.
References $GLOBALS, AUTH_PROVIDER_LTI, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), getLogger(), ilUtil\sendFailure(), showLoginPage(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
Here is the call graph for this function:
|
protected |
Definition at line 1250 of file class.ilStartUpGUI.php.
References $_POST, $GLOBALS, AUTH_LOCAL, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilSession\get(), ilAuthStatus\getInstance(), getLogger(), ilAuthFrontend\MIG_TRIGGER_AUTHMODE, ilUtil\sendFailure(), showAccountMigration(), and ilAuthStatus\STATUS_AUTHENTICATED.
Referenced by migrateAccount().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1216 of file class.ilStartUpGUI.php.
References $GLOBALS, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilSession\get(), ilAuthStatus\getInstance(), ilAuthFrontend\MIG_EXTERNAL_ACCOUNT, ilAuthFrontend\MIG_TRIGGER_AUTHMODE, and ilUtil\sendFailure().
Referenced by migrateAccount().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
do open id connect authentication
Definition at line 1979 of file class.ilStartUpGUI.php.
References $DIC, $GLOBALS, AUTH_OPENID_CONNECT, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), getLogger(), ilUtil\sendFailure(), showLoginPage(), ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
Here is the call graph for this function:
|
protected |
Definition at line 2026 of file class.ilStartUpGUI.php.
References $_GET, $_POST, $auth, $DIC, $factory, $GLOBALS, AUTH_SAML, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilSamlIdp\geIdpIdByEntityId(), ilSamlIdp\getActiveIdpList(), ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), getLogger(), ilUtil\sendFailure(), showLoginPage(), showSamlIdpSelection(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, ilAuthStatus\STATUS_AUTHENTICATION_FAILED, and ilUtil\stripSlashes().
Here is the call graph for this function:
|
protected |
Trying shibboleth authentication.
Definition at line 511 of file class.ilStartUpGUI.php.
References $GLOBALS, AUTH_SHIBBOLETH, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), getLogger(), ilUtil\sendFailure(), showLoginPage(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
Here is the call graph for this function:
|
protected |
Check form input; authenticate user.
Definition at line 713 of file class.ilStartUpGUI.php.
References $GLOBALS, ilAuthModeDetermination\_getInstance(), ilAuthUtils\_hasMultipleAuthenticationMethods(), ilObjUser\_lookupLogin(), ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), getLogger(), initCodeForm(), initStandardLoginForm(), ilUtil\sendFailure(), showLoginPage(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, ilAuthStatus\STATUS_AUTHENTICATION_FAILED, and ilAuthStatus\STATUS_CODE_ACTIVATION_REQUIRED.
Here is the call graph for this function:| ilStartUpGUI::executeCommand | ( | ) |
execute command
Definition at line 103 of file class.ilStartUpGUI.php.
Referenced by jumpToPasswordAssistance(), and jumpToRegistration().
Here is the caller graph for this function:
|
protected |
Get terms of service.
Definition at line 1431 of file class.ilStartUpGUI.php.
References showTermsOfService().
Here is the call graph for this function:| ilStartUpGUI::getLogger | ( | ) |
Get logger.
Definition at line 131 of file class.ilStartUpGUI.php.
References $logger.
Referenced by doApacheAuthentication(), doCasAuthentication(), doLTIAuthentication(), doMigration(), doOpenIdConnectAuthentication(), doSamlAuthentication(), doShibbolethAuthentication(), doStandardAuthentication(), and showLoginPage().
Here is the caller graph for this function:
|
protected |
Get HTML of ILIAS login page editor.
Definition at line 966 of file class.ilStartUpGUI.php.
References $lng, $ret, $tpl, ilPageUtil\_existsAndNotEmpty(), ilAuthLoginPageEditorSettings\getInstance(), and ilLanguage\lookupId().
Referenced by showLoginPage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 327 of file class.ilStartUpGUI.php.
References $lng.
Referenced by doStandardAuthentication(), processCode(), and showCodeForm().
Here is the caller graph for this function:
|
protected |
Initialize the standard.
Definition at line 443 of file class.ilStartUpGUI.php.
References ilAuthModeDetermination\_getInstance(), ilAuthUtils\_getMultipleAuthModeOptions(), and ilAuthUtils\_hasMultipleAuthenticationMethods().
Referenced by doStandardAuthentication(), and showLoginForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilStartUpGUI::jumpToPasswordAssistance | ( | ) |
jump to password assistance
Definition at line 151 of file class.ilStartUpGUI.php.
References executeCommand().
Here is the call graph for this function:| ilStartUpGUI::jumpToRegistration | ( | ) |
jump to registration gui
Definition at line 140 of file class.ilStartUpGUI.php.
References executeCommand().
Here is the call graph for this function:
|
protected |
Migrate Account.
Definition at line 1181 of file class.ilStartUpGUI.php.
References doMigration(), doMigrationNewAccount(), and showAccountMigration().
Here is the call graph for this function:
|
static |
Definition at line 283 of file class.ilStartUpGUI.php.
Referenced by confirmWithdrawal(), ilAccountRegistrationGUI\executeCommand(), showAccountMigration(), ilPasswordAssistanceGUI\showAssignPasswordForm(), ilPasswordAssistanceGUI\showAssistanceForm(), showLoginPage(), showLogout(), ilPasswordAssistanceGUI\showMessageForm(), showTermsOfService(), and ilPasswordAssistanceGUI\showUsernameAssistanceForm().
Here is the caller graph for this function:
|
protected |
Definition at line 361 of file class.ilStartUpGUI.php.
References $_POST, $GLOBALS, $lng, $user, ilObjUser\_lookupId(), ilAccountCode\applyAccessLimits(), ilAccountCode\applyRoleAssignments(), ilAccountCode\getCodeValidUntil(), initCodeForm(), ilAccountCode\isUnusedCode(), language(), showCodeForm(), showLoginPage(), and ilAccountCode\useCode().
Here is the call graph for this function:
|
protected |
process index.php
Definition at line 1558 of file class.ilStartUpGUI.php.
References $_SERVER, $GLOBALS, $ilIliasIniFile, $ilSetting, ilPublicSectionSettings\getInstance(), ilInitialisation\goToPublicSection(), showLoginPage(), and user().
Here is the call graph for this function:
|
protected |
Purge page editor html from unused placeholders.
| string | $page_editor_html |
Definition at line 1097 of file class.ilStartUpGUI.php.
Referenced by showLoginPage().
Here is the caller graph for this function:
|
protected |
Definition at line 291 of file class.ilStartUpGUI.php.
References $messages, ilSession\get(), ilGlobalTemplate\MESSAGE_TYPE_FAILURE, ilGlobalTemplate\MESSAGE_TYPE_INFO, ilGlobalTemplate\MESSAGE_TYPE_QUESTION, and ilGlobalTemplate\MESSAGE_TYPE_SUCCESS.
Here is the call graph for this function:| ilStartUpGUI::showAccountMigration | ( | string | $message = '' | ) |
Show account migration screen.
| string | $message |
Definition at line 1118 of file class.ilStartUpGUI.php.
References $message, $pass, $tpl, $user, help(), ilUtil\prepareFormOutput(), printToGlobalTemplate(), and ilUtil\sendFailure().
Referenced by doMigration(), and migrateAccount().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Show cas login @global ilSetting $ilSetting.
| string | $page_editor_html |
Definition at line 839 of file class.ilStartUpGUI.php.
References $GLOBALS, $ilSetting, $lng, $tpl, ilUtil\getImagePath(), and substituteLoginPageElements().
Referenced by showLoginPage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 309 of file class.ilStartUpGUI.php.
References $lng, $tpl, help(), initCodeForm(), and ilUtil\sendFailure().
Referenced by processCode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Show login form @global ilSetting $ilSetting.
| string | $page_editor_html |
Definition at line 784 of file class.ilStartUpGUI.php.
References $ilSetting, $lng, $tpl, AUTH_CAS, AUTH_SHIBBOLETH, initStandardLoginForm(), and substituteLoginPageElements().
Referenced by showLoginPage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Show login information.
| string | $page_editor_html |
Definition at line 815 of file class.ilStartUpGUI.php.
Referenced by showLoginPage().
Here is the caller graph for this function:
|
protected |
| \ilPropertyFormGUI | null | $form |
Definition at line 221 of file class.ilStartUpGUI.php.
References $GLOBALS, $ilSetting, $tpl, ilObjStyleSheet\getContentStylePath(), getLogger(), getLoginPageEditorHTML(), ilObjStyleSheet\getSyntaxStylePath(), help(), ILIAS\FileDelivery\http(), printToGlobalTemplate(), purgePlaceholders(), ilUtil\sendFailure(), showCASLoginForm(), showLoginForm(), showLoginInformation(), showOpenIdConnectLoginForm(), showRegistrationLinks(), showSamlLoginForm(), showShibbolethLoginForm(), showTermsOfServiceLink(), ilUtil\stripSlashes(), and user().
Referenced by doApacheAuthentication(), doCasAuthentication(), doLTIAuthentication(), doOpenIdConnectAuthentication(), doSamlAuthentication(), doShibbolethAuthentication(), doStandardAuthentication(), processCode(), and processIndexPHP().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Show logout screen.
Definition at line 1309 of file class.ilStartUpGUI.php.
References $_GET, $_SERVER, $client_id, $DIC, $ilIliasIniFile, $lng, $tpl, ilPublicSectionSettings\getInstance(), help(), printToGlobalTemplate(), and user().
Here is the call graph for this function:| ilStartUpGUI::showNoCookiesScreen | ( | ) |
show help screen, if cookies are disabled
to do: link to online help here
Definition at line 1402 of file class.ilStartUpGUI.php.
References $tpl.
|
protected |
| $page_editor_html |
Definition at line 1936 of file class.ilStartUpGUI.php.
References $_GET, $DIC, $GLOBALS, $lang, $tpl, ilOpenIdConnectSettings\getInstance(), ilOpenIdConnectSettings\LOGIN_ELEMENT_TYPE_IMG, ilOpenIdConnectSettings\LOGIN_ELEMENT_TYPE_TXT, and substituteLoginPageElements().
Referenced by showLoginPage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Show registration, password forgotten, client slection links @global ilLanguage $lng @global ilSetting $ilSetting @global <type> $ilIliasIniFile.
| string | $page_editor_html |
Definition at line 1006 of file class.ilStartUpGUI.php.
References $_SERVER, $GLOBALS, $ilIliasIniFile, $ilSetting, $lng, ilRegistrationSettings\_lookupRegistrationType(), ANONYMOUS_USER_ID, CLIENT_ID, ilPublicSectionSettings\getInstance(), IL_REG_DISABLED, ROOT_FOLDER_ID, and substituteLoginPageElements().
Referenced by showLoginPage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| \ilSamlAuth | $auth | |
| \ilSamlIdp[] | $idps |
Definition at line 2172 of file class.ilStartUpGUI.php.
References $DIC, $factory, and help().
Referenced by doSamlAuthentication().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| string | $page_editor_html |
Definition at line 1901 of file class.ilStartUpGUI.php.
References $_GET, $GLOBALS, $tpl, ilSamlIdp\getActiveIdpList(), ilSamlSettings\getInstance(), language(), ilUtil\stripSlashes(), and substituteLoginPageElements().
Referenced by showLoginPage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Show shibboleth login form.
| string | $page_editor_html |
Definition at line 870 of file class.ilStartUpGUI.php.
References $_GET, $GLOBALS, $ilSetting, $lng, $tpl, and substituteLoginPageElements().
Referenced by showLoginPage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Show terms of service.
| bool | $accepted |
| ilTermsOfServiceMissingDatabaseAdapterException | |
| ilTermsOfServiceNoSignableDocumentFoundException | |
| ilTermsOfServiceUnexpectedCriteriaBagContentException |
Definition at line 1490 of file class.ilStartUpGUI.php.
References $_GET, $tpl, ANONYMOUS_USER_ID, CLIENT_ID, ilSession\get(), ilSystemSupportContacts\getMailsToAddress(), help(), ilUtil\prepareFormOutput(), printToGlobalTemplate(), ilUtil\redirect(), ilSession\set(), and user().
Referenced by confirmAcceptance(), and getAcceptance().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Show terms of service link.
| string | $page_editor_html |
Definition at line 1062 of file class.ilStartUpGUI.php.
References $GLOBALS, ANONYMOUS_USER_ID, substituteLoginPageElements(), and user().
Referenced by showLoginPage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Substitute login page elements.
| ilTemplate | $tpl | |
| string | $page_editor_html | |
| string | $element_html | |
| string | $placeholder | |
| string | $fallback_tplvar | return string $page_editor_html |
Definition at line 948 of file class.ilStartUpGUI.php.
References $tpl.
Referenced by showCASLoginForm(), showLoginForm(), showOpenIdConnectLoginForm(), showRegistrationLinks(), showSamlLoginForm(), showShibbolethLoginForm(), and showTermsOfServiceLink().
Here is the caller graph for this function:
|
protected |
Definition at line 22 of file class.ilStartUpGUI.php.
|
protected |
Definition at line 43 of file class.ilStartUpGUI.php.
|
private |
Definition at line 48 of file class.ilStartUpGUI.php.
|
protected |
Definition at line 40 of file class.ilStartUpGUI.php.
Referenced by __construct().
|
protected |
Definition at line 23 of file class.ilStartUpGUI.php.
Referenced by doLogout(), getLoginPageEditorHTML(), initCodeForm(), processCode(), showCASLoginForm(), showCodeForm(), showLoginForm(), showLoginInformation(), showLogout(), showRegistrationLinks(), and showShibbolethLoginForm().
|
protected |
Definition at line 28 of file class.ilStartUpGUI.php.
Referenced by getLogger().
|
protected |
Definition at line 31 of file class.ilStartUpGUI.php.
Referenced by __construct().
|
protected |
Definition at line 37 of file class.ilStartUpGUI.php.
Referenced by __construct().
|
protected |
Definition at line 34 of file class.ilStartUpGUI.php.
Referenced by __construct(), doLogout(), processCode(), and showAccountMigration().
| const ilStartUpGUI::ACCOUNT_MIGRATION_MIGRATE = 1 |
Definition at line 18 of file class.ilStartUpGUI.php.
| const ilStartUpGUI::ACCOUNT_MIGRATION_NEW = 2 |
Definition at line 19 of file class.ilStartUpGUI.php.