◆ __construct()
ilObjSessionAccess::__construct |
( |
| ) |
|
◆ _checkAccess()
ilObjSessionAccess::_checkAccess |
( |
|
$a_cmd, |
|
|
|
$a_permission, |
|
|
|
$a_ref_id, |
|
|
|
$a_obj_id, |
|
|
|
$a_user_id = "" |
|
) |
| |
Definition at line 56 of file class.ilObjSessionAccess.php.
References $DIC, $user, ilWaitingList\_isOnList(), ilParticipants\_isSubscriber(), ANONYMOUS_USER_ID, ilObject\getId(), and isRegistrationLimitExceeded().
63 $a_user_id = $ilUser->
getId();
69 if (!self::_lookupRegistration($a_obj_id)) {
72 if ($ilUser->isAnonymous()) {
75 if (self::_lookupRegistered($a_user_id, $a_obj_id)) {
91 return self::_lookupRegistered($a_user_id, $a_obj_id);
static _isSubscriber(int $a_obj_id, int $a_usr_id)
isRegistrationLimitExceeded(int $ref_id, int $obj_id)
static _isOnList(int $a_usr_id, int $a_obj_id)
◆ _checkGoto()
static ilObjSessionAccess::_checkGoto |
( |
|
$a_target | ) |
|
|
static |
Definition at line 111 of file class.ilObjSessionAccess.php.
References $DIC.
115 $ilAccess = $DIC->access();
117 $t_arr = explode(
"_", $a_target);
119 if ($t_arr[0] !=
"sess" || ((
int) $t_arr[1]) <= 0) {
123 if ($ilAccess->checkAccess(
"read",
"", (
int) $t_arr[1]) ||
124 $ilAccess->checkAccess(
"visible",
"", (
int) $t_arr[1])) {
◆ _getCommands()
static ilObjSessionAccess::_getCommands |
( |
| ) |
|
|
static |
Definition at line 42 of file class.ilObjSessionAccess.php.
Referenced by ilObjSessionListGUI\init().
45 array(
"permission" =>
"read",
"cmd" =>
"infoScreen",
"lang_var" =>
"info_short",
"default" =>
true),
46 array(
"permission" =>
"read",
"cmd" =>
"register",
"lang_var" =>
"join_session"),
47 array(
"permission" =>
"read",
"cmd" =>
"unregister",
"lang_var" =>
"event_unregister"),
48 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"settings"),
49 array(
"permission" =>
"manage_materials",
"cmd" =>
"materials",
"lang_var" =>
"crs_objective_add_mat"),
50 array(
'permission' =>
'manage_members',
'cmd' =>
'members',
'lang_var' =>
'event_edit_members')
◆ _lookupRegistered()
static ilObjSessionAccess::_lookupRegistered |
( |
int |
$a_usr_id, |
|
|
int |
$a_obj_id |
|
) |
| |
|
static |
Definition at line 148 of file class.ilObjSessionAccess.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
152 $ilDB = $DIC->database();
153 $ilUser = $DIC->user();
155 if (isset(self::$registered[$a_usr_id][$a_obj_id])) {
156 return (
bool) self::$registered[$a_usr_id][$a_obj_id];
159 $query =
"SELECT event_id, registered FROM event_participants WHERE usr_id = " .
$ilDB->quote($ilUser->getId(),
'integer');
161 self::$registered[$a_usr_id] = [];
163 self::$registered[$a_usr_id][$row->event_id] = (bool) $row->registered;
165 return (
bool) (self::$registered[$a_usr_id][$a_obj_id] ??
false);
◆ _lookupRegistration()
static ilObjSessionAccess::_lookupRegistration |
( |
int |
$a_obj_id | ) |
|
|
static |
Definition at line 130 of file class.ilObjSessionAccess.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
134 $ilDB = $DIC->database();
136 if (!is_null(self::$registrations)) {
137 return (
bool) self::$registrations[$a_obj_id];
140 $query =
"SELECT registration,obj_id FROM event ";
143 self::$registrations[$row->obj_id] = (bool) $row->registration;
145 return (
bool) self::$registrations[$a_obj_id];
◆ _preloadData()
static ilObjSessionAccess::_preloadData |
( |
|
$a_obj_ids, |
|
|
|
$a_ref_ids |
|
) |
| |
|
static |
Definition at line 168 of file class.ilObjSessionAccess.php.
References $DIC.
172 self::$booking_repo = $DIC->bookingManager()
175 ->reservationWithContextObjCache($a_obj_ids);
◆ getBookingInfoRepo()
static ilObjSessionAccess::getBookingInfoRepo |
( |
| ) |
|
|
static |
Definition at line 178 of file class.ilObjSessionAccess.php.
References null.
Referenced by ilObjSessionListGUI\getProperties().
180 if (self::$booking_repo instanceof \
ILIAS\BookingManager\Reservations\ReservationDBRepository) {
181 return self::$booking_repo;
Interface Observer Contains several chained tasks and infos about them.
Repo class for reservations Acts on tables booking_reservation (rw), booking_reservation_group (rw) a...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ isRegistrationLimitExceeded()
ilObjSessionAccess::isRegistrationLimitExceeded |
( |
int |
$ref_id, |
|
|
int |
$obj_id |
|
) |
| |
◆ $booking_repo
ILIAS BookingManager Reservations ReservationDBRepository ilObjSessionAccess::$booking_repo = null |
|
staticprotected |
◆ $registered
array ilObjSessionAccess::$registered = null |
|
staticprotected |
◆ $registrations
array ilObjSessionAccess::$registrations = null |
|
staticprotected |
◆ $user
The documentation for this class was generated from the following file: