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, $ilUser, $user, ilWaitingList\_isOnList(), ilParticipants\_isSubscriber(), ANONYMOUS_USER_ID, and isRegistrationLimitExceeded().
70 if (!self::_lookupRegistration($a_obj_id)) {
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, $ilUser, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
153 $ilDB = $DIC->database();
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 |
◆ _preloadData()
static ilObjSessionAccess::_preloadData |
( |
|
$a_obj_ids, |
|
|
|
$a_ref_ids |
|
) |
| |
|
static |
Definition at line 169 of file class.ilObjSessionAccess.php.
References Vendor\Package\$f.
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...
◆ getBookingInfoRepo()
static ilObjSessionAccess::getBookingInfoRepo |
( |
| ) |
|
|
static |
◆ isRegistrationLimitExceeded()
ilObjSessionAccess::isRegistrationLimitExceeded |
( |
int |
$ref_id, |
|
|
int |
$obj_id |
|
) |
| |
◆ $booking_repo
◆ $registered
array ilObjSessionAccess::$registered = null |
|
staticprotected |
◆ $registrations
array ilObjSessionAccess::$registrations = null |
|
staticprotected |
◆ $user
The documentation for this class was generated from the following file: