ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilTermsOfServiceRequestTargetAdjustmentCase Class Reference

Class ilTermsOfServiceRequestTargetAdjustmentCase. More...

+ Inheritance diagram for ilTermsOfServiceRequestTargetAdjustmentCase:
+ Collaboration diagram for ilTermsOfServiceRequestTargetAdjustmentCase:

Public Member Functions

 shouldStoreRequestTarget ()
 
 isInFulfillment ()
 
 shouldAdjustRequest ()
 
 adjust ()
 
- Public Member Functions inherited from ilUserRequestTargetAdjustmentCase
 __construct (ilObjUser $user, ilCtrl $ctrl)
 
 shouldStoreRequestTarget ()
 
 shouldAdjustRequest ()
 
 isInFulfillment ()
 
 adjust ()
 

Additional Inherited Members

- Protected Attributes inherited from ilUserRequestTargetAdjustmentCase
 $ctrl
 
 $user
 

Detailed Description

Member Function Documentation

◆ adjust()

ilTermsOfServiceRequestTargetAdjustmentCase::adjust ( )
Returns
void

Definition at line 53 of file class.ilTermsOfServiceRequestTargetAdjustmentCase.php.

References ilUtil\redirect().

54  {
55  ilUtil::redirect('ilias.php?baseClass=ilStartUpGUI&cmdClass=ilStartupGUI&cmd=getAcceptance');
56  }
static redirect($a_script)
+ Here is the call graph for this function:

◆ isInFulfillment()

ilTermsOfServiceRequestTargetAdjustmentCase::isInFulfillment ( )
Returns
boolean

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

Referenced by shouldAdjustRequest().

23  {
24  return (
25  strtolower($this->ctrl->getCmdClass()) == 'ilstartupgui' &&
26  strtolower($this->ctrl->getCmd()) == 'getacceptance'
27  );
28  }
+ Here is the caller graph for this function:

◆ shouldAdjustRequest()

ilTermsOfServiceRequestTargetAdjustmentCase::shouldAdjustRequest ( )
Returns
boolean

Definition at line 33 of file class.ilTermsOfServiceRequestTargetAdjustmentCase.php.

References isInFulfillment(), and user().

34  {
35  if ($this->isInFulfillment()) {
36  return false;
37  }
38 
39  if (
40  $this->user->hasToAcceptTermsOfService() &&
41  $this->user->checkTimeLimit() &&
42  $this->user->hasToAcceptTermsOfServiceInSession()
43  ) {
44  return true;
45  }
46 
47  return false;
48  }
user()
Definition: user.php:4
+ Here is the call graph for this function:

◆ shouldStoreRequestTarget()

ilTermsOfServiceRequestTargetAdjustmentCase::shouldStoreRequestTarget ( )
Returns
boolean

Definition at line 14 of file class.ilTermsOfServiceRequestTargetAdjustmentCase.php.

15  {
16  return true;
17  }

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