19declare(strict_types=1);
43 private readonly
string $id,
44 private readonly
Blocks $blocks,
45 private readonly
Provide $provide,
52 return new ShowOnLoginPage($this->provide, $this->blocks->ui(), $this->template(...));
63 $this->blocks->routing(),
65 $this->blocks->retrieveQueryParameter(...),
67 $after_user_withdrawal
73 return new Agreement($user, $this->blocks->ui(), $this->blocks->routing(), $this->blocks->withRequest(...));
78 $link = $goto_target ?
static fn() =>
new URI(ilLink::_getLink(
null,
'usr', [], $goto_target)) :
null;
83 fn($arg) => $this->container->ui()->renderer()->render($arg),
91 return $footer($this->provide->id(), $this->blocks->ui()->txt(
'usr_agreement'),
null);
104 fn($arg) => $this->container->ui()->renderer()->render($arg),
115 Closure::fromCallable($select_didnt_agree),
116 $this->container->rbac()->review()
125 return $this->container->refinery()->custom()->constraint(
126 static function (
ilObjUser $user) use ($build_user):
bool {
127 $user = $build_user($user);
128 return $user->cannotAgree() || !$user->neverAgreed();
130 fn():
string =>
'Missing acceptance for: ' .
$this->id
136 return new ilTemplate($name,
true,
true,
'components/ILIAS/LegalDocuments');
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Customizing of pimple-DIC for ILIAS.
The scope of this class is split ilias-conform URI's into components.
special template class to simplify handling of ITX/PEAR
A constraint encodes some resrtictions on values.
This describes commonalities between the different modals.