24 $active_languages = $this->
getADT()->getCopyOfDefinition()->getActiveLanguages();
26 if (!count($active_languages)) {
30 (
string) $this->
getADT()->getText(),
36 $is_translation = null;
37 foreach ($active_languages as $active_language) {
38 if (strcmp($active_language, $this->
getADT()->getCopyOfDefinition()->getDefaultLanguage()) === 0) {
39 $is_translation =
false;
41 $is_translation =
true;
46 (
string) $this->
getADT()->getTranslations()[$active_language],
58 if (!$this->
getADT()->getCopyOfDefinition()->supportsTranslations()) {
59 parent::importFromPost();
62 $active_languages = $this->
getADT()->getCopyOfDefinition()->getActiveLanguages();
63 foreach ($active_languages as
$language) {
67 $input_item->setValue((
string) $this->
getADT()->getTranslations()[$language]);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilADTLocalizedText.
Class ilADTLocalizedTextDBBridge.
addElementToForm(string $title, string $element_id, string $value, bool $is_translation=false, string $language='')