ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
Settings.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\TermsOfService
;
22
23
use
ILIAS\LegalDocuments\ConsumerToolbox\Settings
as
SettingsInterface
;
24
use
ILIAS\LegalDocuments\ConsumerToolbox\Setting
;
25
use
ILIAS\LegalDocuments\ConsumerToolbox\Marshal
;
26
use
ILIAS\LegalDocuments\ConsumerToolbox\SelectSetting
;
27
use
ILIAS\LegalDocuments\ConsumerToolbox\Convert
;
28
use
DateTimeImmutable
;
29
30
class
Settings
implements
SettingsInterface
31
{
32
public
function
__construct
(
private
readonly
SelectSetting
$select)
33
{
34
}
35
39
public
function
enabled
():
Setting
40
{
41
return
$this->select->typed(
'tos_status'
, $this->
boolean
(...));
42
}
43
47
public
function
validateOnLogin
():
Setting
48
{
49
return
$this->select->typed(
'tos_reevaluate_on_login'
, $this->
boolean
(...));
50
}
51
55
public
function
deleteUserOnWithdrawal
():
Setting
56
{
57
return
$this->select->typed(
'tos_withdrawal_usr_deletion'
, $this->
boolean
(...));
58
}
59
63
public
function
adminEmail
():
Setting
64
{
65
return
$this->select->typed(
'admin_email'
, fn(
Marshal
$m) => $m->
string
());
66
}
67
71
public
function
authMode
():
Setting
72
{
73
return
$this->select->typed(
'auth_mode'
, fn(
Marshal
$m) => $m->
string
());
74
}
75
79
public
function
lastResetDate
():
Setting
80
{
81
return
$this->select->typed(
'tos_last_reset'
, fn(
Marshal
$m) => $m->
dateTime
());
82
}
83
84
private
function
boolean
(
Marshal
$m):
Convert
85
{
86
return
$m->
boolean
();
87
}
88
}
ILIAS\TermsOfService
Definition:
Consumer.php:21
DateTimeImmutable
ILIAS\TermsOfService\Settings\boolean
boolean(Marshal $m)
Definition:
Settings.php:84
ILIAS\TermsOfService\Settings\lastResetDate
lastResetDate()
Definition:
Settings.php:79
Settings
ILIAS\TermsOfService\Settings\enabled
enabled()
Definition:
Settings.php:39
Convert
Marshal
ILIAS\LegalDocuments\ConsumerToolbox\Marshal\boolean
boolean()
Definition:
Marshal.php:47
ILIAS\LegalDocuments\ConsumerToolbox\Marshal\string
string()
Definition:
Marshal.php:75
Setting
ILIAS\LegalDocuments\ConsumerToolbox\Marshal
Definition:
Marshal.php:29
ILIAS\TermsOfService\Settings\deleteUserOnWithdrawal
deleteUserOnWithdrawal()
Definition:
Settings.php:55
SelectSetting
ILIAS\TermsOfService\Settings\authMode
authMode()
Definition:
Settings.php:71
ILIAS\TermsOfService\Settings\validateOnLogin
validateOnLogin()
Definition:
Settings.php:47
ILIAS\LegalDocuments\ConsumerToolbox\Setting
A
Definition:
Setting.php:28
ILIAS\LegalDocuments\ConsumerToolbox\Marshal\dateTime
dateTime()
Definition:
Marshal.php:35
SettingsInterface
ILIAS\LegalDocuments\ConsumerToolbox\SelectSetting
Definition:
SelectSetting.php:25
ILIAS\LegalDocuments\ConsumerToolbox\Convert
Definition:
Convert.php:25
ILIAS\TermsOfService\Settings\adminEmail
adminEmail()
Definition:
Settings.php:63
ILIAS\TermsOfService\Settings\__construct
__construct(private readonly SelectSetting $select)
Definition:
Settings.php:32
components
ILIAS
TermsOfService
classes
Settings.php
Generated on Sun Apr 6 2025 23:02:44 for ILIAS by
1.8.13 (using
Doxyfile
)