45         $this->
ctrl = $DIC->ctrl();
    46         $this->
lng = $DIC->language();
    47         $this->
user = $DIC->user();
    48         $this->
access = $DIC->access();
    49         $this->ref_id = $a_ref_id;
    50         $this->book_request = $DIC->bookingManager()
    55         $this->pool_id = $a_pool_id;
    58         $this->process_class = $DIC->bookingManager()
    62             ->getProcessClassForPool($this->pool);
    65         if ($this->book_request->getBookedUser() > 0) {
    66             $this->user_id_to_book = $this->book_request->getBookedUser();
    68                 $this->
ctrl->redirect($a_parent_obj, $a_parent_cmd);
    71             $user_name = $user_name_data[
'lastname'] . 
", " . $user_name_data[
'firstname'];
    73             $this->
ctrl->redirect($a_parent_obj, 
'render');
    76         $this->
setId(
"bkaobj" . $a_ref_id);
    80         $this->
setTitle($this->
lng->txt(
"book_assign_object") . 
": " . $user_name);
    95         $this->
setRowTemplate(
"tpl.booking_assign_object_row.html", 
"components/ILIAS/BookingManager");
   104         foreach ($obj_items as $item) {
   107                 $this->
ctrl->setParameterByClass(
'ilbookingobjectgui', 
'bkusr', $this->user_id_to_book);
   108                 $this->
ctrl->setParameterByClass(
'ilbookingobjectgui', 
'object_id', $item[
'booking_object_id']);
   111                     'object_id' => $item[
'booking_object_id'],
   112                     'title' => $item[
'title'],
   113                     'description' => $item[
'description'],
   115                     'url_assign' => $this->
ctrl->getLinkTargetByClass([
"ilbookingobjectgui", $this->process_class], 
'book')
   117                 $this->
ctrl->setParameterByClass(
'ilbookingobjectgui', 
'bkusr', 
'');
   118                 $this->
ctrl->setParameterByClass(
'ilbookingobjectgui', 
'object_id', 
'');
   119                 $this->
ctrl->setParameterByClass(
'ilbookingobjectgui', 
'part_view', 
'');
   125     protected function fillRow(array $a_set): void
   128             $this->tpl->setCurrentBlock(
"available");
   129             $this->tpl->setVariable(
"TXT_AVAILABLE", $a_set[
'nr_items']);
   130             $this->tpl->parseCurrentBlock();
   132         $this->tpl->setVariable(
"TXT_TITLE", $a_set[
'title']);
   133         $this->tpl->setVariable(
"TXT_DESCRIPTION", $a_set[
'description']);
   134         $this->tpl->setVariable(
"TXT_ACTION", $this->
lng->txt(
"book_assign"));
   135         $this->tpl->setVariable(
"URL_ACTION", $a_set[
'url_assign']);
 
static getObjectReservationForUser(int $a_object_id, int $a_user_id)
 
static _lookupName(int $a_user_id)
lookup user name 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data 
 
ILIAS BookingManager StandardGUIRequest $book_request
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
static numAvailableFromObjectNoSchedule(int $a_obj_id)
 
__construct(Container $dic, ilPlugin $plugin)
 
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
 
__construct(ilBookingParticipantGUI $a_parent_obj, string $a_parent_cmd, int $a_ref_id, int $a_pool_id)
 
static getList(int $a_pool_id, string $a_title=null)
Get list of booking objects. 
 
setEnableHeader(bool $a_enableheader)