ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilObjAdministrativeNotificationAccess.php
Go to the documentation of this file.
1
<?php
2
7
class
ilObjAdministrativeNotificationAccess
extends
ilObjectAccess
8
{
9
13
private
$http
;
17
private
$rbacsystem
;
18
22
public
function
__construct
()
23
{
24
global
$DIC
;
25
$this->rbacsystem = $DIC->rbac()->system();
26
$this->
http
= $DIC->http();
27
}
28
33
public
function
checkAccessAndThrowException
(
string
$permission) : void
34
{
35
if
(!$this->
hasUserPermissionTo
($permission)) {
36
throw
new
ilException
(
'Permission denied'
);
37
}
38
}
39
44
public
function
hasUserPermissionTo
(
string
$permission) : bool
45
{
46
return
(
bool
) $this->rbacsystem->checkAccess($permission, $this->
http
->request()->getQueryParams()[
'ref_id'
]);
47
}
48
}
ilException
ilObjectAccess
ILIAS\FileDelivery\http
static http()
Fetches the global http state from ILIAS.
Definition:
HttpServiceAware.php:36
ilObjAdministrativeNotificationAccess\__construct
__construct()
ilObjAdministrativeNotificationAccess constructor.
Definition:
class.ilObjAdministrativeNotificationAccess.php:22
$DIC
global $DIC
Definition:
goto.php:24
ilObjAdministrativeNotificationAccess\hasUserPermissionTo
hasUserPermissionTo(string $permission)
Definition:
class.ilObjAdministrativeNotificationAccess.php:44
ilObjAdministrativeNotificationAccess\checkAccessAndThrowException
checkAccessAndThrowException(string $permission)
Definition:
class.ilObjAdministrativeNotificationAccess.php:33
ilObjAdministrativeNotificationAccess\$rbacsystem
$rbacsystem
Definition:
class.ilObjAdministrativeNotificationAccess.php:17
ilObjAdministrativeNotificationAccess
Class ilObjAdministrativeNotificationAccess.
Definition:
class.ilObjAdministrativeNotificationAccess.php:7
ilObjAdministrativeNotificationAccess\$http
$http
Definition:
class.ilObjAdministrativeNotificationAccess.php:13
Services
AdministrativeNotification
classes
class.ilObjAdministrativeNotificationAccess.php
Generated on Sat Apr 5 2025 21:01:13 for ILIAS by
1.8.13 (using
Doxyfile
)