ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
UserSettings.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\DataProtection
;
22
23
use
DateTimeImmutable
;
24
use
ILIAS\LegalDocuments\ConsumerToolbox\UserSettings
as
UserSettingsInterface
;
25
use
ILIAS\LegalDocuments\ConsumerToolbox\SelectSetting
;
26
use
ILIAS\LegalDocuments\ConsumerToolbox\Setting
;
27
use
ILIAS\LegalDocuments\ConsumerToolbox\Marshal
;
28
29
class
UserSettings
implements
UserSettingsInterface
30
{
31
public
function
__construct
(
private
readonly
SelectSetting
$user_pref)
32
{
33
}
34
38
public
function
withdrawalRequested
():
Setting
39
{
40
return
$this->user_pref->typed(
'dpro_withdrawal_requested'
, fn(
Marshal
$m) => $m->
boolean
());
41
}
42
46
public
function
agreeDate
():
Setting
47
{
48
return
$this->user_pref->typed(
'dpro_agree_date'
, fn(
Marshal
$m) => $m->
nullable
($m->
dateTime
()));
49
}
50
}
ILIAS\DataProtection
Definition:
Consumer.php:21
DateTimeImmutable
ILIAS\DataProtection\UserSettings\withdrawalRequested
withdrawalRequested()
Definition:
UserSettings.php:38
ILIAS\DataProtection\UserSettings\__construct
__construct(private readonly SelectSetting $user_pref)
Definition:
UserSettings.php:31
Marshal
ILIAS\LegalDocuments\ConsumerToolbox\Marshal\boolean
boolean()
Definition:
Marshal.php:47
Setting
ILIAS\LegalDocuments\ConsumerToolbox\Marshal
Definition:
Marshal.php:29
ILIAS\LegalDocuments\ConsumerToolbox\Marshal\nullable
nullable(Convert $convert)
Definition:
Marshal.php:60
ILIAS\DataProtection\UserSettings
Definition:
UserSettings.php:29
UserSettings
SelectSetting
ILIAS\LegalDocuments\ConsumerToolbox\Setting
A
Definition:
Setting.php:28
ILIAS\LegalDocuments\ConsumerToolbox\Marshal\dateTime
dateTime()
Definition:
Marshal.php:35
ILIAS\DataProtection\UserSettings\agreeDate
agreeDate()
Definition:
UserSettings.php:46
ILIAS\LegalDocuments\ConsumerToolbox\SelectSetting
Definition:
SelectSetting.php:25
components
ILIAS
DataProtection
classes
UserSettings.php
Generated on Sun Aug 31 2025 23:02:48 for ILIAS by
1.8.13 (using
Doxyfile
)