ILIAS  release_8 Revision v8.24
ilTermsOfServiceWithdrawalStartUpStep Class Reference

Class ilTermsOfServiceWithdrawalStartUpStep. More...

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

Public Member Functions

 __construct (Container $dic)
 
 shouldStoreRequestTarget ()
 
 isInFulfillment ()
 
 shouldInterceptRequest ()
 
 execute ()
 
 shouldStoreRequestTarget ()
 
 shouldInterceptRequest ()
 
 isInFulfillment ()
 
 execute ()
 

Private Attributes

Container $dic
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilTermsOfServiceWithdrawalStartUpStep::__construct ( Container  $dic)

Member Function Documentation

◆ execute()

ilTermsOfServiceWithdrawalStartUpStep::execute ( )
Returns
void

Reimplemented from ILIAS\Init\StartupSequence\StartUpSequenceStep.

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 ( )
Returns
bool

Reimplemented from ILIAS\Init\StartupSequence\StartUpSequenceStep.

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

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 }

Referenced by shouldInterceptRequest().

+ Here is the caller graph for this function:

◆ shouldInterceptRequest()

ilTermsOfServiceWithdrawalStartUpStep::shouldInterceptRequest ( )
Returns
bool

Reimplemented from ILIAS\Init\StartupSequence\StartUpSequenceStep.

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

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 }

References isInFulfillment().

+ Here is the call graph for this function:

◆ shouldStoreRequestTarget()

ilTermsOfServiceWithdrawalStartUpStep::shouldStoreRequestTarget ( )
Returns
bool

Reimplemented from ILIAS\Init\StartupSequence\StartUpSequenceStep.

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: