3 declare(strict_types=1);
    14         $this->
setTabs(self::CMD_DEFAULT);
    21         $language_table->init();
    22         $language_table->parse();
    24         $this->tpl->setContent($language_table->getHTML());
    32         $languages = (array) ($this->request->getParsedBody()[
'active_languages'] ?? []);
    33         $default = (string) $this->request->getParsedBody()[
'default'];
    35         if (!in_array($default, $languages)) {
    36             $this->tpl->setOnScreenMessage(
'failure', $this->
language->txt(
'err_check_input'), 
true);
    37             $this->tpl->setOnScreenMessage(
'info', $this->
language->txt(
'md_adn_int_error_no_default'), 
true);
    38             $this->
ctrl->redirect($this, self::CMD_DEFAULT);
    42         foreach ($translations->getTranslations() as $translation) {
    43             if (!in_array($translation->getLangKey(), $languages)) {
    44                 $translation->delete();
    47         foreach ($languages as $lang_key) {
    48             if (!$translations->isConfigured($lang_key)) {
    49                 $translations->addTranslationEntry($lang_key);
    53         $this->record->setDefaultLanguage($default);
    54         $this->record->update();
    56         $this->tpl->setOnScreenMessage(
'success', $this->
language->txt(
'settings_saved'), 
true);
    57         $this->
ctrl->redirect($this, self::CMD_DEFAULT);
 setTabs(string $active_tab)
 
Class ilAdvancedMDRecordTranslationGUI  ilAdvancedMDRecordTranslationGUI: ilAdvancedMDSettingsGUI. 
 
language()
 description: > Example for rendring a language glyph. 
 
static getInstanceByRecordId(int $record_id)