ILIAS  release_7 Revision v7.30-3-g800a261c036
ilTermsOfServiceWithdrawalStartUpStep Class Reference

Class ilTermsOfServiceWithdrawalStartUpStep. More...

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

Public Member Functions

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

Private Attributes

 $dic
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilTermsOfServiceWithdrawalStartUpStep::__construct ( Container  $dic)

ilTermsOfServiceAcceptanceStartUpStep constructor.

Parameters
Container$dic

Definition at line 21 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 37 of file class.ilTermsOfServiceWithdrawalStartUpStep.php.

Referenced by shouldInterceptRequest().

37  : bool
38  {
39  return (
40  strtolower($this->dic->ctrl()->getCmdClass()) === 'ilpersonalprofilegui' && (
41  strtolower($this->dic->ctrl()->getCmd()) === 'showuseragreement' ||
42  strtolower($this->dic->ctrl()->getCmd()) === 'confirmwithdrawal' ||
43  strtolower($this->dic->ctrl()->getCmd()) === 'showconsentwithdrawalconfirmation' ||
44  strtolower($this->dic->ctrl()->getCmd()) === 'cancelwithdrawal' ||
45  strtolower($this->dic->ctrl()->getCmd()) === 'withdrawacceptance' ||
46  strtolower($this->dic->ctrl()->getCmd()) === 'rejectwithdrawal'
47  )
48  );
49  }
+ Here is the caller graph for this function:

◆ shouldInterceptRequest()

ilTermsOfServiceWithdrawalStartUpStep::shouldInterceptRequest ( )

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

References isInFulfillment().

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

◆ shouldStoreRequestTarget()

ilTermsOfServiceWithdrawalStartUpStep::shouldStoreRequestTarget ( )

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

29  : bool
30  {
31  return true;
32  }

Field Documentation

◆ $dic

ilTermsOfServiceWithdrawalStartUpStep::$dic
private

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

Referenced by __construct().


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