19 declare(strict_types=1);
35 private readonly
Provide $legal_documents,
36 private readonly
UI $ui,
37 private readonly
Closure $create_template
46 if ($this->legal_documents->document()->repository()->countAll() === 0) {
50 $template = ($this->create_template)(
'login_link.html');
51 $template->setVariable(
'LABEL', htmlentities($this->
ui->txt(
'usr_agreement')));
52 $template->setVariable(
'HREF', $this->legal_documents->publicPage()->url());
54 return [$this->
ui->create()->legacy()->content($template->get())];
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(private readonly Provide $legal_documents, private readonly UI $ui, private readonly Closure $create_template)