|
| | __construct (private readonly ilLanguage $language, Closure $create=null) |
| |
| | render (string $link, string $command, string $cancel_command, string $message, array $items=[]) |
| |
Definition at line 27 of file Confirmation.php.
◆ __construct()
| ILIAS\LegalDocuments\Legacy\Confirmation::__construct |
( |
private readonly ilLanguage |
$language, |
|
|
Closure |
$create = null |
|
) |
| |
◆ render()
| ILIAS\LegalDocuments\Legacy\Confirmation::render |
( |
string |
$link, |
|
|
string |
$command, |
|
|
string |
$cancel_command, |
|
|
string |
$message, |
|
|
array |
$items = [] |
|
) |
| |
- Parameters
-
| array<int|string,string> | $items |
Definition at line 43 of file Confirmation.php.
References ILIAS\LegalDocuments\Legacy\Confirmation\$create, and ILIAS\UI\examples\Symbol\Glyph\Language\language().
46 $confirmation->setFormAction($link);
47 $confirmation->setConfirm($this->
language->txt(
'confirm'), $command);
48 $confirmation->setCancel($this->
language->txt(
'cancel'), $cancel_command);
49 $confirmation->setHeaderText($message);
50 foreach ($items as $value => $label) {
51 $value = is_int($value) ? (string) $value : $value;
52 $confirmation->addItem(
'ids[]', $value, $label);
55 return $confirmation->getHTML();
language()
description: > Example for rendring a language glyph.
◆ $create
| readonly Closure ILIAS\LegalDocuments\Legacy\Confirmation::$create |
|
private |
The documentation for this class was generated from the following file: