19declare(strict_types=1);
27use ILIAS\GlobalScreen_\UI\Translator;
39 $this->translator =
new Translator(
$dic);
44 return $this->id_factory->identifier($group->value);
50 $this->item_factory->group(
52 $this->translator->translate(
'legal_information')
54 $this->item_factory->group(
56 $this->translator->translate(
'support')
58 $this->item_factory->group(
60 $this->translator->translate(
'services')
67 $request = $this->dic->http()->request()->getUri();
68 return new URI($request->getScheme() .
'://' . $request->getHost() .
'/' . ltrim($from_path,
'/'));
78 $imprint_title = $this->dic->language()->txt(
"imprint");
80 $entries[] = $this->item_factory
82 $this->id_factory->identifier(
'imprint'),
85 ->withAvailableCallable(
95 $entries[] = $this->item_factory
97 $this->id_factory->identifier(
'system_support'),
100 ->withAvailableCallable(
101 fn() => !empty($system_support_url)
103 ->withAction($this->
buildURI($system_support_url))
108 $translation_title = $this->dic->language()->txt(
'translation');
109 $entries[] = $this->item_factory
111 $this->id_factory->identifier(
'translation'),
114 ->withAvailableCallable(
117 ->withAction($this->
buildURI($translation_url))
118 ->withOpenInNewViewport(
true)
128 $text =
"powered by ILIAS (v{$ilias_version})";
131 $this->item_factory->text(
132 $this->id_factory->identifier(
'ilias_version'),
140 $permanant_link = PageContentProvider::getPermaLink();
141 if (empty($permanant_link)) {
145 return $this->item_factory->permanent(
146 $this->id_factory->identifier(
'permanent'),
147 $this->translator->translate(
'permanent'),
148 new URI($permanant_link)
Customizing of pimple-DIC for ILIAS.
The scope of this class is split ilias-conform URI's into components.
static _getStaticLink(?int $a_ref_id, string $a_type='', bool $a_fallback_goto=true, string $append="")
static _checkTranslate()
Permission check for translations.
static _isPageTranslation()
Check if the current request is a page translation.
static _getTranslationLink()
Get the link to translate the current page.
Interface IdentificationInterface.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc