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->info_screen_enabled =
true;
69 $this->subitems_enabled =
true;
71 $this->gui_class_name =
"ilobjsessiongui";
74 include_once(
'./Modules/Session/classes/class.ilObjSessionAccess.php');
90 $title = strlen($this->title) ? (
': '.$this->title) :
'';
108 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
109 $cmd_link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
110 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
125 if($a_cmd !=
'register' and $a_cmd !=
'unregister')
129 return parent::checkCommandAccess($a_permission,$a_cmd,$a_ref_id,
$a_type,$a_obj_id);
150 include_once
'./Modules/Session/classes/class.ilObjSession.php';
152 include_once
'./Modules/Session/classes/class.ilSessionParticipants.php';
155 if($session_data->isRegistrationUserLimitEnabled()) {
156 if ($part->getCountMembers() <= $session_data->getRegistrationMaxUsers()) {
159 'property' => $this->lng->txt(
'sess_list_reg_limit_places'),
162 $session_data->getRegistrationMaxUsers() - $part->getCountMembers()
170 if($items = self::lookupAssignedMaterials($this->obj_id))
174 'property' => $this->lng->txt(
'event_ass_materials_prop'),
175 'value' => count($items)
182 include_once
'./Modules/Session/classes/class.ilObjSession.php';
185 if(strlen($session_data[
'location']))
189 'property' => $this->lng->txt(
'event_location'),
190 'value' => $session_data[
'location']
193 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']))
207 'property' => $this->lng->txt(
'event_lecturer'),
208 'value' => $session_data[
'name'],
211 $has_new_line =
true;
213 if(strlen($session_data[
'email']))
217 'property' => $this->lng->txt(
'tutor_email'),
218 'value' => $session_data[
'email'],
219 'newline' => $has_new_line ? false : true
221 $has_new_line =
true;
223 if(strlen($session_data[
'phone']))
227 'property' => $this->lng->txt(
'tutor_phone'),
228 'value' => $session_data[
'phone'],
229 'newline' => $has_new_line ? false : true
231 $has_new_line =
true;
248 if(isset($this->app_info[$this->obj_id]))
252 include_once(
'./Modules/Session/classes/class.ilSessionAppointment.php');
265 $query =
'SELECT * FROM event_items ei '.
266 'JOIN tree ON item_id = child '.
267 'WHERE event_id = '.$ilDB->quote($a_sess_id,
'integer').
' '.
272 $items[] =
$row->item_id;
274 return $items ? $items :
array();
getAppointmentInfo()
get appointment info
__construct()
Constructor.
getProperties()
get properties
getCommandLink($a_cmd)
Get command link url.
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 _getCommands()
get list of command/permission combinations
Create styles array
The data for the language used.
static lookupAssignedMaterials($a_sess_id)
Get assigned items of event.
static _lookupAppointment($a_obj_id)
lookup appointment