5include_once 
'./Services/Calendar/classes/ConsultationHours/class.ilConsultationHourGroup.php';
 
    6include_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'),
 
   77            $ilCtrl->getLinkTarget($this->getParentObject(), 
'editGroup')
 
   81        if ($a_set[
'assigned']) {
 
   83                $this->lng->txt(
'cal_ch_assign_participants'),
 
   85                $ilCtrl->getLinkTargetByClass(
'ilRepositorySearchGUI', 
'')
 
   90            $this->lng->txt(
'delete'),
 
   92            $ilCtrl->getLinkTarget($this->getParentObject(), 
'confirmDeleteGroup')
 
   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(),
 
An exception for terminatinating execution or to throw for unit testing.
User interface class for advanced drop-down selection lists.
static getAppointmentIdsByGroup($a_user_id, $a_ch_group_id, ilDateTime $start=null)
Get appointment ids by consultation hour group.
parse(array $groups)
Parse Groups.
__construct($a_parent_obj, $a_parent_cmd, $a_user_id)
Constructor.
getParentCmd()
Get parent command.
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
getFormAction()
Get Form action parameter.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
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.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
enable($a_module_name)
enables particular modules of table
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
if(isset($_REQUEST['delete'])) $list