ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
ILIAS\TermsOfService\Settings Class Reference
+ Inheritance diagram for ILIAS\TermsOfService\Settings:
+ Collaboration diagram for ILIAS\TermsOfService\Settings:

Public Member Functions

 __construct (private readonly SelectSetting $select)
 
 enabled ()
 
 validateOnLogin ()
 
 deleteUserOnWithdrawal ()
 
 adminEmail ()
 
 authMode ()
 
 lastResetDate ()
 

Private Member Functions

 boolean (Marshal $m)
 

Detailed Description

Definition at line 30 of file Settings.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\TermsOfService\Settings::__construct ( private readonly SelectSetting  $select)

Definition at line 32 of file Settings.php.

33  {
34  }

Member Function Documentation

◆ adminEmail()

ILIAS\TermsOfService\Settings::adminEmail ( )
Returns
Setting<string>

Implements ILIAS\LegalDocuments\ConsumerToolbox\Settings.

Definition at line 63 of file Settings.php.

References ILIAS\LegalDocuments\ConsumerToolbox\Marshal\string().

63  : Setting
64  {
65  return $this->select->typed('admin_email', fn(Marshal $m) => $m->string());
66  }
+ Here is the call graph for this function:

◆ authMode()

ILIAS\TermsOfService\Settings::authMode ( )
Returns
Setting<string>

Implements ILIAS\LegalDocuments\ConsumerToolbox\Settings.

Definition at line 71 of file Settings.php.

References ILIAS\LegalDocuments\ConsumerToolbox\Marshal\string().

71  : Setting
72  {
73  return $this->select->typed('auth_mode', fn(Marshal $m) => $m->string());
74  }
+ Here is the call graph for this function:

◆ boolean()

ILIAS\TermsOfService\Settings::boolean ( Marshal  $m)
private

Definition at line 84 of file Settings.php.

References ILIAS\LegalDocuments\ConsumerToolbox\Marshal\boolean().

84  : Convert
85  {
86  return $m->boolean();
87  }
+ Here is the call graph for this function:

◆ deleteUserOnWithdrawal()

ILIAS\TermsOfService\Settings::deleteUserOnWithdrawal ( )
Returns
Setting<bool>

Implements ILIAS\LegalDocuments\ConsumerToolbox\Settings.

Definition at line 55 of file Settings.php.

55  : Setting
56  {
57  return $this->select->typed('tos_withdrawal_usr_deletion', $this->boolean(...));
58  }

◆ enabled()

ILIAS\TermsOfService\Settings::enabled ( )
Returns
Setting<bool>

Implements ILIAS\LegalDocuments\ConsumerToolbox\Settings.

Definition at line 39 of file Settings.php.

39  : Setting
40  {
41  return $this->select->typed('tos_status', $this->boolean(...));
42  }

◆ lastResetDate()

ILIAS\TermsOfService\Settings::lastResetDate ( )
Returns
Setting<DateTimeImmutable>

Implements ILIAS\LegalDocuments\ConsumerToolbox\Settings.

Definition at line 79 of file Settings.php.

References ILIAS\LegalDocuments\ConsumerToolbox\Marshal\dateTime().

79  : Setting
80  {
81  return $this->select->typed('tos_last_reset', fn(Marshal $m) => $m->dateTime());
82  }
+ Here is the call graph for this function:

◆ validateOnLogin()

ILIAS\TermsOfService\Settings::validateOnLogin ( )
Returns
Setting<bool>

Implements ILIAS\LegalDocuments\ConsumerToolbox\Settings.

Definition at line 47 of file Settings.php.

47  : Setting
48  {
49  return $this->select->typed('tos_reevaluate_on_login', $this->boolean(...));
50  }

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