3 declare(strict_types=1);
15 public function __construct(
object $a_parent_obj,
string $a_parent_cmd,
int $a_user_id)
17 $this->user_id = $a_user_id;
18 $this->
setId(
'chgrp_' . $this->user_id);
28 $this->
setRowTemplate(
'tpl.ch_group_row.html',
'Services/Calendar');
34 $this->
addColumn($this->
lng->txt(
'cal_ch_assigned_apps'),
'apps');
35 $this->
addColumn($this->
lng->txt(
'cal_ch_max_books'),
'max_books');
47 protected function fillRow(array $a_set): void
49 $this->tpl->setVariable(
'TITLE', $a_set[
'title']);
50 $this->tpl->setVariable(
'MAX_BOOKINGS', $a_set[
'max_books']);
51 $this->tpl->setVariable(
'ASSIGNED', $a_set[
'assigned']);
54 $list->setId(
'act_chgrp_' . $this->user_id .
'_' . $a_set[
'id']);
55 $list->setListTitle($this->
lng->txt(
'actions'));
59 $this->
lng->txt(
'edit'),
65 if ($a_set[
'assigned']) {
67 $this->
lng->txt(
'cal_ch_assign_participants'),
69 $this->
ctrl->getLinkTargetByClass(
'ilRepositorySearchGUI',
'')
74 $this->
lng->txt(
'delete'),
79 $this->tpl->setVariable(
'ACTIONS', $list->getHTML());
86 public function parse(array $groups): void
90 foreach ($groups as $group) {
91 $rows[$counter][
'id'] = $group->getGroupId();
92 $rows[$counter][
'title'] = $group->getTitle();
93 $rows[$counter][
'max_books'] = $group->getMaxAssignments();
94 $rows[$counter][
'assigned'] = count(
enable(string $a_module_name)
setFormAction(string $a_form_action, bool $a_multipart=false)
__construct(object $a_parent_obj, string $a_parent_cmd, int $a_user_id)
setDefaultOrderField(string $a_defaultorderfield)
static getAppointmentIdsByGroup(int $a_user_id, int $a_ch_group_id, ?ilDateTime $start=null)
Get appointment ids by consultation hour group.
parse(array $groups)
Parse Groups.
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__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)