ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
setObjId (int $val) | |
getObjId () | |
setMasterLanguage (string $val) | |
getMasterLanguage () | |
setLanguages (array $val) | |
getLanguages () | |
setFallbackLanguage (string $val) | |
getFallbackLanguage () | |
addLanguage (string $lang, string $title, string $description, bool $default, bool $force=false) | |
getDefaultTitle () | |
setDefaultTitle (string $title) | |
getDefaultDescription () | |
setDefaultDescription (string $description) | |
getDefaultLanguage () | |
removeLanguage (string $lang) | |
getContentActivated () | |
read () | |
delete () | |
deactivateContentTranslation () | |
save () | |
copy (int $obj_id) | |
Copy multilingual settings. More... | |
getEffectiveContentLang (string $lang, string $parent_type) | |
Get effective language for given language. More... | |
Static Public Member Functions | |
static | getInstance (int $obj_id) |
Protected Member Functions | |
setContentActivated (bool $val) | |
Protected Attributes | |
ilDBInterface | $db |
int | $obj_id |
string | $master_lang = "" |
array | $languages = [] |
bool | $content_activated = false |
string | $fallback_language = "" |
Static Protected Attributes | |
static array | $instances = [] |
Private Member Functions | |
__construct (int $obj_id) | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 master lang vs. default language
Definition at line 47 of file class.ilObjectTranslation.php.
|
private |
Definition at line 62 of file class.ilObjectTranslation.php.
References $DIC, read(), and setObjId().
ilObjectTranslation::addLanguage | ( | string | $lang, |
string | $title, | ||
string | $description, | ||
bool | $default, | ||
bool | $force = false |
||
) |
Definition at line 131 of file class.ilObjectTranslation.php.
References $lang.
Referenced by read().
ilObjectTranslation::copy | ( | int | $obj_id | ) |
Copy multilingual settings.
Definition at line 345 of file class.ilObjectTranslation.php.
References getFallbackLanguage(), getLanguages(), and getMasterLanguage().
ilObjectTranslation::deactivateContentTranslation | ( | ) |
Definition at line 292 of file class.ilObjectTranslation.php.
ilObjectTranslation::delete | ( | ) |
Definition at line 280 of file class.ilObjectTranslation.php.
ilObjectTranslation::getContentActivated | ( | ) |
Definition at line 246 of file class.ilObjectTranslation.php.
References $content_activated.
Referenced by getEffectiveContentLang().
ilObjectTranslation::getDefaultDescription | ( | ) |
Definition at line 187 of file class.ilObjectTranslation.php.
References ilObject\_lookupDescription(), getFallbackLanguage(), and getObjId().
Referenced by ilObjStudyProgrammeSettingsGUI\getEditSection().
ilObjectTranslation::getDefaultLanguage | ( | ) |
Definition at line 221 of file class.ilObjectTranslation.php.
References getFallbackLanguage().
Referenced by ilObjStudyProgrammeSettingsGUI\getEditSection().
ilObjectTranslation::getDefaultTitle | ( | ) |
Definition at line 153 of file class.ilObjectTranslation.php.
References $fallback_language, ilObject\_lookupTitle(), and getObjId().
Referenced by ilObject\appendCopyInfoToTranslations(), and ilObjStudyProgrammeSettingsGUI\getEditSection().
ilObjectTranslation::getEffectiveContentLang | ( | string | $lang, |
string | $parent_type | ||
) |
Get effective language for given language.
This checks if
string | $lang | language |
string | $parent_type | page parent type |
Definition at line 366 of file class.ilObjectTranslation.php.
References $lang, ilPageObject\_exists(), getContentActivated(), getFallbackLanguage(), getLanguages(), getMasterLanguage(), and getObjId().
ilObjectTranslation::getFallbackLanguage | ( | ) |
Definition at line 126 of file class.ilObjectTranslation.php.
References $fallback_language.
Referenced by copy(), getDefaultDescription(), getDefaultLanguage(), getEffectiveContentLang(), ilLMPresentationStatus\getLMPresentationTitle(), save(), setDefaultDescription(), and setDefaultTitle().
|
static |
Definition at line 76 of file class.ilObjectTranslation.php.
References $obj_id.
Referenced by ilPageMultiLangGUI\__construct(), ilLMPresentationStatus\__construct(), ILIAS\LearningModule\Export\LMHtmlExport\__construct(), ilObjectTranslationGUI\__construct(), ilLMContentRendererGUI\__construct(), ilContainer\_exportContainerSettings(), ilStructureObject\_getPresentationTitle(), ilLMPageObject\_getPresentationTitle(), ilObject\appendCopyInfo(), ilObject\appendCopyInfoToTranslations(), ilObjContentObjectGUI\checkCtrlPath(), ilContainer\create(), ilObjContentPage\doCloneObject(), ilObjItemGroup\doCloneObject(), ilObjItemGroup\doCreate(), ilObjContentObject\doMDUpdateListener(), ilObjItemGroup\doUpdate(), ilObjMediaPoolGUI\executeCommand(), ilObjContentObjectGUI\export(), ilObjMediaPoolGUI\export(), ilObjContentObjectGUI\exportHTML(), ilContentPagePageCommandForwarder\forward(), ilContainerGUI\getContainerPageHTML(), ilObjectDataSet\getDependencies(), ilObjMediaPoolGUI\getEditFormCustomValues(), ILIAS\COPage\Editor\Components\Page\PageQueryActionHandler\getMultiLangActions(), ilObjContentObjectGUI\getMultiLangHeader(), ILIAS\COPage\Editor\Components\Page\PageQueryActionHandler\getMultiLangInfo(), ilObjContentPageListGUI\getProperties(), ilObjContentObjectGUI\getPropertiesFormValues(), ilObjContentObject\getPublicExportFiles(), ilLMImportGUI\importTranslation(), ilLMPresentationGUI\initByRequest(), ilMediaPoolImportGUI\initTranslationImportForm(), ilLMImportGUI\initTranslationImportForm(), ilObjContentPage\initTranslationService(), ilContainer\read(), ilObjContentObjectGUI\saveProperties(), ilObjMediaPoolGUI\updateCustom(), and ilObjContentObject\validatePages().
ilObjectTranslation::getLanguages | ( | ) |
Definition at line 116 of file class.ilObjectTranslation.php.
References $languages.
Referenced by ilObject\appendCopyInfoToTranslations(), copy(), getEffectiveContentLang(), ilLMPresentationStatus\getLMPresentationTitle(), ILIAS\LearningModule\Export\LMHtmlExport\initDirectories(), and save().
ilObjectTranslation::getMasterLanguage | ( | ) |
Definition at line 100 of file class.ilObjectTranslation.php.
References $master_lang.
Referenced by copy(), getEffectiveContentLang(), removeLanguage(), and save().
ilObjectTranslation::getObjId | ( | ) |
Definition at line 90 of file class.ilObjectTranslation.php.
References $obj_id.
Referenced by getDefaultDescription(), getDefaultTitle(), getEffectiveContentLang(), read(), and save().
ilObjectTranslation::read | ( | ) |
Definition at line 251 of file class.ilObjectTranslation.php.
References addLanguage(), getObjId(), setContentActivated(), setFallbackLanguage(), setLanguages(), and setMasterLanguage().
Referenced by __construct().
ilObjectTranslation::removeLanguage | ( | string | $lang | ) |
Definition at line 234 of file class.ilObjectTranslation.php.
References getMasterLanguage().
ilObjectTranslation::save | ( | ) |
Definition at line 300 of file class.ilObjectTranslation.php.
References getFallbackLanguage(), getLanguages(), getMasterLanguage(), and getObjId().
|
protected |
Definition at line 241 of file class.ilObjectTranslation.php.
Referenced by read().
ilObjectTranslation::setDefaultDescription | ( | string | $description | ) |
Definition at line 204 of file class.ilObjectTranslation.php.
References getFallbackLanguage().
ilObjectTranslation::setDefaultTitle | ( | string | $title | ) |
Definition at line 171 of file class.ilObjectTranslation.php.
References getFallbackLanguage().
ilObjectTranslation::setFallbackLanguage | ( | string | $val | ) |
Definition at line 121 of file class.ilObjectTranslation.php.
Referenced by read().
ilObjectTranslation::setLanguages | ( | array | $val | ) |
array | $val | array of language codes |
Definition at line 108 of file class.ilObjectTranslation.php.
Referenced by ilObject\appendCopyInfoToTranslations(), and read().
ilObjectTranslation::setMasterLanguage | ( | string | $val | ) |
Definition at line 95 of file class.ilObjectTranslation.php.
Referenced by read().
ilObjectTranslation::setObjId | ( | int | $val | ) |
Definition at line 85 of file class.ilObjectTranslation.php.
Referenced by __construct().
|
protected |
Definition at line 59 of file class.ilObjectTranslation.php.
Referenced by getContentActivated().
|
protected |
Definition at line 51 of file class.ilObjectTranslation.php.
|
protected |
Definition at line 60 of file class.ilObjectTranslation.php.
Referenced by getDefaultTitle(), and getFallbackLanguage().
|
staticprotected |
Definition at line 49 of file class.ilObjectTranslation.php.
|
protected |
Definition at line 58 of file class.ilObjectTranslation.php.
Referenced by getLanguages().
|
protected |
Definition at line 54 of file class.ilObjectTranslation.php.
Referenced by getMasterLanguage().
|
protected |
Definition at line 52 of file class.ilObjectTranslation.php.
Referenced by getInstance(), and getObjId().