/** * get properties * * @access public * @param * @return */ public function getProperties() { $app_info = $this->getAppointmentInfo(); /* $props[] = array( 'alert' => false, 'property' => $this->lng->txt('event_date'), 'value' => ilSessionAppointment::_appointmentToString($app_info['start'],$app_info['end'],$app_info['fullday'])); */ if ($this->getDetailsLevel() == ilObjectListGUI::DETAILS_MINIMAL) { if ($items = self::lookupAssignedMaterials($this->obj_id)) { $props[] = array('alert' => false, 'property' => $this->lng->txt('event_ass_materials_prop'), 'value' => count($items)); } } if ($this->getDetailsLevel() == ilObjectListGUI::DETAILS_ALL) { include_once './Modules/Session/classes/class.ilObjSession.php'; $session_data = ilObjSession::lookupSession($this->obj_id); if (strlen($session_data['location'])) { $props[] = array('alert' => false, 'property' => $this->lng->txt('event_location'), 'value' => $session_data['location']); } if (strlen($session_data['details'])) { $props[] = array('alert' => false, 'property' => $this->lng->txt('event_details_workflow'), 'value' => nl2br($session_data['details']), 'newline' => true); } $has_new_line = false; if (strlen($session_data['name'])) { $props[] = array('alert' => false, 'property' => $this->lng->txt('event_lecturer'), 'value' => $session_data['name'], 'newline' => true); $has_new_line = true; } if (strlen($session_data['email'])) { $props[] = array('alert' => false, 'property' => $this->lng->txt('tutor_email'), 'value' => $session_data['email'], 'newline' => $has_new_line ? false : true); $has_new_line = true; } if (strlen($session_data['phone'])) { $props[] = array('alert' => false, 'property' => $this->lng->txt('tutor_phone'), 'value' => $session_data['phone'], 'newline' => $has_new_line ? false : true); $has_new_line = true; } } return $props; }