5 include_once
'./Services/Calendar/classes/ConsultationHours/class.ilConsultationHourGroup.php';
6 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
23 public function __construct($a_parent_obj, $a_parent_cmd, $a_user_id)
25 $this->user_id = $a_user_id;
26 $this->
setId(
'chgrp_' . $this->user_id);
27 parent::__construct($a_parent_obj, $a_parent_cmd);
37 $this->
setRowTemplate(
'tpl.ch_group_row.html',
'Services/Calendar');
64 $this->tpl->setVariable(
'TITLE', $a_set[
'title']);
65 $this->tpl->setVariable(
'MAX_BOOKINGS', $a_set[
'max_books']);
66 $this->tpl->setVariable(
'ASSIGNED', $a_set[
'assigned']);
68 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
70 $list->setId(
'act_chgrp_' . $this->user_id .
'_' . $a_set[
'id']);
71 $list->setListTitle($this->lng->txt(
'actions'));
75 $this->lng->txt(
'edit'),
81 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) {
108 $rows[$counter][
'id'] = $group->getGroupId();
109 $rows[$counter][
'title'] = $group->getTitle();
110 $rows[$counter][
'max_books'] = $group->getMaxAssignments();
111 $rows[$counter][
'assigned'] = count(
114 $group->getGroupId(),
if(isset($_REQUEST['delete'])) $list
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
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.
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.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.