ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 55 of file class.ilTermsOfServiceRequestTargetAdjustmentCase.php.

References ilUtil\redirect().

56  {
57  ilUtil::redirect('ilias.php?baseClass=ilStartUpGUI&cmdClass=ilStartupGUI&cmd=getAcceptance');
58  }
static redirect($a_script)
http redirect to other 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  {
37  return false;
38  }
39 
40  if(
41  $this->user->hasToAcceptTermsOfService() &&
42  $this->user->checkTimeLimit() &&
43  $this->user->hasToAcceptTermsOfServiceInSession()
44  )
45  {
46  return true;
47  }
48 
49  return false;
50  }
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: