ILIAS
release_7 Revision v7.30-3-g800a261c036
|
GUI class for object translation handling. More...
Public Member Functions | |
__construct ($a_obj_gui) | |
Constructor. More... | |
setTitleDescrOnlyMode ($a_val) | |
Set enable title/description only mode. More... | |
getTitleDescrOnlyMode () | |
Get enable title/description only mode. More... | |
setEnableFallbackLanguage ($a_val) | |
Set enable fallback language. More... | |
getEnableFallbackLanguage () | |
Get enable fallback language. More... | |
executeCommand () | |
Execute command. More... | |
listTranslations ($a_get_post_values=false, $a_add=false) | |
List translations. More... | |
saveTranslations () | |
Save translations. More... | |
deleteTranslations () | |
Remove translation. More... | |
activateContentMultilinguality () | |
Activate multi language (-> master language selection) More... | |
getMultiLangForm ($a_add=false) | |
Get multi language form. More... | |
saveContentTranslationActivation () | |
Save content translation activation. More... | |
confirmDeactivateContentMultiLang () | |
Confirm page translation creation. More... | |
deactivateContentMultiLang () | |
Deactivate multilanguage. More... | |
addLanguages () | |
Add language. More... | |
saveLanguages () | |
Save languages. More... | |
confirmRemoveLanguages () | |
Confirm remove languages. More... | |
removeLanguages () | |
Remove languages. More... | |
setFallback () | |
Save translations. More... | |
Protected Attributes | |
$lng | |
$ctrl | |
$tpl | |
$toolbar | |
$user | |
$obj_trans | |
$title_descr_only = true | |
$fallback_lang_mode = true | |
GUI class for object translation handling.
Definition at line 12 of file class.ilObjectTranslationGUI.php.
ilObjectTranslationGUI::__construct | ( | $a_obj_gui | ) |
Constructor.
Definition at line 50 of file class.ilObjectTranslationGUI.php.
References $DIC, $lng, $tpl, ilObjectTranslation\getInstance(), and user().
ilObjectTranslationGUI::activateContentMultilinguality | ( | ) |
Activate multi language (-> master language selection)
Definition at line 303 of file class.ilObjectTranslationGUI.php.
References $lng, $tpl, getMultiLangForm(), and ilUtil\sendInfo().
ilObjectTranslationGUI::addLanguages | ( | ) |
Add language.
Definition at line 443 of file class.ilObjectTranslationGUI.php.
References $tpl, and getMultiLangForm().
ilObjectTranslationGUI::confirmDeactivateContentMultiLang | ( | ) |
Confirm page translation creation.
Definition at line 396 of file class.ilObjectTranslationGUI.php.
References $ctrl, $lng, $tpl, and getTitleDescrOnlyMode().
ilObjectTranslationGUI::confirmRemoveLanguages | ( | ) |
Confirm remove languages.
Definition at line 484 of file class.ilObjectTranslationGUI.php.
References $_POST, $ctrl, $i, $lng, $tpl, and ilUtil\sendInfo().
ilObjectTranslationGUI::deactivateContentMultiLang | ( | ) |
Deactivate multilanguage.
Definition at line 419 of file class.ilObjectTranslationGUI.php.
References $ctrl, $lng, and getTitleDescrOnlyMode().
ilObjectTranslationGUI::deleteTranslations | ( | ) |
Remove translation.
Definition at line 277 of file class.ilObjectTranslationGUI.php.
References $_POST, listTranslations(), saveTranslations(), and ilUtil\sendFailure().
ilObjectTranslationGUI::executeCommand | ( | ) |
Execute command.
Definition at line 112 of file class.ilObjectTranslationGUI.php.
ilObjectTranslationGUI::getEnableFallbackLanguage | ( | ) |
Get enable fallback language.
Definition at line 103 of file class.ilObjectTranslationGUI.php.
References $fallback_lang_mode.
ilObjectTranslationGUI::getMultiLangForm | ( | $a_add = false | ) |
Get multi language form.
Definition at line 317 of file class.ilObjectTranslationGUI.php.
References $ctrl, $ilUser, $lng, $si, $tpl, $user, ilMDLanguageItem\_getLanguages(), and getTitleDescrOnlyMode().
Referenced by activateContentMultilinguality(), addLanguages(), saveContentTranslationActivation(), and saveLanguages().
ilObjectTranslationGUI::getTitleDescrOnlyMode | ( | ) |
Get enable title/description only mode.
Definition at line 85 of file class.ilObjectTranslationGUI.php.
References $title_descr_only.
Referenced by confirmDeactivateContentMultiLang(), deactivateContentMultiLang(), getMultiLangForm(), and listTranslations().
ilObjectTranslationGUI::listTranslations | ( | $a_get_post_values = false , |
|
$a_add = false |
|||
) |
List translations.
Definition at line 132 of file class.ilObjectTranslationGUI.php.
References $_POST, $data, $fallback_lang_mode, $toolbar, ilObject\_lookupType(), getTitleDescrOnlyMode(), and ilUtil\sendInfo().
Referenced by deleteTranslations(), saveTranslations(), and setFallback().
ilObjectTranslationGUI::removeLanguages | ( | ) |
Remove languages.
Definition at line 514 of file class.ilObjectTranslationGUI.php.
References $_POST, $ctrl, $lng, and ilUtil\sendInfo().
ilObjectTranslationGUI::saveContentTranslationActivation | ( | ) |
Save content translation activation.
Definition at line 369 of file class.ilObjectTranslationGUI.php.
References $ctrl, and getMultiLangForm().
ilObjectTranslationGUI::saveLanguages | ( | ) |
Save languages.
Definition at line 454 of file class.ilObjectTranslationGUI.php.
References $ctrl, $lng, $tpl, getMultiLangForm(), ilUtil\sendFailure(), and ilUtil\sendInfo().
ilObjectTranslationGUI::saveTranslations | ( | ) |
Save translations.
Definition at line 212 of file class.ilObjectTranslationGUI.php.
References $_POST, listTranslations(), ilUtil\sendFailure(), and ilUtil\stripSlashes().
Referenced by deleteTranslations().
ilObjectTranslationGUI::setEnableFallbackLanguage | ( | $a_val | ) |
Set enable fallback language.
bool | $a_val |
Definition at line 94 of file class.ilObjectTranslationGUI.php.
ilObjectTranslationGUI::setFallback | ( | ) |
Save translations.
Definition at line 535 of file class.ilObjectTranslationGUI.php.
References $_POST, $ctrl, $lng, listTranslations(), ilUtil\sendFailure(), and ilUtil\sendInfo().
ilObjectTranslationGUI::setTitleDescrOnlyMode | ( | $a_val | ) |
Set enable title/description only mode.
bool | $a_val | enable title/description only mode |
Definition at line 75 of file class.ilObjectTranslationGUI.php.
|
protected |
Definition at line 22 of file class.ilObjectTranslationGUI.php.
Referenced by confirmDeactivateContentMultiLang(), confirmRemoveLanguages(), deactivateContentMultiLang(), getMultiLangForm(), removeLanguages(), saveContentTranslationActivation(), saveLanguages(), and setFallback().
|
protected |
Definition at line 45 of file class.ilObjectTranslationGUI.php.
Referenced by getEnableFallbackLanguage(), and listTranslations().
|
protected |
Definition at line 17 of file class.ilObjectTranslationGUI.php.
Referenced by __construct(), activateContentMultilinguality(), confirmDeactivateContentMultiLang(), confirmRemoveLanguages(), deactivateContentMultiLang(), getMultiLangForm(), removeLanguages(), saveLanguages(), and setFallback().
|
protected |
Definition at line 39 of file class.ilObjectTranslationGUI.php.
|
protected |
Definition at line 40 of file class.ilObjectTranslationGUI.php.
Referenced by getTitleDescrOnlyMode().
|
protected |
Definition at line 32 of file class.ilObjectTranslationGUI.php.
Referenced by listTranslations().
|
protected |
Definition at line 27 of file class.ilObjectTranslationGUI.php.
Referenced by __construct(), activateContentMultilinguality(), addLanguages(), confirmDeactivateContentMultiLang(), confirmRemoveLanguages(), getMultiLangForm(), and saveLanguages().
|
protected |
Definition at line 37 of file class.ilObjectTranslationGUI.php.
Referenced by getMultiLangForm().