19declare(strict_types=1);
25use ILIAS\GlobalScreen\Collector\Renderer\ComponentDecoratorApplierTrait;
26use ILIAS\GlobalScreen\Collector\Renderer\isSupportedTrait;
39 use ComponentDecoratorApplierTrait;
53 $this->
ui = $DIC->ui();
62 if (strpos($uri_string,
'http') === 0) {
63 return new URI($uri_string);
66 return new URI(rtrim(ILIAS_HTTP_PATH,
"/") .
"/" . ltrim($uri_string,
"./"));
76 return $this->applyDecorator($component, $item);
87 if ($item instanceof
hasSymbol && $item->hasSymbol()) {
88 return $this->applySymbolDecorator($item->getSymbol(), $item);
91 $abbr = strtoupper(substr($item->getTitle(), 0, 1));
93 $abbr = strtoupper(substr(uniqid(
'',
true), -1));
96 return $this->
ui->factory()->symbol()->icon()->standard($abbr, $abbr,
'small',
true)->withAbbreviation($abbr);
An exception for terminatinating execution or to throw for unit testing.
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.