ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
LanguageSettingsLegacyProxy.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
31{
32 public function setLanguageDetectionEnabled(bool $enabled): void
33 {
34 $this->settings()->set('lang_detection', $enabled ? '1' : '0');
35 }
36
37 public function isPageTranslationEnabled(string $lang_key): bool
38 {
39 return (bool) $this->settings()->get('lang_translate_' . $lang_key, '0');
40 }
41
42 public function setPageTranslationEnabled(string $lang_key, bool $enabled): void
43 {
44 $this->settings()->set('lang_translate_' . $lang_key, $enabled ? '1' : '0');
45 }
46
47 private function settings(): Setting
48 {
49 global $DIC;
50
51 return $DIC->settings();
52 }
53}
No component offers the settings yet, so they are taken from the legacy container on every call.
The settings of the language administration changed by the Activities.
global $DIC
Definition: shib_login.php:26