19declare(strict_types=1);
37 private readonly UIFactory $create,
44 return $this->create->legacy()->content(sprintf(
45 '<div><b>%s</b><br/>%s</div>',
47 $this->definition->translatedRole((
int) $this->criterion->arguments()[
'role_id'])
53 return $this->review->isAssigned($user->
getId(), (
int) $this->criterion->arguments()[
'role_id']);
58 return $this->definition;
Builds a Color from either hex- or rgb values.
__construct(private readonly CriterionContent $criterion, private readonly RoleDefinition $definition, private readonly UIFactory $create, private readonly ilRbacReview $review)
knownToNeverMatchWith(Condition $other)
class ilRbacReview Contains Review functions of core Rbac.
A component is the most general form of an entity in the UI.