5 include_once
'./Services/Calendar/classes/ConsultationHours/class.ilConsultationHourGroup.php';
6 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
24 public function __construct($a_parent_obj, $a_parent_cmd, $a_user_id)
26 $this->user_id = $a_user_id;
27 $this->
setId(
'chgrp_'.$this->user_id);
38 $this->
setRowTemplate(
'tpl.ch_group_row.html',
'Services/Calendar');
63 $this->tpl->setVariable(
'TITLE',$a_set[
'title']);
64 $this->tpl->setVariable(
'MAX_BOOKINGS',$a_set[
'max_books']);
65 $this->tpl->setVariable(
'ASSIGNED',$a_set[
'assigned']);
67 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
69 $list->setId(
'act_chgrp_'.$this->user_id.
'_'.$a_set[
'id']);
70 $list->setListTitle($this->lng->txt(
'actions'));
74 $this->lng->txt(
'edit'),
80 if($a_set[
'assigned'])
83 $this->lng->txt(
'cal_ch_assign_participants'),
85 $ilCtrl->getLinkTargetByClass(
'ilRepositorySearchGUI',
'')
90 $this->lng->txt(
'delete'),
95 $this->tpl->setVariable(
'ACTIONS',$list->getHTML());
103 public function parse(array $groups)
107 foreach($groups as $group)
109 $rows[$counter][
'id'] = $group->getGroupId();
110 $rows[$counter][
'title'] = $group->getTitle();
111 $rows[$counter][
'max_books'] = $group->getMaxAssignments();
114 $group->getGroupId(),