ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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)
 

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.

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

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  }
+ 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.

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

56  : ConditionDefinition
57  {
58  return $this->definition;
59  }
+ 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.

References ilObject\getId(), and ILIAS\Repository\int().

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