4include_once 
'./Services/Table/classes/class.ilTable2GUI.php';
 
    5include_once 
'./Services/Calendar/classes/ConsultationHours/class.ilConsultationHourAppointments.php';
 
   35        $this->user_id = $a_user_id;
 
   37        include_once 
'./Services/Calendar/classes/ConsultationHours/class.ilConsultationHourGroups.php';
 
   41        parent::__construct($a_gui, $a_cmd);
 
   44        $this->
addColumn($this->lng->txt(
'appointment'), 
'start');
 
   47            $this->
addColumn($this->lng->txt(
'cal_ch_grp_header'), 
'group');
 
   50        $this->
addColumn($this->lng->txt(
'title'), 
'title');
 
   51        $this->
addColumn($this->lng->txt(
'cal_ch_num_bookings'), 
'num_bookings');
 
   52        $this->
addColumn($this->lng->txt(
'cal_ch_bookings'), 
'participants');
 
   53        $this->
addColumn($this->lng->txt(
'cal_ch_target_object'), 
'target');
 
   56        $this->
setRowTemplate(
'tpl.ch_upcoming_row.html', 
'Services/Calendar');
 
   58        $this->
setTitle($this->lng->txt(
'cal_ch_ch'));
 
   68        $this->
addMultiCommand(
'searchUsersForAppointments', $this->lng->txt(
'cal_ch_assign_participants'));
 
   99        $this->tpl->setVariable(
'VAL_ID', 
$row[
'id']);
 
  100        $this->tpl->setVariable(
'START', 
$row[
'start_p']);
 
  101        $this->tpl->setVariable(
'TITLE', 
$row[
'title']);
 
  104            $this->tpl->setVariable(
'TITLE_GROUP', 
$row[
'group']);
 
  107        $this->tpl->setVariable(
'NUM_BOOKINGS', 
$row[
'num_bookings']);
 
  109        foreach ((array) 
$row[
'target_links'] as $link) {
 
  110            $this->tpl->setCurrentBlock(
'links');
 
  111            $this->tpl->setVariable(
'TARGET', $link[
'title']);
 
  112            $this->tpl->setVariable(
'URL_TARGET', $link[
'link']);
 
  113            $this->tpl->parseCurrentBlock();
 
  115        if (
$row[
'bookings']) {
 
  118                if ($user_profile_prefs[
"public_profile"] == 
"y") {
 
  119                    $this->tpl->setCurrentBlock(
'booking_with_link');
 
  121                    $this->tpl->setVariable(
'URL_BOOKING', 
$ilCtrl->getLinkTarget($this->getParentObject(), 
'showprofile'));
 
  123                    $this->tpl->setCurrentBlock(
'booking_without_link');
 
  126                $this->tpl->setVariable(
'TXT_BOOKING', 
$name);
 
  127                $this->tpl->parseCurrentBlock();
 
  131        $this->tpl->setVariable(
'BOOKINGS', implode(
', ', 
$row[
'bookings']));
 
  133        include_once 
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
 
  136        $list->setListTitle($this->lng->txt(
'actions'));
 
  140            $this->lng->txt(
'edit'),
 
  142            $ilCtrl->getLinkTarget($this->getParentObject(), 
'edit')
 
  145            $this->lng->txt(
'cal_ch_assign_participants'),
 
  147            $ilCtrl->getLinkTargetByClass(
'ilRepositorySearchGUI', 
'')
 
  150            $this->lng->txt(
'delete'),
 
  152            $ilCtrl->getLinkTarget($this->getParentObject(), 
'confirmDelete')
 
  154        $this->tpl->setVariable(
'ACTIONS', 
$list->getHTML());
 
  166        $ilObjDataCache = 
$DIC[
'ilObjDataCache'];
 
  168        include_once 
'Services/Booking/classes/class.ilBookingEntry.php';
 
  173            $data[$counter][
'id'] = $app->getEntryId();
 
  174            $data[$counter][
'title'] = $app->getTitle();
 
  175            $data[$counter][
'description'] = $app->getDescription();
 
  181            $booked_user_ids = $booking->getCurrentBookings($app->getEntryId());
 
  182            $booked_user_ids = 
ilUtil::_sortIds($booked_user_ids, 
'usr_data', 
'lastname', 
'usr_id');
 
  184            $data[$counter][
'participants'] = 
'';
 
  186            foreach ($booked_user_ids as 
$user_id) {
 
  187                if (!$user_counter) {
 
  189                    $data[$counter][
'participants'] = 
$name[
'lastname'];
 
  195            $data[$counter][
'num_bookings'] = $booking->getNumberOfBookings();
 
  197            $data[$counter][
'group'] = 
'';
 
  198            $group_id = $booking->getBookingGroup();
 
  205            $obj_ids = 
ilUtil::_sortIds($booking->getTargetObjIds(), 
'object_data', 
'title', 
'obj_id');
 
  206            foreach ($obj_ids as $obj_id) {
 
  212                include_once 
'./Services/Link/classes/class.ilLink.php';
 
An exception for terminatinating execution or to throw for unit testing.
User interface class for advanced drop-down selection lists.
static getAppointments($a_user_id)
Get all appointments.
static lookupTitle($a_group_id)
Lookup group title.
static getCountGroupsOfUser($a_user_id)
Get number of consultation hour groups @global type $ilDB.
Consultation hours administration.
parse()
Parse appointments.
__construct($a_gui, $a_cmd, $a_user_id)
Constructor.
hasGroups()
Check if user has created groups.
static formatPeriod(ilDateTime $start, ilDateTime $end, $a_skip_starting_day=false)
Format a period of two date Shows: 14.
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
static _getPreferences($user_id)
get preferences for user
static _lookupName($a_user_id)
lookup user name
static _lookupFullname($a_user_id)
Lookup Full Name.
static _lookupTitle($a_id)
lookup object title
static _getAllReferences($a_id)
get all reference ids of object
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
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
static _sortIds($a_ids, $a_table, $a_field, $a_id_name)
Function that sorts ids by a given table field using WHERE IN E.g: __sort(array(6,...
if(isset($_REQUEST['delete'])) $list