3declare(strict_types=1);
 
   40        $this->
user = $DIC->user();
 
   46            array(
"permission" => 
"read", 
"cmd" => 
"infoScreen", 
"lang_var" => 
"info_short", 
"default" => 
true),
 
   47            array(
"permission" => 
"read", 
"cmd" => 
"register", 
"lang_var" => 
"join_session"),
 
   48            array(
"permission" => 
"read", 
"cmd" => 
"unregister", 
"lang_var" => 
"event_unregister"),
 
   49            array(
"permission" => 
"write", 
"cmd" => 
"edit", 
"lang_var" => 
"settings"),
 
   50            array(
"permission" => 
"manage_materials", 
"cmd" => 
"materials", 
"lang_var" => 
"crs_objective_add_mat"),
 
   51            array(
'permission' => 
'manage_members', 
'cmd' => 
'members', 
'lang_var' => 
'event_edit_members')
 
   57    public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id = 
""): bool
 
   70                if (!self::_lookupRegistration($a_obj_id)) {
 
   76                if (self::_lookupRegistered($a_user_id, $a_obj_id)) {
 
  102        if (!$session_data->isRegistrationUserLimitEnabled()) {
 
  106        if ($part->getCountMembers() >= $session_data->getRegistrationMaxUsers()) {
 
  116        $ilAccess = 
$DIC->access();
 
  118        $t_arr = explode(
"_", $a_target);
 
  120        if ($t_arr[0] != 
"sess" || ((
int) $t_arr[1]) <= 0) {
 
  124        if ($ilAccess->checkAccess(
"read", 
"", (
int) $t_arr[1]) ||
 
  125            $ilAccess->checkAccess(
"visible", 
"", (
int) $t_arr[1])) {
 
  137        if (!is_null(self::$registrations)) {
 
  138            return (
bool) self::$registrations[$a_obj_id];
 
  141        $query = 
"SELECT registration,obj_id FROM event ";
 
  144            self::$registrations[$row->obj_id] = (bool) $row->registration;
 
  146        return (
bool) self::$registrations[$a_obj_id];
 
  156        if (isset(self::$registered[$a_usr_id][$a_obj_id])) {
 
  157            return (
bool) self::$registered[$a_usr_id][$a_obj_id];
 
  160        $query = 
"SELECT event_id, registered FROM event_participants WHERE usr_id = " . 
$ilDB->quote(
$ilUser->getId(), 
'integer');
 
  162        self::$registered[$a_usr_id] = [];
 
  164            self::$registered[$a_usr_id][$row->event_id] = (bool) $row->registered;
 
  166        return (
bool) (self::$registered[$a_usr_id][$a_obj_id] ?? 
false);
 
  172        self::$booking_repo = 
$f->getRepoWithContextObjCache($a_obj_ids);
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _getCommands()
get commands
 
static getBookingInfoRepo()
 
static _preloadData($a_obj_ids, $a_ref_ids)
 
static _lookupRegistration(int $a_obj_id)
 
_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
 
static _lookupRegistered(int $a_usr_id, int $a_obj_id)
 
static ilBookingReservationDBRepository $booking_repo
 
static array $registrations
 
static _checkGoto($a_target)
 
isRegistrationLimitExceeded(int $ref_id, int $obj_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _isSubscriber(int $a_obj_id, int $a_usr_id)
 
static getInstance(int $a_ref_id)
 
static _isOnList(int $a_usr_id, int $a_obj_id)