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 | |
__construct ($obj_gui) | |
hideDescription (bool $hide) | |
supportContentTranslation (bool $content_translation) | |
setTitleDescrOnlyMode (bool $val) | |
Some objects like learning modules do not support to translate only the title and the description. More... | |
getTitleDescrOnlyMode () | |
setEnableFallbackLanguage (bool $val) | |
getEnableFallbackLanguage () | |
executeCommand () | |
listTranslations (bool $get_post_values=false, bool $add=false) | |
saveTranslations (bool $delete_checked=false) | |
deleteTranslations () | |
activateContentMultilinguality () | |
Activate multi language (-> master language selection) More... | |
getMultiLangForm (bool $add=false) | |
saveContentTranslationActivation () | |
confirmDeactivateContentMultiLang () | |
deactivateContentMultiLang () | |
addLanguages () | |
saveLanguages () | |
confirmRemoveLanguages () | |
setFallback () | |
Data Fields | |
const | CMD_LIST_TRANSLATIONS = "listTranslations" |
const | CMD_SAVE_TRANSLATIONS = "saveTranslations" |
const | CMD_ADD_TRANSLATION = "addTranslation" |
const | CMD_DELETE_TRANSLATIONS = "deleteTranslations" |
const | CMD_ADD_LANGUAGES = "addLanguages" |
const | CMD_SAVE_LANGUAGES = "saveLanguages" |
const | CMD_CONFIRM_REMOVE_LANGUAGES = "confirmRemoveLanguages" |
const | CMD_REMOVE_LANGUAGES = "removeLanguages" |
const | CMD_SET_FALLBACK = "setFallback" |
Protected Attributes | |
ilToolbarGUI | $toolbar |
ilObjUser | $user |
ilAccess | $access |
ilLanguage | $lng |
ilCtrl | $ctrl |
ilGlobalTemplateInterface | $tpl |
ILIAS HTTP Wrapper ArrayBasedRequestWrapper | $post_wrapper |
ILIAS Refinery Factory | $refinery |
ilObjectGUI | $obj_gui |
ilObject | $obj |
ilObjectTranslation | $obj_trans |
bool | $title_descr_only = true |
bool | $hide_description = false |
bool | $fallback_lang_mode = true |
bool | $support_content_translation = true |
Private Member Functions | |
getTableValuesByObjects () | |
getTableValuesByRequest () | |
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 GUI class for object translation handling.
Definition at line 26 of file class.ilObjectTranslationGUI.php.
ilObjectTranslationGUI::__construct | ( | $obj_gui | ) |
Definition at line 55 of file class.ilObjectTranslationGUI.php.
References $DIC, $obj_gui, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilObjectTranslation\getInstance(), ilObjectGUI\getObject(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().
ilObjectTranslationGUI::activateContentMultilinguality | ( | ) |
Activate multi language (-> master language selection)
Definition at line 396 of file class.ilObjectTranslationGUI.php.
References getMultiLangForm(), and ILIAS\Repository\lng().
ilObjectTranslationGUI::addLanguages | ( | ) |
Definition at line 495 of file class.ilObjectTranslationGUI.php.
References getMultiLangForm().
ilObjectTranslationGUI::confirmDeactivateContentMultiLang | ( | ) |
Definition at line 463 of file class.ilObjectTranslationGUI.php.
References ILIAS\Repository\ctrl(), getTitleDescrOnlyMode(), and ILIAS\Repository\lng().
ilObjectTranslationGUI::confirmRemoveLanguages | ( | ) |
Definition at line 524 of file class.ilObjectTranslationGUI.php.
References $i, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
ilObjectTranslationGUI::deactivateContentMultiLang | ( | ) |
Definition at line 478 of file class.ilObjectTranslationGUI.php.
References ILIAS\Repository\ctrl(), getTitleDescrOnlyMode(), and ILIAS\Repository\lng().
ilObjectTranslationGUI::deleteTranslations | ( | ) |
Definition at line 361 of file class.ilObjectTranslationGUI.php.
References $check, listTranslations(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and saveTranslations().
ilObjectTranslationGUI::executeCommand | ( | ) |
Definition at line 167 of file class.ilObjectTranslationGUI.php.
References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
ilObjectTranslationGUI::getEnableFallbackLanguage | ( | ) |
Definition at line 162 of file class.ilObjectTranslationGUI.php.
References $fallback_lang_mode.
ilObjectTranslationGUI::getMultiLangForm | ( | bool | $add = false | ) |
Definition at line 403 of file class.ilObjectTranslationGUI.php.
References ilMDLanguageItem\_getLanguages(), ILIAS\Repository\ctrl(), getTitleDescrOnlyMode(), ILIAS\Repository\lng(), and ILIAS\Repository\user().
Referenced by activateContentMultilinguality(), addLanguages(), saveContentTranslationActivation(), and saveLanguages().
|
private |
Definition at line 85 of file class.ilObjectTranslationGUI.php.
References $data, and ILIAS\Repository\int().
Referenced by listTranslations().
|
private |
Definition at line 97 of file class.ilObjectTranslationGUI.php.
References ILIAS\Repository\refinery().
Referenced by listTranslations().
ilObjectTranslationGUI::getTitleDescrOnlyMode | ( | ) |
Definition at line 152 of file class.ilObjectTranslationGUI.php.
References $title_descr_only.
Referenced by confirmDeactivateContentMultiLang(), deactivateContentMultiLang(), getMultiLangForm(), and listTranslations().
ilObjectTranslationGUI::hideDescription | ( | bool | $hide | ) |
Definition at line 75 of file class.ilObjectTranslationGUI.php.
ilObjectTranslationGUI::listTranslations | ( | bool | $get_post_values = false , |
bool | $add = false |
||
) |
Definition at line 197 of file class.ilObjectTranslationGUI.php.
References $fallback_lang_mode, ilObject\_lookupType(), ILIAS\Repository\ctrl(), getTableValuesByObjects(), getTableValuesByRequest(), getTitleDescrOnlyMode(), ILIAS\Repository\lng(), ilTable2GUI\setData(), and ILIAS\Repository\toolbar().
Referenced by deleteTranslations(), saveTranslations(), and setFallback().
ilObjectTranslationGUI::saveContentTranslationActivation | ( | ) |
Definition at line 443 of file class.ilObjectTranslationGUI.php.
References ILIAS\Repository\ctrl(), and getMultiLangForm().
ilObjectTranslationGUI::saveLanguages | ( | ) |
Definition at line 501 of file class.ilObjectTranslationGUI.php.
References ILIAS\Repository\ctrl(), getMultiLangForm(), and ILIAS\Repository\lng().
ilObjectTranslationGUI::saveTranslations | ( | bool | $delete_checked = false | ) |
Definition at line 255 of file class.ilObjectTranslationGUI.php.
References $check, ILIAS\Repository\ctrl(), listTranslations(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ilUtil\stripSlashes().
Referenced by deleteTranslations().
ilObjectTranslationGUI::setEnableFallbackLanguage | ( | bool | $val | ) |
Definition at line 157 of file class.ilObjectTranslationGUI.php.
ilObjectTranslationGUI::setFallback | ( | ) |
Definition at line 555 of file class.ilObjectTranslationGUI.php.
References ILIAS\Repository\ctrl(), listTranslations(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
ilObjectTranslationGUI::setTitleDescrOnlyMode | ( | bool | $val | ) |
Some objects like learning modules do not support to translate only the title and the description.
If they acticate multilinguasm, they translate always title, description AND content. They have to call setTitleDescrOnlyMode(false) to indicate this. Other contexts, e.g. categories allow to only translate title and description and activate the content multilinguasm separately.
Definition at line 147 of file class.ilObjectTranslationGUI.php.
ilObjectTranslationGUI::supportContentTranslation | ( | bool | $content_translation | ) |
Definition at line 80 of file class.ilObjectTranslationGUI.php.
|
protected |
Definition at line 39 of file class.ilObjectTranslationGUI.php.
|
protected |
Definition at line 41 of file class.ilObjectTranslationGUI.php.
|
protected |
Definition at line 52 of file class.ilObjectTranslationGUI.php.
Referenced by getEnableFallbackLanguage(), and listTranslations().
|
protected |
Definition at line 51 of file class.ilObjectTranslationGUI.php.
|
protected |
Definition at line 40 of file class.ilObjectTranslationGUI.php.
|
protected |
Definition at line 47 of file class.ilObjectTranslationGUI.php.
|
protected |
Definition at line 46 of file class.ilObjectTranslationGUI.php.
Referenced by __construct().
|
protected |
Definition at line 48 of file class.ilObjectTranslationGUI.php.
|
protected |
Definition at line 43 of file class.ilObjectTranslationGUI.php.
|
protected |
Definition at line 44 of file class.ilObjectTranslationGUI.php.
|
protected |
Definition at line 53 of file class.ilObjectTranslationGUI.php.
|
protected |
Definition at line 50 of file class.ilObjectTranslationGUI.php.
Referenced by getTitleDescrOnlyMode().
|
protected |
Definition at line 37 of file class.ilObjectTranslationGUI.php.
|
protected |
Definition at line 42 of file class.ilObjectTranslationGUI.php.
|
protected |
Definition at line 38 of file class.ilObjectTranslationGUI.php.
const ilObjectTranslationGUI::CMD_ADD_LANGUAGES = "addLanguages" |
Definition at line 32 of file class.ilObjectTranslationGUI.php.
const ilObjectTranslationGUI::CMD_ADD_TRANSLATION = "addTranslation" |
Definition at line 30 of file class.ilObjectTranslationGUI.php.
const ilObjectTranslationGUI::CMD_CONFIRM_REMOVE_LANGUAGES = "confirmRemoveLanguages" |
Definition at line 34 of file class.ilObjectTranslationGUI.php.
const ilObjectTranslationGUI::CMD_DELETE_TRANSLATIONS = "deleteTranslations" |
Definition at line 31 of file class.ilObjectTranslationGUI.php.
const ilObjectTranslationGUI::CMD_LIST_TRANSLATIONS = "listTranslations" |
Definition at line 28 of file class.ilObjectTranslationGUI.php.
const ilObjectTranslationGUI::CMD_REMOVE_LANGUAGES = "removeLanguages" |
Definition at line 35 of file class.ilObjectTranslationGUI.php.
const ilObjectTranslationGUI::CMD_SAVE_LANGUAGES = "saveLanguages" |
Definition at line 33 of file class.ilObjectTranslationGUI.php.
const ilObjectTranslationGUI::CMD_SAVE_TRANSLATIONS = "saveTranslations" |
Definition at line 29 of file class.ilObjectTranslationGUI.php.
const ilObjectTranslationGUI::CMD_SET_FALLBACK = "setFallback" |
Definition at line 36 of file class.ilObjectTranslationGUI.php.