3 declare(strict_types=1);
    27     protected \ilLanguage 
$lng;
    28     protected \ILIAS\DI\UIServices 
$ui;
    37         $this->
ui = $DIC->ui();
    38         $this->
lng = $DIC->language();
    39         $this->object_manager = $DIC->bookingManager()->internal()->domain()
    42         $this->object_selection = $DIC->bookingManager()->internal()->domain()
    43             ->objectSelection($pool_id);
    48         $tpl = new \ilTemplate(
"tpl.obj_selection.html", 
true, 
true, 
"components/ILIAS/BookingManager/BookingProcess");
    50         $selected = $this->object_selection->getSelectedObjects();
    51         foreach ($this->object_manager->getObjectTitles() as 
$id => $title) {
    52             $tpl->setCurrentBlock(
"item");
    53             if (in_array($id, $selected)) {
    54                 $tpl->setVariable(
"CHECKED", 
"checked='checked'");
    56             $tpl->setVariable(
"ID", $id);
    57             $tpl->setVariable(
"COLOR_NR", $this->object_manager->getColorNrForObject($id));
    58             $tpl->setVariable(
"TITLE", $title);
    59             $tpl->parseCurrentBlock();
    62         $tpl->setVariable(
"FORM_ACTION", $this->form_action);
    63         $submit_button = $this->
ui->factory()->button()->standard(
    64             $this->
lng->txt(
"book_refresh"),
    68             const book_submit_btn = document.getElementById(
'$id');
    69             book_submit_btn.addEventListener(
"click", (
event) => {
    70                 book_submit_btn.closest(
'form').submit(); 
return false;
    74         $tpl->setVariable(
"BUTTON", $this->
ui->renderer()->render($submit_button));
    76         $p = $this->
ui->factory()->panel()->secondary()->legacy(
    77             $this->
lng->txt(
"book_object_selection"),
    78             $this->
ui->factory()->legacy($tpl->get())
    80         return $this->
ui->renderer()->render($p);
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
ObjectSelectionManager $object_selection
 
ILIAS BookingManager Objects ObjectsManager $object_manager
 
withAdditionalOnLoadCode(Closure $binder)
 
__construct(int $pool_id, string $form_action)
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins