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);
28 parent::__construct($a_parent_obj,$a_parent_cmd);
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());
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(),
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
getParentCmd()
Get parent command.
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
parse(array $groups)
Parse Groups.
enable($a_module_name)
enables particular modules of table
getFormAction()
Get Form action parameter.
static getAppointmentIdsByGroup($a_user_id, $a_ch_group_id, ilDateTime $start=null)
Get appointment ids by consultation hour group.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
User interface class for advanced drop-down selection lists.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
__construct($a_parent_obj, $a_parent_cmd, $a_user_id)
Constructor.