|
ILIAS
release_8 Revision v8.24
|
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, $obj_id, 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.
| ilObjectTranslation::copy | ( | int | $obj_id | ) |
Copy multilingual settings.
Definition at line 345 of file class.ilObjectTranslation.php.
| 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.
| ilObjectTranslation::getDefaultDescription | ( | ) |
Definition at line 187 of file class.ilObjectTranslation.php.
References ilObject\_lookupDescription().
Here is the call graph for this function:| ilObjectTranslation::getDefaultLanguage | ( | ) |
Definition at line 221 of file class.ilObjectTranslation.php.
| ilObjectTranslation::getDefaultTitle | ( | ) |
Definition at line 153 of file class.ilObjectTranslation.php.
References ilObject\_lookupTitle().
Here is the call 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, and ilPageObject\_exists().
Here is the call graph for this function:| ilObjectTranslation::getFallbackLanguage | ( | ) |
Definition at line 126 of file class.ilObjectTranslation.php.
References $fallback_language.
Referenced by ilLMPresentationStatus\getLMPresentationTitle().
Here is the caller graph for this function:
|
static |
Definition at line 76 of file class.ilObjectTranslation.php.
References $obj_id.
Referenced by ilObjectTranslationGUI\__construct(), ILIAS\LearningModule\Export\LMHtmlExport\__construct(), ilLMContentRendererGUI\__construct(), ilLMPresentationStatus\__construct(), ilPageMultiLangGUI\__construct(), ilObject\appendCopyInfo(), ilContainer\create(), ilObjContentPage\doCloneObject(), ilObjItemGroup\doCloneObject(), ilObjItemGroup\doCreate(), ilObjContentObject\doMDUpdateListener(), ilObjItemGroup\doUpdate(), ilObjMediaPoolGUI\executeCommand(), ilObjContentObjectGUI\export(), ilObjMediaPoolGUI\export(), ilObjContentObjectGUI\exportHTML(), ilContentPagePageCommandForwarder\forward(), ilContainerGUI\getContainerPageHTML(), ilObjMediaPoolGUI\getEditFormCustomValues(), ILIAS\COPage\Editor\Components\Page\PageQueryActionHandler\getMultiLangActions(), ILIAS\COPage\Editor\Components\Page\PageQueryActionHandler\getMultiLangInfo(), ilObjContentPageListGUI\getProperties(), ilObjContentObjectGUI\getPropertiesFormValues(), ilObjContentObject\getPublicExportFiles(), ilLMImportGUI\importTranslation(), ilLMImportGUI\initTranslationImportForm(), ilMediaPoolImportGUI\initTranslationImportForm(), ilObjContentPage\initTranslationService(), ilContainer\read(), ilObjContentObjectGUI\saveProperties(), and ilObjMediaPoolGUI\updateCustom().
Here is the caller graph for this function:| ilObjectTranslation::getLanguages | ( | ) |
Definition at line 116 of file class.ilObjectTranslation.php.
References $languages.
Referenced by ilLMPresentationStatus\getLMPresentationTitle().
Here is the caller graph for this function:| ilObjectTranslation::getMasterLanguage | ( | ) |
Definition at line 100 of file class.ilObjectTranslation.php.
References $master_lang.
| ilObjectTranslation::getObjId | ( | ) |
Definition at line 90 of file class.ilObjectTranslation.php.
References $obj_id.
| ilObjectTranslation::read | ( | ) |
Definition at line 251 of file class.ilObjectTranslation.php.
Referenced by __construct().
Here is the caller graph for this function:| ilObjectTranslation::removeLanguage | ( | string | $lang | ) |
Definition at line 234 of file class.ilObjectTranslation.php.
References $lang.
| ilObjectTranslation::save | ( | ) |
Definition at line 300 of file class.ilObjectTranslation.php.
|
protected |
Definition at line 241 of file class.ilObjectTranslation.php.
| ilObjectTranslation::setDefaultDescription | ( | string | $description | ) |
Definition at line 204 of file class.ilObjectTranslation.php.
| ilObjectTranslation::setDefaultTitle | ( | string | $title | ) |
Definition at line 171 of file class.ilObjectTranslation.php.
| ilObjectTranslation::setFallbackLanguage | ( | string | $val | ) |
Definition at line 121 of file class.ilObjectTranslation.php.
| ilObjectTranslation::setLanguages | ( | array | $val | ) |
| array | $val | array of language codes |
Definition at line 108 of file class.ilObjectTranslation.php.
| ilObjectTranslation::setMasterLanguage | ( | string | $val | ) |
Definition at line 95 of file class.ilObjectTranslation.php.
| 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.
|
protected |
Definition at line 51 of file class.ilObjectTranslation.php.
|
protected |
Definition at line 60 of file class.ilObjectTranslation.php.
Referenced by 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 __construct(), getInstance(), and getObjId().