ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Class handles translation mode for an object. More...
Public Member Functions | |
__construct (private readonly int $obj_id, private array $languages, private string $default_language, private ?string $base_language, private readonly bool $migration_missing=false) | |
migrationMissing () | |
getObjId () | |
getDefaultLanguage () | |
withDefaultLanguage (string $default_language) | |
getBaseLanguage () | |
withBaseLanguage (string $base_language) | |
getLanguages () | |
getLaguageForCode (string $lang_code) | |
withLanguage (Language $lang) | |
withoutLanguage (string $lang) | |
withResetLanguages () | |
getDefaultTitle () | |
withDefaultTitle (string $title) | |
getDefaultDescription () | |
withDefaultDescription (string $description) | |
getContentTranslationActivated () | |
withDeactivatedContentTranslation () | |
copy (int $obj_id) | |
getEffectiveCOPageLang (string $lang, string $parent_type) | |
Class handles translation mode for an object.
Objects may not use any translations at all
Currently, supported by container objects and ILIAS learning modules.
Content base lang vs. default language
Definition at line 52 of file Translations.php.
ILIAS\ILIASObject\Properties\Translations\Translations::__construct | ( | private readonly int | $obj_id, |
private array | $languages, | ||
private string | $default_language, | ||
private ?string | $base_language, | ||
private readonly bool | $migration_missing = false |
||
) |
ILIAS\ILIASObject\Properties\Translations\Translations::copy | ( | int | $obj_id | ) |
Definition at line 224 of file Translations.php.
ILIAS\ILIASObject\Properties\Translations\Translations::getBaseLanguage | ( | ) |
Definition at line 93 of file Translations.php.
Referenced by ilMediaPoolImportGUI\initTranslationImportForm().
ILIAS\ILIASObject\Properties\Translations\Translations::getContentTranslationActivated | ( | ) |
Definition at line 211 of file Translations.php.
References null.
ILIAS\ILIASObject\Properties\Translations\Translations::getDefaultDescription | ( | ) |
Definition at line 186 of file Translations.php.
References ILIAS\ILIASObject\Properties\Translations\Translations\getObjId().
Referenced by ilObjStudyProgrammeSettingsGUI\getEditSection().
ILIAS\ILIASObject\Properties\Translations\Translations::getDefaultLanguage | ( | ) |
Definition at line 79 of file Translations.php.
Referenced by ilObjStudyProgrammeSettingsGUI\getEditSection(), and ilLMPresentationStatus\getLMPresentationTitle().
ILIAS\ILIASObject\Properties\Translations\Translations::getDefaultTitle | ( | ) |
Definition at line 161 of file Translations.php.
References ILIAS\ILIASObject\Properties\Translations\Translations\getObjId().
Referenced by ilObject\appendCopyInfoToTranslations(), and ilObjStudyProgrammeSettingsGUI\getEditSection().
ILIAS\ILIASObject\Properties\Translations\Translations::getEffectiveCOPageLang | ( | string | $lang, |
string | $parent_type | ||
) |
Definition at line 234 of file Translations.php.
References $lang, ilPageObject\_exists(), ILIAS\ILIASObject\Properties\Translations\Translations\getObjId(), and null.
ILIAS\ILIASObject\Properties\Translations\Translations::getLaguageForCode | ( | string | $lang_code | ) |
Definition at line 117 of file Translations.php.
References null.
ILIAS\ILIASObject\Properties\Translations\Translations::getLanguages | ( | ) |
Definition at line 112 of file Translations.php.
Referenced by ilObject\appendCopyInfoToTranslations(), ilLMPresentationStatus\getLMPresentationTitle(), ilMediaPoolImportGUI\initTranslationImportForm(), ILIAS\LearningModule\Export\LMHtmlExport\resetUserLanguage(), and ILIAS\ILIASObject\Properties\Translations\CachedRepository\store().
ILIAS\ILIASObject\Properties\Translations\Translations::getObjId | ( | ) |
Definition at line 74 of file Translations.php.
Referenced by ILIAS\ILIASObject\Properties\Translations\Translations\getDefaultDescription(), ILIAS\ILIASObject\Properties\Translations\Translations\getDefaultTitle(), ILIAS\ILIASObject\Properties\Translations\Translations\getEffectiveCOPageLang(), and ILIAS\ILIASObject\Properties\Translations\CachedRepository\store().
ILIAS\ILIASObject\Properties\Translations\Translations::migrationMissing | ( | ) |
Definition at line 70 of file Translations.php.
ILIAS\ILIASObject\Properties\Translations\Translations::withBaseLanguage | ( | string | $base_language | ) |
Definition at line 98 of file Translations.php.
References null.
ILIAS\ILIASObject\Properties\Translations\Translations::withDeactivatedContentTranslation | ( | ) |
Definition at line 216 of file Translations.php.
References null.
ILIAS\ILIASObject\Properties\Translations\Translations::withDefaultDescription | ( | string | $description | ) |
Definition at line 199 of file Translations.php.
ILIAS\ILIASObject\Properties\Translations\Translations::withDefaultLanguage | ( | string | $default_language | ) |
Definition at line 84 of file Translations.php.
ILIAS\ILIASObject\Properties\Translations\Translations::withDefaultTitle | ( | string | $title | ) |
Definition at line 174 of file Translations.php.
Referenced by ilCourseXMLParser\handlerEndTag().
ILIAS\ILIASObject\Properties\Translations\Translations::withLanguage | ( | Language | $lang | ) |
Definition at line 122 of file Translations.php.
References $lang, ILIAS\ILIASObject\Properties\Translations\Language\getLanguageCode(), ILIAS\ILIASObject\Properties\Translations\Language\isBase(), ILIAS\ILIASObject\Properties\Translations\Language\isDefault(), and null.
Referenced by ilObject\appendCopyInfoToTranslations().
ILIAS\ILIASObject\Properties\Translations\Translations::withoutLanguage | ( | string | $lang | ) |
Definition at line 143 of file Translations.php.
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationsTable\deleteTranslations().
ILIAS\ILIASObject\Properties\Translations\Translations::withResetLanguages | ( | ) |
Definition at line 154 of file Translations.php.