2 include_once
'./Services/Calendar/interfaces/interface.ilCalendarAppointmentPresentation.php';
3 include_once
'./Services/Calendar/classes/AppointmentPresentation/class.ilAppointmentPresentationGUI.php';
20 $f = $DIC->ui()->factory();
21 $r = $DIC->ui()->renderer();
22 $this->lng->loadLanguageModule(
"sess");
23 $this->lng->loadLanguageModule(
"crs");
28 include_once
"./Modules/Session/classes/class.ilObjSession.php";
33 $ref_id = current($refs);
49 $this->lng->txt(
"cal_sess_info")
55 if ($session_obj->getLocation()) {
60 if ($session_obj->getDetails()) {
64 $str_lecturer = array();
65 if ($session_obj->getName()) {
66 $str_lecturer[] = $session_obj->getName();
69 if ($session_obj->getEmail()) {
70 $str_lecturer[] = $session_obj->getEmail();
72 if ($session_obj->getPhone()) {
73 $str_lecturer[] = $this->lng->txt(
"phone") .
": " . $session_obj->getPhone();
75 if (count($str_lecturer) > 0) {
76 $this->
addInfoProperty($this->lng->txt(
"event_tutor_data"), implode(
"<br>", $str_lecturer));
77 $this->
addListItemProperty($this->lng->txt(
"event_tutor_data"), implode(
", ", $str_lecturer));
81 if (count($eventItems)) {
82 include_once(
'./Services/Link/classes/class.ilLink.php');
84 foreach ($eventItems as $file) {
85 if ($file[
'type'] ==
"file") {
86 $this->has_files =
true;
88 $link =
$f->link()->standard($file[
'title'], $href);
89 require_once(
'Modules/File/classes/class.ilObjFileAccess.php');
91 $link = $link->withOpenInNewViewport(
true);
93 $str[$file[
'title']] =
$r->render($link);
96 if ($this->has_files) {
97 ksort($str, SORT_NATURAL | SORT_FLAG_CASE);
98 $this->
addInfoProperty($this->lng->txt(
"files"), implode(
"<br>", $str));
addInfoProperty($a_txt, $a_val)
Add info property.
collectPropertiesAndActions()
Collect properties and actions.
static _isFileInline($a_file_name)
Returns true, if the specified file shall be displayed inline in the browser.
static getItemsByEvent($a_event_id)
Get session material / event items.
getReadableRefIds($a_obj_id)
Get readable ref ids.
static _getStaticLink( $a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
addEventDescription($a_app)
Add event description.
addEventLocation($a_app)
Add event location.
static makeClickable($a_text, $detectGotoLinks=false)
makeClickable In Texten enthaltene URLs und Mail-Adressen klickbar machen
addMetaData($a_obj_type, $a_obj_id, $a_sub_obj_type=null, $a_sub_obj_id=null)
Add metadata.
addListItemProperty($a_txt, $a_val)
Add list item property.
addAction($a_txt, $a_link)
Add action.
addContainerInfo($a_obj_id)
Add course/group container info.
addInfoSection($a_txt)
Add info section.