5 include_once
'./Services/Calendar/classes/ConsultationHours/class.ilConsultationHourGroup.php';
6 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
25 public function __construct($a_parent_obj, $a_parent_cmd, $a_user_id)
27 $this->user_id = $a_user_id;
28 $this->
setId(
'chboo_' . $this->user_id);
29 parent::__construct($a_parent_obj, $a_parent_cmd);
42 $this->
setRowTemplate(
'tpl.ch_booking_row.html',
'Services/Calendar');
61 $this->
addMultiCommand(
'confirmRejectBooking', $this->lng->txt(
'cal_ch_reject_booking'));
62 $this->
addMultiCommand(
'confirmDeleteBooking', $this->lng->txt(
'cal_ch_delete_booking'));
73 $this->tpl->setVariable(
'START',
$row[
'start_str']);
74 $this->tpl->setVariable(
'NAME',
$row[
'name']);
75 $this->tpl->setVariable(
'COMMENT',
$row[
'comment']);
76 $this->tpl->setVariable(
'TITLE',
$row[
'title']);
77 $this->tpl->setVariable(
'VAL_ID',
$row[
'id']);
79 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
82 $list->setListTitle($this->lng->txt(
'actions'));
89 $this->lng->txt(
'cal_ch_reject_booking'),
91 $ilCtrl->getLinkTarget($this->
getParentObject(),
'confirmRejectBooking')
95 $this->lng->txt(
'cal_ch_delete_booking'),
97 $ilCtrl->getLinkTarget($this->
getParentObject(),
'confirmDeleteBooking')
99 $this->tpl->setVariable(
'ACTIONS',
$list->getHTML());
113 foreach ($appointments as $app) {
114 include_once
'./Services/Calendar/classes/class.ilCalendarEntry.php';
117 include_once
'./Services/Booking/classes/class.ilBookingEntry.php';
119 include_once
'./Services/User/classes/class.ilUserUtil.php';
124 $ilCtrl->getLinkTarget($this->getParentObject(), $this->
getParentCmd()),
Model for a calendar entry.
if(isset($_REQUEST['delete'])) $list
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
static _after(ilDateTime $start, ilDateTime $end, $a_compare_field='', $a_tz='')
compare two dates and check start is after end This method does not consider tz offsets.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
getParentCmd()
Get parent command.
static lookupBookingMessage($a_entry_id, $a_usr_id)
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
catch(Exception $e) $message
static lookupBookingsForAppointment($a_app_id)
Lookup booked users for appointment type $ilDB.
addMultiCommand($a_cmd, $a_text)
Add Command button.
enable($a_module_name)
enables particular modules of table
getFormAction()
Get Form action parameter.
static getNamePresentation( $a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
parse(array $appointments)
Parse Groups.
__construct($a_parent_obj, $a_parent_cmd, $a_user_id)
Constructor.
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.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.