19 declare(strict_types=1);
36 private readonly
UI $ui
42 return $this->
ui->create()->legacy(sprintf(
43 '<div><b>%s</b><br/>%s</div>',
45 $this->
definition->translatedLanguage($this->criterion->arguments()[
'lng'])
51 $user_lang = $user->
getLanguage() ?: $this->
ui->getDefaultLanguage();
52 return strtoupper($user_lang) === strtoupper($this->criterion->arguments()[
'lng']);
57 return $this->definition;
62 return $other instanceof (self::class);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
knownToNeverMatchWith(Condition $other)
__construct(private readonly CriterionContent $criterion, private readonly UserLanguageDefinition $definition, private readonly UI $ui)