Class ilUserAccountMaintenanceEnforcement.
More...
Class ilUserAccountMaintenanceEnforcement.
Definition at line 7 of file class.ilUserRequestTargetAdjustment.php.
◆ __construct()
ilUserRequestTargetAdjustment::__construct |
( |
ilObjUser |
$user, |
|
|
ilCtrl |
$ctrl |
|
) |
| |
◆ adjust()
ilUserRequestTargetAdjustment::adjust |
( |
| ) |
|
- Returns
- boolean
Definition at line 68 of file class.ilUserRequestTargetAdjustment.php.
References $_SERVER, $GLOBALS, array, defined, ilSession\get(), ilSession\set(), storeRequest(), ilContext\supportsRedirects(), and user().
71 $GLOBALS[
'DIC']->logger()->init()->debug(
'CERT SSO request. No adjustment.');
74 $GLOBALS[
'DIC']->logger()->init()->debug(
'Context does not support redirects. No adjustment.');
76 } elseif ($this->ctrl->isAsynch()) {
77 $GLOBALS[
'DIC']->logger()->init()->debug(
'Async request. No adjustment.');
79 } elseif (in_array(basename(
$_SERVER[
'PHP_SELF']),
array(
'logout.php'))) {
80 $GLOBALS[
'DIC']->logger()->init()->debug(
'Logout request. No adjustment.');
82 } elseif (!$this->
user->getId() || $this->
user->isAnonymous()) {
83 $GLOBALS[
'DIC']->logger()->init()->debug(
'Anyonymous request. No adjustment.');
86 $GLOBALS[
'DIC']->logger()->init()->debug(__CLASS__ .
' already passed in the current user session.');
90 foreach ($this->cases as $case) {
91 if ($case->isInFulfillment()) {
92 $GLOBALS[
'DIC']->logger()->init()->debug(
'Case is in fullfillment:' . get_class($case));
96 if ($case->shouldAdjustRequest()) {
97 $GLOBALS[
'DIC']->logger()->init()->debug(
'Case required adjustment:' . get_class($case));
98 if ($case->shouldStoreRequestTarget()) {
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static get($a_var)
Get a value.
static set($a_var, $a_val)
Set a value.
Create styles array
The data for the language used.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
static supportsRedirects()
Are redirects supported?
◆ initCases()
ilUserRequestTargetAdjustment::initCases |
( |
| ) |
|
|
protected |
Definition at line 39 of file class.ilUserRequestTargetAdjustment.php.
References array, and user().
Referenced by __construct().
41 require_once
'Services/TermsOfService/classes/class.ilTermsOfServiceRequestTargetAdjustmentCase.php';
42 require_once
'Services/User/classes/class.ilUserProfileIncompleteRequestTargetAdjustmentCase.php';
43 require_once
'Services/User/classes/class.ilUserPasswordResetRequestTargetAdjustmentCase.php';
Class ilUserProfileIncompleteRequestTargetAdjustmentCase.
Create styles array
The data for the language used.
Class ilUserProfileIncompleteAndPasswordResetRequestTargetAdjustmentCase.
Class ilTermsOfServiceRequestTargetAdjustmentCase.
◆ storeRequest()
ilUserRequestTargetAdjustment::storeRequest |
( |
| ) |
|
|
protected |
◆ $cases
ilUserRequestTargetAdjustment::$cases = array() |
|
protected |
◆ $ctrl
ilUserRequestTargetAdjustment::$ctrl |
|
protected |
◆ $user
ilUserRequestTargetAdjustment::$user |
|
protected |
The documentation for this class was generated from the following file: