19declare(strict_types=1);
25use ILIAS\GlobalScreen\Collector\Renderer\DecoratorApplierTrait;
26use ILIAS\GlobalScreen\Collector\Renderer\isSupportedTrait;
40 use DecoratorApplierTrait;
51 $this->
ui = $DIC->ui();
60 if (str_starts_with($uri_string,
'http')) {
61 return new URI($uri_string);
64 return new URI(rtrim(ILIAS_HTTP_PATH,
"/") .
"/" . ltrim($uri_string,
"./"));
70 $component = $this->applyComponentDecorator($component, $item);
72 return $component->withHelpTopics(...$item->getTopics());
82 if ($item instanceof
hasSymbol && $item->hasSymbol()) {
83 return $this->applySymbolDecorator($item->getSymbol(), $item);
86 $abbr = strtoupper(substr($item->getTitle(), 0, 1));
88 $abbr = strtoupper(substr(uniqid(
'',
true), -1));
91 return $this->
ui->factory()->symbol()->icon()->standard($abbr, $abbr,
'small',
true)->withAbbreviation($abbr);
Provides fluid interface to RBAC services.
The scope of this class is split ilias-conform URI's into components.
A component is the most general form of an entity in the UI.