19declare(strict_types=1);
25use ILIAS\GlobalScreen\Collector\Renderer\ComponentDecoratorApplierTrait;
26use ILIAS\GlobalScreen\Collector\Renderer\isSupportedTrait;
39 use ComponentDecoratorApplierTrait;
50 $this->
ui = $DIC->ui();
59 if (strpos($uri_string,
'http') === 0) {
60 return new URI($uri_string);
63 return new URI(rtrim(ILIAS_HTTP_PATH,
"/") .
"/" . ltrim($uri_string,
"./"));
73 return $this->applyDecorator($component, $item);
84 if ($item instanceof
hasSymbol && $item->hasSymbol()) {
85 return $this->applySymbolDecorator($item->getSymbol(), $item);
88 $abbr = strtoupper(substr($item->getTitle(), 0, 1));
90 $abbr = strtoupper(substr(uniqid(
'',
true), -1));
93 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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...