ILIAS
release_8 Revision v8.19
◀ 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
n
o
p
r
s
t
u
v
w
x
+
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
j
l
m
p
s
t
u
+
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
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilObjAdministrativeNotificationAccess.php
Go to the documentation of this file.
1
<?php
2
23
class
ilObjAdministrativeNotificationAccess
extends
ilObjectAccess
24
{
25
private
ilRbacSystem
$rbacsystem
;
26
27
protected
?
int
$ref_id
;
28
32
public
function
__construct
()
33
{
34
global
$DIC
;
35
$this->rbacsystem = $DIC->rbac()->system();
36
$this->ref_id = $DIC->http()->wrapper()->query()->has(
'ref_id'
)
37
? $DIC->http()->wrapper()->query()->retrieve(
'ref_id'
, $DIC->refinery()->kindlyTo()->int())
38
: null;
39
}
40
44
public
function
checkAccessAndThrowException
(
string
$permission): void
45
{
46
if
(!$this->
hasUserPermissionTo
($permission)) {
47
throw
new
ilException
(
'Permission denied'
);
48
}
49
}
50
51
public
function
hasUserPermissionTo
(
string
$permission): bool
52
{
53
return
$this->rbacsystem->checkAccess($permission, $this->ref_id);
54
}
55
}
ilObjAdministrativeNotificationAccess\$rbacsystem
ilRbacSystem $rbacsystem
Definition:
class.ilObjAdministrativeNotificationAccess.php:25
ilException
ilObjectAccess
ilObjAdministrativeNotificationAccess\$ref_id
int $ref_id
Definition:
class.ilObjAdministrativeNotificationAccess.php:27
ilRbacSystem
$DIC
global $DIC
Definition:
feed.php:28
ilObjAdministrativeNotificationAccess\__construct
__construct()
ilObjAdministrativeNotificationAccess constructor.
Definition:
class.ilObjAdministrativeNotificationAccess.php:32
ilObjAdministrativeNotificationAccess\hasUserPermissionTo
hasUserPermissionTo(string $permission)
Definition:
class.ilObjAdministrativeNotificationAccess.php:51
ilObjAdministrativeNotificationAccess\checkAccessAndThrowException
checkAccessAndThrowException(string $permission)
Definition:
class.ilObjAdministrativeNotificationAccess.php:44
ilObjAdministrativeNotificationAccess
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilObjAdministrativeNotificationAccess.php:23
Services
AdministrativeNotification
classes
class.ilObjAdministrativeNotificationAccess.php
Generated on Fri Apr 4 2025 22:02:07 for ILIAS by
1.8.13 (using
Doxyfile
)