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 return new URI(rtrim(ILIAS_HTTP_PATH,
'/') .
'/' . ltrim($from_path,
'/'));
77 $imprint_title = $this->dic->language()->txt(
"imprint");
79 $entries[] = $this->item_factory
81 $this->id_factory->identifier(
'imprint'),
84 ->withAvailableCallable(
93 $entries[] = $this->item_factory
95 $this->id_factory->identifier(
'system_support'),
98 ->withAction($system_support_url)
104 $translation_title = $this->dic->language()->txt(
'translation');
105 $entries[] = $this->item_factory
107 $this->id_factory->identifier(
'translation'),
110 ->withAvailableCallable(
113 ->withAction($this->
buildURI($translation_url))
114 ->withOpenInNewViewport(
true)
124 $text =
"powered by ILIAS (v{$ilias_version})";
127 $this->item_factory->text(
128 $this->id_factory->identifier(
'ilias_version'),
136 $permanant_link = PageContentProvider::getPermaLink();
137 if (empty($permanant_link)) {
141 return $this->item_factory->permanent(
142 $this->id_factory->identifier(
'permanent'),
143 $this->translator->translate(
'permanent'),
144 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