ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilUserRequestTargetAdjustment Class Reference

Class ilUserAccountMaintenanceEnforcement. More...

+ Collaboration diagram for ilUserRequestTargetAdjustment:

Public Member Functions

 __construct (ilObjUser $user, ilCtrl $ctrl)
 adjust ()

Protected Member Functions

 initCases ()

Protected Attributes

 $ctrl
 $user
 $cases = array()

Detailed Description

Class ilUserAccountMaintenanceEnforcement.

Definition at line 7 of file class.ilUserRequestTargetAdjustment.php.

Constructor & Destructor Documentation

ilUserRequestTargetAdjustment::__construct ( ilObjUser  $user,
ilCtrl  $ctrl 
)
Parameters
ilObjUser$user
ilCtrl$ctrl

Definition at line 28 of file class.ilUserRequestTargetAdjustment.php.

References $ctrl, $user, and initCases().

{
$this->user = $user;
$this->ctrl = $ctrl;
$this->initCases();
}

+ Here is the call graph for this function:

Member Function Documentation

ilUserRequestTargetAdjustment::adjust ( )
Returns
boolean

Definition at line 74 of file class.ilUserRequestTargetAdjustment.php.

References ilContext\supportsRedirects().

{
if(defined('IL_CERT_SSO'))
{
return false;
}
{
return false;
}
else if($this->ctrl->isAsynch())
{
return false;
}
else if(in_array(basename($_SERVER['PHP_SELF']), array('logout.php')))
{
return false;
}
else if(!$this->user->getId() || $this->user->isAnonymous())
{
return false;
}
foreach($this->cases as $case)
{
if($case->isInFulfillment())
{
return false;
}
if($case->shouldAdjustRequest())
{
if($case->shouldStoreRequestTarget())
{
$this->storeRequest();
}
$case->adjust();
return true;
}
}
return false;
}

+ Here is the call graph for this function:

ilUserRequestTargetAdjustment::initCases ( )
protected

Definition at line 39 of file class.ilUserRequestTargetAdjustment.php.

Referenced by __construct().

{
require_once 'Services/TermsOfService/classes/class.ilTermsOfServiceRequestTargetAdjustmentCase.php';
require_once 'Services/User/classes/class.ilUserProfileIncompleteRequestTargetAdjustmentCase.php';
require_once 'Services/User/classes/class.ilUserPasswordResetRequestTargetAdjustmentCase.php';
$this->cases = array(
new ilTermsOfServiceRequestTargetAdjustmentCase($this->user, $this->ctrl),
new ilUserPasswordResetRequestTargetAdjustmentCase($this->user, $this->ctrl)
);
}

+ Here is the caller graph for this function:

Field Documentation

ilUserRequestTargetAdjustment::$cases = array()
protected

Definition at line 22 of file class.ilUserRequestTargetAdjustment.php.

ilUserRequestTargetAdjustment::$ctrl
protected

Definition at line 12 of file class.ilUserRequestTargetAdjustment.php.

Referenced by __construct().

ilUserRequestTargetAdjustment::$user
protected

Definition at line 17 of file class.ilUserRequestTargetAdjustment.php.

Referenced by __construct().


The documentation for this class was generated from the following file: