|
1 | 1 | <?php
|
2 | 2 |
|
3 |
| -declare(strict_types=1); |
4 |
| - |
5 |
| -/****************************************************************************** |
6 |
| - * |
7 |
| - * This file is part of ILIAS, a powerful learning management system. |
| 3 | +/** |
| 4 | + * This file is part of ILIAS, a powerful learning management system |
| 5 | + * published by ILIAS open source e-Learning e.V. |
8 | 6 | *
|
9 |
| - * ILIAS is licensed with the GPL-3.0, you should have received a copy |
10 |
| - * of said license along with the source code. |
| 7 | + * ILIAS is licensed with the GPL-3.0, |
| 8 | + * see https://www.gnu.org/licenses/gpl-3.0.en.html |
| 9 | + * You should have received a copy of said license along with the |
| 10 | + * source code, too. |
11 | 11 | *
|
12 | 12 | * If this is not the case or you just want to try ILIAS, you'll find
|
13 | 13 | * us at:
|
14 |
| - * https://www.ilias.de |
15 |
| - * https://github.com/ILIAS-eLearning |
| 14 | + * https://www.ilias.de |
| 15 | + * https://github.com/ILIAS-eLearning |
16 | 16 | *
|
17 |
| - *****************************************************************************/ |
| 17 | + *********************************************************************/ |
| 18 | + |
| 19 | +declare(strict_types=1); |
18 | 20 |
|
19 | 21 | /**
|
20 | 22 | * @author Stefan Meyer <[email protected]>
|
@@ -49,6 +51,9 @@ public function __construct(int $a_auth_ref_id)
|
49 | 51 | $this->lng->loadLanguageModule('registration');
|
50 | 52 | $this->lng->loadLanguageModule('auth');
|
51 | 53 |
|
| 54 | + $this->renderer = $DIC->ui()->renderer(); |
| 55 | + $this->factory = $DIC->ui()->factory(); |
| 56 | + |
52 | 57 | $this->ref_id = $a_auth_ref_id;
|
53 | 58 |
|
54 | 59 | $this->settings = ilCASSettings::getInstance();
|
@@ -87,7 +92,15 @@ protected function initFormSettings(): ilPropertyFormGUI
|
87 | 92 | $form->setFormAction($this->ctrl->getFormAction($this));
|
88 | 93 |
|
89 | 94 | $form->setTitle($this->lng->txt('auth_cas_auth'));
|
90 |
| - $form->setDescription($this->lng->txt("auth_cas_auth_desc")); |
| 95 | + |
| 96 | + $drop_in_replacements_url = 'https://github.com/ILIAS-eLearning/ILIAS/tree/trunk/components/ILIAS/HTTP#dropinreplacements'; |
| 97 | + $drop_in_replacements_link = $this->factory->link()->standard( |
| 98 | + $this->lng->txt("auth_cas_auth_desc"), |
| 99 | + $drop_in_replacements_url |
| 100 | + ); |
| 101 | + $form->setDescription($this->renderer->render( |
| 102 | + $drop_in_replacements_link |
| 103 | + )); |
91 | 104 |
|
92 | 105 | // Form checkbox
|
93 | 106 | $check = new ilCheckboxInputGUI($this->lng->txt("active"), 'active');
|
|
0 commit comments