24include_once(
'Services/Object/classes/class.ilObjectListGUI.php');
 
   51        $lng->loadLanguageModule(
'crs');
 
   52        $lng->loadLanguageModule(
'sess');
 
   65        $this->delete_enabled = 
true;
 
   66        $this->cut_enabled = 
true;
 
   67        $this->copy_enabled = 
true;
 
   68        $this->subscribe_enabled = 
true;
 
   69        $this->link_enabled = 
true;
 
   70        $this->info_screen_enabled = 
true;
 
   71        $this->subitems_enabled = 
true;
 
   73        $this->gui_class_name = 
"ilobjsessiongui";
 
   79        include_once(
'./Modules/Session/classes/class.ilObjSessionAccess.php');
 
   95        $title = strlen($this->title) ? (
': ' . $this->title) : 
'';
 
  115        $ilCtrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", $this->ref_id);
 
  116        $cmd_link = 
$ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
 
  117        $ilCtrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", 
$_GET[
"ref_id"]);
 
  132        if ($a_cmd != 
'register' and $a_cmd != 
'unregister') {
 
  135        return parent::checkCommandAccess($a_permission, $a_cmd, $a_ref_id, 
$a_type, $a_obj_id);
 
  156        include_once 
'./Modules/Session/classes/class.ilObjSession.php';
 
  158        include_once 
'./Modules/Session/classes/class.ilSessionParticipants.php';
 
  161        if ($session_data->isRegistrationUserLimitEnabled()) {
 
  162            if ($part->getCountMembers() <= $session_data->getRegistrationMaxUsers()) {
 
  165                    'property' => $this->lng->txt(
'sess_list_reg_limit_places'),
 
  168                        $session_data->getRegistrationMaxUsers() - $part->getCountMembers()
 
  175            if ($items = self::lookupAssignedMaterials($this->obj_id)) {
 
  178                    'property' => $this->lng->txt(
'event_ass_materials_prop'),
 
  179                    'value' => count($items)
 
  184            include_once 
'./Modules/Session/classes/class.ilObjSession.php';
 
  187            if (strlen($session_data[
'location'])) {
 
  190                    'property' => $this->lng->txt(
'event_location'),
 
  191                    'value' => $session_data[
'location']
 
  194            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'])) {
 
  206                    'property' => $this->lng->txt(
'event_lecturer'),
 
  207                    'value' => $session_data[
'name'],
 
  210                $has_new_line = 
true;
 
  212            if (strlen($session_data[
'email'])) {
 
  215                    'property' => $this->lng->txt(
'tutor_email'),
 
  216                    'value' => $session_data[
'email'],
 
  217                    'newline' => $has_new_line ? 
false : 
true 
  219                $has_new_line = 
true;
 
  221            if (strlen($session_data[
'phone'])) {
 
  224                    'property' => $this->lng->txt(
'tutor_phone'),
 
  225                    'value' => $session_data[
'phone'],
 
  226                    'newline' => $has_new_line ? 
false : 
true 
  228                $has_new_line = 
true;
 
  235        $props = $book_info->appendProperties($this->obj_id, $props);
 
  250        if (isset($this->app_info[$this->obj_id])) {
 
  253        include_once(
'./Modules/Session/classes/class.ilSessionAppointment.php');
 
  268        $query = 
'SELECT * FROM event_items ei ' .
 
  269                'JOIN tree ON item_id = child ' .
 
  270                'WHERE event_id = ' . 
$ilDB->quote($a_sess_id, 
'integer') . 
' ' .
 
  274            $items[] = $row->item_id;
 
  276        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.
Get list item properties for booking info.
static _getCommands()
get list of command/permission combinations
static getBookingInfoRepo()
Get booking info repo.
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.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
foreach($_POST as $key=> $value) $res