ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
Role.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\LegalDocuments\Condition
;
22
23
use
ILIAS\LegalDocuments\Condition
;
24
use
ILIAS\LegalDocuments\ConditionDefinition
;
25
use
ILIAS\LegalDocuments\Condition\Definition\RoleDefinition
;
26
use
ILIAS\LegalDocuments\Value\CriterionContent
;
27
use
ILIAS\UI\Component\Component
;
28
use
ilObjUser
;
29
use
ilRbacReview
;
30
use
ILIAS\UI\Factory
as
UIFactory
;
31
32
class
Role
implements
Condition
33
{
34
public
function
__construct
(
35
private
readonly
CriterionContent
$criterion,
36
private
readonly
RoleDefinition
$definition,
37
private
readonly
UIFactory
$create,
38
private
readonly
ilRbacReview
$review
39
) {
40
}
41
42
public
function
asComponent
():
Component
43
{
44
return
$this->create->legacy()->content(sprintf(
45
'<div><b>%s</b><br/>%s</div>'
,
46
$this->
definition
->translatedType(),
47
$this->
definition
->translatedRole((
int
) $this->criterion->arguments()[
'role_id'
])
48
));
49
}
50
51
public
function
eval
(
ilObjUser
$user): bool
52
{
53
return
$this->review->isAssigned($user->
getId
(), (
int
) $this->criterion->arguments()[
'role_id'
]);
54
}
55
56
public
function
definition
():
ConditionDefinition
57
{
58
return
$this->definition;
59
}
60
61
public
function
knownToNeverMatchWith
(
Condition
$other): bool
62
{
63
return
false
;
64
}
65
}
ILIAS\LegalDocuments\Condition\Role\knownToNeverMatchWith
knownToNeverMatchWith(Condition $other)
Definition:
Role.php:61
ConditionDefinition
ILIAS\LegalDocuments\Condition\Role\asComponent
asComponent()
Definition:
Role.php:42
Factory
ILIAS\LegalDocuments\ConditionDefinition
Definition:
ConditionDefinition.php:26
ILIAS\UI\Component
ILIAS\LegalDocuments\Condition\Role\eval
eval(ilObjUser $user)
Definition:
Role.php:51
ILIAS\LegalDocuments\Condition\Definition\RoleDefinition
Definition:
RoleDefinition.php:35
Component
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilRbacReview
ILIAS\LegalDocuments\Condition\Role\__construct
__construct(private readonly CriterionContent $criterion, private readonly RoleDefinition $definition, private readonly UIFactory $create, private readonly ilRbacReview $review)
Definition:
Role.php:34
ILIAS\LegalDocuments\Condition\Role\definition
definition()
Definition:
Role.php:56
CriterionContent
ilObjUser
ilObject\getId
getId()
Definition:
class.ilObject.php:294
ILIAS\LegalDocuments\Condition\Role
Definition:
Role.php:32
ILIAS\LegalDocuments\Condition
Definition:
Condition.php:26
ILIAS\LegalDocuments\Value\CriterionContent
Definition:
CriterionContent.php:23
ILIAS\LegalDocuments\Condition
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
RoleDefinition
components
ILIAS
LegalDocuments
classes
Condition
Role.php
Generated on Tue Apr 8 2025 23:03:40 for ILIAS by
1.8.13 (using
Doxyfile
)