This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
More...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
- Author
- Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
- Version
- $Id$
Definition at line 29 of file class.ilObjSessionAccess.php.
◆ __construct()
| ilObjSessionAccess::__construct |
( |
| ) |
|
◆ _checkAccess()
| ilObjSessionAccess::_checkAccess |
( |
|
$a_cmd, |
|
|
|
$a_permission, |
|
|
|
$a_ref_id, |
|
|
|
$a_obj_id, |
|
|
|
$a_user_id = "" |
|
) |
| |
Definition at line 57 of file class.ilObjSessionAccess.php.
References $DIC, $user, ilWaitingList\_isOnList(), ilParticipants\_isSubscriber(), ANONYMOUS_USER_ID, ilObject\getId(), and isRegistrationLimitExceeded().
64 $a_user_id = $ilUser->
getId();
70 if (!self::_lookupRegistration($a_obj_id)) {
73 if ($ilUser->isAnonymous()) {
76 if (self::_lookupRegistered($a_user_id, $a_obj_id)) {
92 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 112 of file class.ilObjSessionAccess.php.
References $DIC.
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])) {
◆ _getCommands()
| static ilObjSessionAccess::_getCommands |
( |
| ) |
|
|
static |
Definition at line 43 of file class.ilObjSessionAccess.php.
Referenced by ilObjSessionListGUI\init().
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')
◆ _lookupRegistered()
| static ilObjSessionAccess::_lookupRegistered |
( |
int |
$a_usr_id, |
|
|
int |
$a_obj_id |
|
) |
| |
|
static |
Definition at line 149 of file class.ilObjSessionAccess.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
153 $ilDB = $DIC->database();
154 $ilUser = $DIC->user();
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);
◆ _lookupRegistration()
| static ilObjSessionAccess::_lookupRegistration |
( |
int |
$a_obj_id | ) |
|
|
static |
Definition at line 131 of file class.ilObjSessionAccess.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
135 $ilDB = $DIC->database();
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];
◆ _preloadData()
| static ilObjSessionAccess::_preloadData |
( |
|
$a_obj_ids, |
|
|
|
$a_ref_ids |
|
) |
| |
|
static |
Definition at line 169 of file class.ilObjSessionAccess.php.
References $DIC.
173 self::$booking_repo = $DIC->bookingManager()
176 ->reservationWithContextObjCache($a_obj_ids);
◆ getBookingInfoRepo()
| static ilObjSessionAccess::getBookingInfoRepo |
( |
| ) |
|
|
static |
Definition at line 179 of file class.ilObjSessionAccess.php.
Referenced by ilObjSessionListGUI\getProperties().
181 if (self::$booking_repo instanceof \
ILIAS\BookingManager\Reservations\ReservationDBRepository) {
182 return self::$booking_repo;
Class ChatMainBarProvider .
Repo class for reservations Acts on tables booking_reservation (rw), booking_reservation_group (rw) a...
◆ 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: