◆ __construct()
ILIAS\BookingManager\BookingProcess\ObjectSelectionListGUI::__construct |
( |
int |
$pool_id, |
|
|
string |
$form_action |
|
) |
| |
◆ render()
ILIAS\BookingManager\BookingProcess\ObjectSelectionListGUI::render |
( |
| ) |
|
Definition at line 49 of file class.ObjectSelectionListGUI.php.
References $id, ILIAS\Repository\event(), ILIAS\Repository\lng(), ILIAS\Repository\ui(), and ILIAS\UI\Implementation\Component\withAdditionalOnLoadCode().
51 $tpl = new \ilTemplate(
"tpl.obj_selection.html",
true,
true,
"components/ILIAS/BookingManager/BookingProcess");
53 $selected = $this->object_selection->getSelectedObjects();
54 foreach ($this->object_manager->getObjectTitles() as
$id => $title) {
55 $tpl->setCurrentBlock(
"item");
56 if (in_array($id, $selected)) {
57 $tpl->setVariable(
"CHECKED",
"checked='checked'");
59 $tpl->setVariable(
"ID", $id);
60 $tpl->setVariable(
"COLOR_NR", $this->object_manager->getColorNrForObject($id));
61 $tpl->setVariable(
"TITLE", $title);
62 $tpl->parseCurrentBlock();
65 $tpl->setVariable(
"FORM_ACTION", $this->form_action);
66 $submit_button = $this->
ui->factory()->button()->standard(
67 $this->
lng->txt(
"book_refresh"),
71 const book_submit_btn = document.getElementById(
'$id');
72 book_submit_btn.addEventListener(
"click", (
event) => {
73 book_submit_btn.closest(
'form').submit();
return false;
77 $tpl->setVariable(
"BUTTON", $this->
ui->renderer()->render($submit_button));
79 $p = $this->
ui->factory()->panel()->secondary()->legacy(
80 $this->
lng->txt(
"book_object_selection"),
81 $this->
ui->factory()->legacy()->content($tpl->get())
83 return $this->
ui->renderer()->render($p);
withAdditionalOnLoadCode(Closure $binder)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ $form_action
string ILIAS\BookingManager\BookingProcess\ObjectSelectionListGUI::$form_action |
|
protected |
◆ $lng
ilLanguage ILIAS\BookingManager\BookingProcess\ObjectSelectionListGUI::$lng |
|
protected |
◆ $object_manager
◆ $object_selection
◆ $ui
ILIAS DI UIServices ILIAS\BookingManager\BookingProcess\ObjectSelectionListGUI::$ui |
|
protected |
The documentation for this class was generated from the following file: