24include_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";
 
   77        include_once(
'./Modules/Session/classes/class.ilObjSessionAccess.php');
 
  111        $ilCtrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", $this->ref_id);
 
  112        $cmd_link = 
$ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
 
  113        $ilCtrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", 
$_GET[
"ref_id"]);
 
  128        if ($a_cmd != 
'register' and $a_cmd != 
'unregister') {
 
  131        return parent::checkCommandAccess($a_permission, $a_cmd, $a_ref_id, 
$a_type, $a_obj_id);
 
  152        include_once 
'./Modules/Session/classes/class.ilObjSession.php';
 
  154        include_once 
'./Modules/Session/classes/class.ilSessionParticipants.php';
 
  157        if ($session_data->isRegistrationUserLimitEnabled()) {
 
  158            if ($part->getCountMembers() <= $session_data->getRegistrationMaxUsers()) {
 
  161                    'property' => $this->lng->txt(
'sess_list_reg_limit_places'),
 
  164                        $session_data->getRegistrationMaxUsers() - $part->getCountMembers()
 
  171            if ($items = self::lookupAssignedMaterials($this->obj_id)) {
 
  174                    'property'  => $this->lng->txt(
'event_ass_materials_prop'),
 
  175                    'value'             => count($items)
 
  180            include_once 
'./Modules/Session/classes/class.ilObjSession.php';
 
  183            if (strlen($session_data[
'location'])) {
 
  186                    'property'  => $this->lng->txt(
'event_location'),
 
  187                    'value'             => $session_data[
'location']
 
  190            if (strlen($session_data[
'details'])) {
 
  193                    'property'  => $this->lng->txt(
'event_details_workflow'),
 
  194                    'value'             => nl2br($session_data[
'details']),
 
  198            $has_new_line = 
false;
 
  199            if (strlen($session_data[
'name'])) {
 
  202                    'property'  => $this->lng->txt(
'event_lecturer'),
 
  203                    'value'             => $session_data[
'name'],
 
  206                $has_new_line = 
true;
 
  208            if (strlen($session_data[
'email'])) {
 
  211                    'property'  => $this->lng->txt(
'tutor_email'),
 
  212                    'value'             => $session_data[
'email'],
 
  213                    'newline'   => $has_new_line ? 
false : 
true 
  215                $has_new_line = 
true;
 
  217            if (strlen($session_data[
'phone'])) {
 
  220                    'property'  => $this->lng->txt(
'tutor_phone'),
 
  221                    'value'             => $session_data[
'phone'],
 
  222                    'newline'   => $has_new_line ? 
false : 
true 
  224                $has_new_line = 
true;
 
  241        if (isset($this->app_info[$this->obj_id])) {
 
  244        include_once(
'./Modules/Session/classes/class.ilSessionAppointment.php');
 
  257        $query = 
'SELECT * FROM event_items ei ' .
 
  258                'JOIN tree ON item_id = child ' .
 
  259                'WHERE event_id = ' . 
$ilDB->quote($a_sess_id, 
'integer') . 
' ' .
 
  263            $items[] = 
$row->item_id;
 
  265        return $items ? $items : array();
 
An exception for terminatinating execution or to throw for unit testing.
static _getInstanceByObjectType($a_type)
Singleton: use this method to get an instance.
static _getCommands()
get list of command/permission combinations
getProperties()
get properties
getTitle()
get title Overwritten since sessions prepend the date of the session to the title
static lookupAssignedMaterials($a_sess_id)
Get assigned items of event.
getCommandLink($a_cmd)
Get command link url.
getAppointmentInfo()
get appointment info
__construct()
Constructor.
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.
enableSubstitutions($a_status)
Enable substitutions.
getDetailsLevel()
Get current details level.
static _lookupAppointment($a_obj_id)
lookup appointment
static _appointmentToString($start, $end, $fulltime)
static getInstance($a_ref_id)
Get instance.
foreach($_POST as $key=> $value) $res