24 include_once(
'Services/Object/classes/class.ilObjectListGUI.php');
49 $lng->loadLanguageModule(
'crs');
50 $lng->loadLanguageModule(
'sess');
52 parent::__construct();
63 $this->delete_enabled =
true;
64 $this->cut_enabled =
true;
65 $this->copy_enabled =
true;
66 $this->subscribe_enabled =
true;
67 $this->link_enabled =
true;
68 $this->payment_enabled =
false;
69 $this->info_screen_enabled =
true;
70 $this->subitems_enabled =
true;
72 $this->gui_class_name =
"ilobjsessiongui";
75 include_once(
'./Modules/Session/classes/class.ilObjSessionAccess.php');
91 $title = strlen($this->title) ? (
': '.$this->title) :
'';
109 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
110 $cmd_link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
111 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
126 if($a_cmd !=
'register' and $a_cmd !=
'unregister')
130 return parent::checkCommandAccess($a_permission,$a_cmd,$a_ref_id,$a_type,$a_obj_id);
151 include_once
'./Modules/Session/classes/class.ilObjSession.php';
153 include_once
'./Modules/Session/classes/class.ilSessionParticipants.php';
156 if($session_data->isRegistrationUserLimitEnabled()) {
157 if ($part->getCountMembers() <= $session_data->getRegistrationMaxUsers()) {
160 'property' => $this->lng->txt(
'sess_list_reg_limit_places'),
163 $session_data->getRegistrationMaxUsers() - $part->getCountMembers()
171 if($items = self::lookupAssignedMaterials($this->obj_id))
175 'property' => $this->lng->txt(
'event_ass_materials_prop'),
176 'value' => count($items)
183 include_once
'./Modules/Session/classes/class.ilObjSession.php';
186 if(strlen($session_data[
'location']))
190 'property' => $this->lng->txt(
'event_location'),
191 'value' => $session_data[
'location']
194 if(strlen($session_data[
'details']))
198 'property' => $this->lng->txt(
'event_details_workflow'),
199 'value' => nl2br($session_data[
'details']),
203 $has_new_line =
false;
204 if(strlen($session_data[
'name']))
208 'property' => $this->lng->txt(
'event_lecturer'),
209 'value' => $session_data[
'name'],
212 $has_new_line =
true;
214 if(strlen($session_data[
'email']))
218 'property' => $this->lng->txt(
'tutor_email'),
219 'value' => $session_data[
'email'],
220 'newline' => $has_new_line ? false : true
222 $has_new_line =
true;
224 if(strlen($session_data[
'phone']))
228 'property' => $this->lng->txt(
'tutor_phone'),
229 'value' => $session_data[
'phone'],
230 'newline' => $has_new_line ? false : true
232 $has_new_line =
true;
249 if(isset($this->app_info[$this->obj_id]))
253 include_once(
'./Modules/Session/classes/class.ilSessionAppointment.php');
266 $query =
'SELECT * FROM event_items ei '.
267 'JOIN tree ON item_id = child '.
268 'WHERE event_id = '.$ilDB->quote($a_sess_id,
'integer').
' '.
271 while(
$row =
$res->fetchRow(FETCHMODE_OBJECT))
273 $items[] =
$row->item_id;
275 return $items ? $items : array();
getAppointmentInfo()
get appointment info
__construct()
Constructor.
getProperties()
get properties
getCommandLink($a_cmd)
Get command link url.
_getCommands()
get list of command/permission combinations
static _getInstanceByObjId($a_obj_id)
Get singleton instance.
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
Only check cmd access for cmd 'register' and 'unregister'.
static lookupSession($a_obj_id)
Get session data.
getTitle()
get title Overwritten since sessions prepend the date of the session to the title ...
static _appointmentToString($start, $end, $fulltime)
getDetailsLevel()
Get current details level.
static lookupAssignedMaterials($a_sess_id)
Get assigned items of event.
static _lookupAppointment($a_obj_id)
lookup appointment