24 include_once(
'Services/Object/classes/class.ilObjectListGUI.php');
49 $lng->loadLanguageModule(
'crs');
61 $this->delete_enabled =
true;
62 $this->cut_enabled =
false;
63 $this->copy_enabled =
true;
64 $this->subscribe_enabled =
true;
65 $this->link_enabled =
false;
66 $this->payment_enabled =
false;
67 $this->info_screen_enabled =
true;
68 $this->subitems_enabled =
true;
70 $this->gui_class_name =
"ilobjsessiongui";
73 include_once(
'./Modules/Session/classes/class.ilObjSessionAccess.php');
89 $title = strlen($this->title) ? (
': '.$this->title) :
'';
107 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
108 $cmd_link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
109 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
124 if($a_cmd !=
'register' and $a_cmd !=
'unregister')
152 if($items = self::lookupAssignedMaterials($this->obj_id))
156 'property' => $this->lng->txt(
'event_ass_materials_prop'),
157 'value' => count($items)
164 include_once
'./Modules/Session/classes/class.ilObjSession.php';
167 if(strlen($session_data[
'location']))
171 'property' => $this->lng->txt(
'event_location'),
172 'value' => $session_data[
'location']
175 if(strlen($session_data[
'details']))
179 'property' => $this->lng->txt(
'event_details_workflow'),
180 'value' => nl2br($session_data[
'details']),
184 $has_new_line =
false;
185 if(strlen($session_data[
'name']))
189 'property' => $this->lng->txt(
'event_lecturer'),
190 'value' => $session_data[
'name'],
193 $has_new_line =
true;
195 if(strlen($session_data[
'email']))
199 'property' => $this->lng->txt(
'tutor_email'),
200 'value' => $session_data[
'email'],
201 'newline' => $has_new_line ?
false : true
203 $has_new_line =
true;
205 if(strlen($session_data[
'phone']))
209 'property' => $this->lng->txt(
'tutor_phone'),
210 'value' => $session_data[
'phone'],
211 'newline' => $has_new_line ?
false : true
213 $has_new_line =
true;
230 if(isset($this->app_info[$this->obj_id]))
232 return $this->app_info[$this->obj_id];
234 include_once(
'./Modules/Session/classes/class.ilSessionAppointment.php');
247 $query =
'SELECT * FROM event_items ei '.
248 'JOIN tree ON item_id = child '.
249 'WHERE event_id = '.$ilDB->quote($a_sess_id,
'integer').
' '.
252 while(
$row =
$res->fetchRow(FETCHMODE_OBJECT))
254 $items[] =
$row->item_id;
256 return $items ? $items : array();