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(
94 $entries[] = $this->item_factory
96 $this->id_factory->identifier(
'system_support'),
99 ->withAction($system_support_url)
105 $translation_title = $this->dic->language()->txt(
'translation');
106 $entries[] = $this->item_factory
108 $this->id_factory->identifier(
'translation'),
111 ->withAvailableCallable(
114 ->withAction($this->
buildURI($translation_url))
115 ->withOpenInNewViewport(
true)
125 $text =
"powered by ILIAS (v{$ilias_version})";
128 $this->item_factory->text(
129 $this->id_factory->identifier(
'ilias_version'),
137 $permanant_link = PageContentProvider::getPermaLink();
138 if (empty($permanant_link)) {
142 return $this->item_factory->permanent(
143 $this->id_factory->identifier(
'permanent'),
144 $this->translator->translate(
'permanent'),
145 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