19 declare(strict_types=1);
35 private readonly
string $id,
47 $this->container->ui(),
48 $this->container->language()
51 $this->container->language()->loadLanguageModule(
'rbac');
52 $this->container->language()->loadLanguageModule(
'meta');
54 $required = fn(array $options):
Constraint => $this->container->refinery()->custom()->constraint(
55 static fn(?
string $s):
bool => $s !==
null && isset($options[$s]),
56 static fn():
string => $ui->txt(
'msg_input_is_required')
60 'usr_global_role' =>
new RoleDefinition($ui, $this->container[
'ilObjDataCache'], $this->container->rbac()->review(), $required),
61 'usr_language' =>
new UserLanguageDefinition($ui, $this->container->language()->getInstalledLanguages(), $required),
72 'html' => fn($x) => $this->container->ui()->factory()->legacy()->content($x->value()),
A constraint encodes some resrtictions on values.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Customizing of pimple-DIC for ILIAS.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
__construct(private readonly string $id, private readonly Container $container)