|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilObjectTranslation: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().
Here is the call graph for this function:| 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().
Here is the caller graph for this function:| ilObjectTranslation::copy | ( | int | $obj_id | ) |
Copy multilingual settings.
Definition at line 345 of file class.ilObjectTranslation.php.
References getFallbackLanguage(), getLanguages(), and getMasterLanguage().
Here is the call graph for this function:| 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().
Here is the caller graph for this function:| ilObjectTranslation::getDefaultDescription | ( | ) |
Definition at line 187 of file class.ilObjectTranslation.php.
References ilObject\_lookupDescription(), getFallbackLanguage(), and getObjId().
Referenced by ilObjStudyProgrammeSettingsGUI\getEditSection().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectTranslation::getDefaultLanguage | ( | ) |
Definition at line 221 of file class.ilObjectTranslation.php.
References getFallbackLanguage().
Referenced by ilObjStudyProgrammeSettingsGUI\getEditSection().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the caller graph for this function:
|
static |
Definition at line 76 of file class.ilObjectTranslation.php.
References $obj_id.
Referenced by ILIAS\Container\Page\PageManager\__construct(), ilPageMultiLangGUI\__construct(), ilLMPresentationStatus\__construct(), ILIAS\LearningModule\Export\LMHtmlExport\__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(), ILIAS\Repository\Provider\RepositoryOpenGraphExposer\exposeObjectOpenGraphMetaData(), ilContentPagePageCommandForwarder\forward(), ilContainerGUI\getContainerPageHTML(), ilObjectDataSet\getDependencies(), ilObjMediaPoolGUI\getEditFormCustomValues(), ILIAS\COPage\Page\PageQueryActionHandler\getMultiLangActions(), ilObjContentObjectGUI\getMultiLangHeader(), ILIAS\COPage\Page\PageQueryActionHandler\getMultiLangInfo(), ilObjContentPageListGUI\getProperties(), ilObjContentObjectGUI\getPropertiesFormValues(), ilObjContentObject\getPublicExportFiles(), ilCourseXMLParser\handlerEndTag(), ilLMImportGUI\importTranslation(), ilLMPresentationGUI\initByRequest(), ilMediaPoolImportGUI\initTranslationImportForm(), ilLMImportGUI\initTranslationImportForm(), ilObjContentPage\initTranslationService(), ilContainer\read(), ilObjContentObjectGUI\saveProperties(), ilObjMediaPoolGUI\updateCustom(), and ilObjContentObject\validatePages().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| ilObjectTranslation::getMasterLanguage | ( | ) |
Definition at line 100 of file class.ilObjectTranslation.php.
References $master_lang.
Referenced by copy(), getEffectiveContentLang(), removeLanguage(), and save().
Here is the caller graph for this function:| ilObjectTranslation::getObjId | ( | ) |
Definition at line 90 of file class.ilObjectTranslation.php.
References $obj_id.
Referenced by getDefaultDescription(), getDefaultTitle(), getEffectiveContentLang(), read(), and save().
Here is the caller graph for this function:| ilObjectTranslation::read | ( | ) |
Definition at line 251 of file class.ilObjectTranslation.php.
References addLanguage(), getObjId(), setContentActivated(), setFallbackLanguage(), setLanguages(), and setMasterLanguage().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectTranslation::removeLanguage | ( | string | $lang | ) |
Definition at line 234 of file class.ilObjectTranslation.php.
References getMasterLanguage().
Here is the call graph for this function:| ilObjectTranslation::save | ( | ) |
Definition at line 300 of file class.ilObjectTranslation.php.
References getFallbackLanguage(), getLanguages(), getMasterLanguage(), and getObjId().
Here is the call graph for this function:
|
protected |
Definition at line 241 of file class.ilObjectTranslation.php.
Referenced by read().
Here is the caller graph for this function:| ilObjectTranslation::setDefaultDescription | ( | string | $description | ) |
Definition at line 204 of file class.ilObjectTranslation.php.
References getFallbackLanguage().
Here is the call graph for this function:| ilObjectTranslation::setDefaultTitle | ( | string | $title | ) |
Definition at line 171 of file class.ilObjectTranslation.php.
References getFallbackLanguage().
Here is the call graph for this function:| ilObjectTranslation::setFallbackLanguage | ( | string | $val | ) |
Definition at line 121 of file class.ilObjectTranslation.php.
Referenced by read().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| ilObjectTranslation::setMasterLanguage | ( | string | $val | ) |
Definition at line 95 of file class.ilObjectTranslation.php.
Referenced by read().
Here is the caller graph for this function:| ilObjectTranslation::setObjId | ( | int | $val | ) |
Definition at line 85 of file class.ilObjectTranslation.php.
Referenced by __construct().
Here is the caller graph for this function:
|
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().