ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\LegalDocuments\Condition\Role Class Reference
+ Inheritance diagram for ILIAS\LegalDocuments\Condition\Role:
+ Collaboration diagram for ILIAS\LegalDocuments\Condition\Role:

Public Member Functions

 __construct (private readonly CriterionContent $criterion, private readonly RoleDefinition $definition, private readonly UIFactory $create, private readonly ilRbacReview $review)
 
 asComponent ()
 
 eval (ilObjUser $user)
 
 definition ()
 
 knownToNeverMatchWith (Condition $other)
 
 asComponent ()
 
 eval (ilObjUser $user)
 
 knownToNeverMatchWith (Condition $other)
 
 definition ()
 

Detailed Description

Definition at line 32 of file Role.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\LegalDocuments\Condition\Role::__construct ( private readonly CriterionContent  $criterion,
private readonly RoleDefinition  $definition,
private readonly UIFactory  $create,
private readonly ilRbacReview  $review 
)

Definition at line 34 of file Role.php.

39 {
40 }

Member Function Documentation

◆ asComponent()

ILIAS\LegalDocuments\Condition\Role::asComponent ( )

Implements ILIAS\LegalDocuments\Condition.

Definition at line 42 of file Role.php.

42 : 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 }

References ILIAS\LegalDocuments\Condition\Role\definition().

+ Here is the call graph for this function:

◆ definition()

ILIAS\LegalDocuments\Condition\Role::definition ( )

Implements ILIAS\LegalDocuments\Condition.

Definition at line 56 of file Role.php.

56 : ConditionDefinition
57 {
58 return $this->definition;
59 }

Referenced by ILIAS\LegalDocuments\Condition\Role\asComponent().

+ Here is the caller graph for this function:

◆ eval()

ILIAS\LegalDocuments\Condition\Role::eval ( ilObjUser  $user)

Implements ILIAS\LegalDocuments\Condition.

Definition at line 51 of file Role.php.

51 : bool
52 {
53 return $this->review->isAssigned($user->getId(), (int) $this->criterion->arguments()['role_id']);
54 }

References ilObject\getId().

+ Here is the call graph for this function:

◆ knownToNeverMatchWith()

ILIAS\LegalDocuments\Condition\Role::knownToNeverMatchWith ( Condition  $other)

Implements ILIAS\LegalDocuments\Condition.

Definition at line 61 of file Role.php.

61 : bool
62 {
63 return false;
64 }

The documentation for this class was generated from the following file: