ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 ( )

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

53  {
54  $this->ctrl->redirectToURL('ilias.php?baseClass=ilStartUpGUI&cmdClass=ilStartupGUI&cmd=getAcceptance');
55  }

◆ isInFulfillment()

ilTermsOfServiceRequestTargetAdjustmentCase::isInFulfillment ( )

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

Referenced by shouldAdjustRequest().

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

◆ shouldAdjustRequest()

ilTermsOfServiceRequestTargetAdjustmentCase::shouldAdjustRequest ( )

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

References isInFulfillment(), and user().

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

◆ shouldStoreRequestTarget()

ilTermsOfServiceRequestTargetAdjustmentCase::shouldStoreRequestTarget ( )

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

14  {
15  return true;
16  }

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