3 declare(strict_types=1);
    35     public function __construct(
object $a_parent_obj, 
string $a_parent_cmd, 
int $a_user_id)
    37         $this->user_id = $a_user_id;
    38         $this->
setId(
'chboo_' . $this->user_id);
    42         $this->renderer = $DIC->ui()->renderer();
    43         $this->uiFactory = $DIC->ui()->factory();
    54         $this->
setRowTemplate(
'tpl.ch_booking_row.html', 
'Services/Calendar');
    56         $this->
setTitle($this->
lng->txt(
'cal_ch_bookings_tbl'));
    62         $this->
addColumn($this->
lng->txt(
'cal_ch_booking_message_tbl'), 
'comment');
    73         $this->
addMultiCommand(
'confirmRejectBooking', $this->
lng->txt(
'cal_ch_reject_booking'));
    74         $this->
addMultiCommand(
'confirmDeleteBooking', $this->
lng->txt(
'cal_ch_delete_booking'));
    80     protected function fillRow(array $a_set): void
    82         $this->tpl->setVariable(
'START', $a_set[
'start_str']);
    83         $this->tpl->setVariable(
'NAME', $a_set[
'name']);
    84         $this->tpl->setVariable(
'COMMENT', $a_set[
'comment']);
    85         $this->tpl->setVariable(
'TITLE', $a_set[
'title']);
    86         $this->tpl->setVariable(
'VAL_ID', $a_set[
'id']);
    88         $dropDownItems = array();
    94             $dropDownItems[] = $this->uiFactory->button()->shy(
    95                 $this->
lng->txt(
'cal_ch_reject_booking'),
   100         $dropDownItems[] = $this->uiFactory->button()->shy(
   101             $this->
lng->txt(
'cal_ch_delete_booking'),
   104         $dropDown = $this->uiFactory->dropdown()->standard($dropDownItems)
   105                 ->withLabel($this->
lng->txt(
'actions'));
   106         $this->tpl->setVariable(
'ACTIONS', $this->renderer->render($dropDown));
   113     public function parse(array $appointments): void
   117         foreach ($appointments as 
$app) {
   125                     $this->
ctrl->getLinkTarget($this->getParentObject(), $this->
getParentCmd()),
   131                 $rows[$counter][
'comment'] = 
'';
   133                     $rows[$counter][
'comment'] = (
'"' . 
$message . 
'"');
   135                 $rows[$counter][
'title'] = $cal_entry->getTitle();
   136                 $rows[$counter][
'start'] = $cal_entry->getStart()->get(
IL_CAL_UNIX);
   138                 $rows[$counter][
'id'] = $app . 
'_' . 
$user_id;
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
enable(string $a_module_name)
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
 
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
 
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector. 
 
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path='ilpublicuserprofilegui')
Default behaviour is: 
 
setDefaultOrderField(string $a_defaultorderfield)
 
static _after(ilDateTime $start, ilDateTime $end, string $a_compare_field='', string $a_tz='')
compare two dates and check start is after end This method does not consider tz offsets. 
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
parse(array $appointments)
Parse Groups. 
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
UIImplementationFactory $uiFactory
 
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)
 
static lookupBookingMessage(int $a_entry_id, int $a_usr_id)
 
addMultiCommand(string $a_cmd, string $a_text)
 
static lookupBookingsForAppointment(int $a_app_id)
Lookup booked users for appointment. 
 
__construct(object $a_parent_obj, string $a_parent_cmd, int $a_user_id)