24 include_once(
'Services/Object/classes/class.ilObjectListGUI.php');
51 $lng->loadLanguageModule(
'crs');
52 $lng->loadLanguageModule(
'sess');
54 parent::__construct();
65 $this->delete_enabled =
true;
66 $this->cut_enabled =
true;
67 $this->copy_enabled =
true;
68 $this->subscribe_enabled =
true;
69 $this->link_enabled =
true;
70 $this->info_screen_enabled =
true;
71 $this->subitems_enabled =
true;
73 $this->gui_class_name =
"ilobjsessiongui";
79 include_once(
'./Modules/Session/classes/class.ilObjSessionAccess.php');
115 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
116 $cmd_link =
$ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
117 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
132 if ($a_cmd !=
'register' and $a_cmd !=
'unregister') {
135 return parent::checkCommandAccess($a_permission, $a_cmd, $a_ref_id,
$a_type, $a_obj_id);
156 include_once
'./Modules/Session/classes/class.ilObjSession.php';
158 include_once
'./Modules/Session/classes/class.ilSessionParticipants.php';
161 if ($session_data->isRegistrationUserLimitEnabled()) {
162 if ($part->getCountMembers() <= $session_data->getRegistrationMaxUsers()) {
165 'property' => $this->lng->txt(
'sess_list_reg_limit_places'),
168 $session_data->getRegistrationMaxUsers() - $part->getCountMembers()
175 if ($items = self::lookupAssignedMaterials($this->obj_id)) {
178 'property' => $this->lng->txt(
'event_ass_materials_prop'),
179 'value' => count($items)
184 include_once
'./Modules/Session/classes/class.ilObjSession.php';
187 if (strlen($session_data[
'location'])) {
190 'property' => $this->lng->txt(
'event_location'),
191 'value' => $session_data[
'location']
194 if (strlen($session_data[
'details'])) {
197 'property' => $this->lng->txt(
'event_details_workflow'),
198 'value' => nl2br($session_data[
'details']),
202 $has_new_line =
false;
203 if (strlen($session_data[
'name'])) {
206 'property' => $this->lng->txt(
'event_lecturer'),
207 'value' => $session_data[
'name'],
210 $has_new_line =
true;
212 if (strlen($session_data[
'email'])) {
215 'property' => $this->lng->txt(
'tutor_email'),
216 'value' => $session_data[
'email'],
217 'newline' => $has_new_line ? false : true
219 $has_new_line =
true;
221 if (strlen($session_data[
'phone'])) {
224 'property' => $this->lng->txt(
'tutor_phone'),
225 'value' => $session_data[
'phone'],
226 'newline' => $has_new_line ? false : true
228 $has_new_line =
true;
245 if (isset($this->app_info[$this->obj_id])) {
248 include_once(
'./Modules/Session/classes/class.ilSessionAppointment.php');
261 $ilDB = $DIC[
'ilDB'];
263 $query =
'SELECT * FROM event_items ei ' .
264 'JOIN tree ON item_id = child ' .
265 'WHERE event_id = ' .
$ilDB->quote($a_sess_id,
'integer') .
' ' .
269 $items[] =
$row->item_id;
271 return $items ? $items : array();
getAppointmentInfo()
get appointment info
__construct()
Constructor.
getProperties()
get properties
getCommandLink($a_cmd)
Get command link url.
enableSubstitutions($a_status)
Enable substitutions.
static _getInstanceByObjectType($a_type)
Singleton: use this method to get an 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.
foreach($_POST as $key=> $value) $res
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 _getCommands()
get list of command/permission combinations
static getInstance($a_ref_id)
Get instance.
static lookupAssignedMaterials($a_sess_id)
Get assigned items of event.
static _lookupAppointment($a_obj_id)
lookup appointment