Definition at line 38 of file Slot.php.
◆ __construct()
ILIAS\LegalDocuments\ConsumerToolbox\Slot::__construct |
( |
private readonly string |
$id, |
|
|
private readonly Blocks |
$blocks, |
|
|
private readonly Provide |
$provide, |
|
|
private readonly Container |
$container |
|
) |
| |
◆ agreement()
ILIAS\LegalDocuments\ConsumerToolbox\Slot::agreement |
( |
User |
$user | ) |
|
Definition at line 69 of file Slot.php.
71 return new Agreement($user, $this->blocks->ui(), $this->blocks->routing(), $this->blocks->withRequest(...));
◆ canReadInternalMails()
ILIAS\LegalDocuments\ConsumerToolbox\Slot::canReadInternalMails |
( |
Closure |
$build_user | ) |
|
- Parameters
-
Closure(ilObjUser) | User $build_user |
Definition at line 109 of file Slot.php.
References $id.
111 return $this->container->refinery()->custom()->constraint(
112 static function (
ilObjUser $user) use ($build_user):
bool {
113 $user = $build_user($user);
114 return $user->cannotAgree() || !$user->neverAgreed();
116 fn(): string =>
'Missing acceptance for: ' . $this->
id
◆ modifyFooter()
ILIAS\LegalDocuments\ConsumerToolbox\Slot::modifyFooter |
( |
User |
$user, |
|
|
?string |
$goto_target = null |
|
) |
| |
Definition at line 74 of file Slot.php.
References null.
76 $link = $goto_target ?
static fn() =>
new URI(ilLink::_getLink(
null,
'usr', [], $goto_target)) :
null;
77 return new ModifyFooter($this->blocks->ui(), $user, $this->provide, fn($arg) => $this->container->ui()->renderer()->render($arg), $this->
template(...), $link);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ onlineStatusFilter()
ILIAS\LegalDocuments\ConsumerToolbox\Slot::onlineStatusFilter |
( |
callable |
$select_didnt_agree | ) |
|
- Parameters
-
callable(list<int>) | list<int> $select_didnt_agree |
Definition at line 98 of file Slot.php.
100 return new OnlineStatusFilter(
101 Closure::fromCallable($select_didnt_agree),
102 $this->container->rbac()->review()
◆ selfRegistration()
ILIAS\LegalDocuments\ConsumerToolbox\Slot::selfRegistration |
( |
User |
$user, |
|
|
Closure |
$build_user |
|
) |
| |
- Parameters
-
Closure(ilObjUser) | User $build_user |
Definition at line 83 of file Slot.php.
85 return new SelfRegistration(
90 fn($arg) => $this->container->ui()->renderer()->render($arg),
◆ showOnLoginPage()
ILIAS\LegalDocuments\ConsumerToolbox\Slot::showOnLoginPage |
( |
| ) |
|
Definition at line 48 of file Slot.php.
50 return new ShowOnLoginPage($this->provide, $this->blocks->ui(), $this->
template(...));
◆ template()
ILIAS\LegalDocuments\ConsumerToolbox\Slot::template |
( |
string |
$name | ) |
|
|
private |
Definition at line 120 of file Slot.php.
122 return new ilTemplate($name,
true,
true,
'components/ILIAS/LegalDocuments');
◆ withdrawProcess()
ILIAS\LegalDocuments\ConsumerToolbox\Slot::withdrawProcess |
( |
User |
$user, |
|
|
Settings |
$global_settings, |
|
|
Closure |
$after_user_withdrawal |
|
) |
| |
- Parameters
-
Closure() | void $after_user_withdrawal |
Definition at line 56 of file Slot.php.
58 return new WithdrawProcess(
61 $this->blocks->routing(),
63 $this->blocks->retrieveQueryParameter(...),
65 $after_user_withdrawal
The documentation for this class was generated from the following file:
- components/ILIAS/LegalDocuments/classes/ConsumerToolbox/Slot.php