ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTermsOfServiceWithdrawalStartUpStep Class Reference

Class ilTermsOfServiceWithdrawalStartUpStep. More...

+ Inheritance diagram for ilTermsOfServiceWithdrawalStartUpStep:
+ Collaboration diagram for ilTermsOfServiceWithdrawalStartUpStep:

Public Member Functions

 __construct (Container $dic)
 
 shouldStoreRequestTarget ()
 
 isInFulfillment ()
 
 shouldInterceptRequest ()
 
 execute ()
 
- Public Member Functions inherited from ILIAS\Init\StartupSequence\StartUpSequenceStep
 shouldStoreRequestTarget ()
 
 shouldInterceptRequest ()
 
 isInFulfillment ()
 
 execute ()
 

Private Attributes

Container $dic
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilTermsOfServiceWithdrawalStartUpStep::__construct ( Container  $dic)

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

References $dic.

Member Function Documentation

◆ execute()

ilTermsOfServiceWithdrawalStartUpStep::execute ( )

Definition at line 70 of file class.ilTermsOfServiceWithdrawalStartUpStep.php.

70  : void
71  {
72  $this->dic->ctrl()->redirectByClass(
73  [ilDashboardGUI::class, ilPersonalProfileGUI::class],
74  'showConsentWithdrawalConfirmation'
75  );
76  }

◆ isInFulfillment()

ilTermsOfServiceWithdrawalStartUpStep::isInFulfillment ( )

Definition at line 43 of file class.ilTermsOfServiceWithdrawalStartUpStep.php.

Referenced by shouldInterceptRequest().

43  : bool
44  {
45  return (
46  strtolower($this->dic->ctrl()->getCmdClass()) === strtolower(ilPersonalProfileGUI::class) && (
47  strtolower($this->dic->ctrl()->getCmd()) === 'showuseragreement' ||
48  strtolower($this->dic->ctrl()->getCmd()) === 'confirmwithdrawal' ||
49  strtolower($this->dic->ctrl()->getCmd()) === 'showconsentwithdrawalconfirmation' ||
50  strtolower($this->dic->ctrl()->getCmd()) === 'cancelwithdrawal' ||
51  strtolower($this->dic->ctrl()->getCmd()) === 'withdrawacceptance' ||
52  strtolower($this->dic->ctrl()->getCmd()) === 'rejectwithdrawal'
53  )
54  );
55  }
+ Here is the caller graph for this function:

◆ shouldInterceptRequest()

ilTermsOfServiceWithdrawalStartUpStep::shouldInterceptRequest ( )

Definition at line 57 of file class.ilTermsOfServiceWithdrawalStartUpStep.php.

References isInFulfillment().

57  : bool
58  {
59  if ($this->isInFulfillment()) {
60  return false;
61  }
62 
63  if ($this->dic->user()->getPref('consent_withdrawal_requested')) {
64  return true;
65  }
66 
67  return false;
68  }
+ Here is the call graph for this function:

◆ shouldStoreRequestTarget()

ilTermsOfServiceWithdrawalStartUpStep::shouldStoreRequestTarget ( )

Definition at line 38 of file class.ilTermsOfServiceWithdrawalStartUpStep.php.

38  : bool
39  {
40  return true;
41  }

Field Documentation

◆ $dic

Container ilTermsOfServiceWithdrawalStartUpStep::$dic
private

Definition at line 31 of file class.ilTermsOfServiceWithdrawalStartUpStep.php.

Referenced by __construct().


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