ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
GUI class for object translation handling. More...
Public Member Functions | |
__construct (private readonly \ilObject $object, private readonly \ilLanguage $lng, private readonly \ilAccess $access, private readonly \ilObjUser $user, private readonly \ilCtrl $ctrl, private readonly \ilGlobalTemplateInterface $tpl, private readonly UIFactory $ui_factory, private readonly UIRenderer $ui_renderer, private readonly HTTPService $http, private readonly Refinery $refinery, private readonly \ilToolbarGUI $toolbar) | |
supportContentTranslation (bool $content_translation) | |
forceContentTranslation () | |
Some objects like learning modules do not support to translate only the title and the description. More... | |
executeCommand () | |
listTranslations (?RoundtripModal $lang_modal=null) | |
addTranslation () | |
activateContentTranslation () | |
deactivateContentTranslation () | |
Private Member Functions | |
addAddLanguagesToolbarActionAndRetrieveModal (?RoundtripModal $modal=null) | |
getAddLanguageModal () | |
addContentTranslationToolbarActionAndRetrieveModal () | |
getConfirmDeactivateMultilingualityModal (string $text_tag) | |
getActivateMultilingualityModal () | |
buildLangSelectionInput () | |
getMasterLangSelectionInput () | |
getArrayWithAddableLanguages () | |
Private Attributes | |
const | CMD_LIST_TRANSLATIONS = 'listTranslations' |
const | CMD_ADD_TRANSLATION = 'addTranslation' |
const | CMD_DEACTIVATE_CONTENT_MULTILANG = 'deactivateContentTranslation' |
const | CMD_SAVE_CONTENT_TRANSLATION_ACTIVATION = 'activateContentTranslation' |
Translations | $translations |
bool | $force_content_translation = false |
bool | $supports_content_translation = true |
GUI class for object translation handling.
Definition at line 38 of file class.TranslationGUI.php.
ILIAS\ILIASObject\Properties\Translations\TranslationGUI::__construct | ( | private readonly \ilObject | $object, |
private readonly \ilLanguage | $lng, | ||
private readonly \ilAccess | $access, | ||
private readonly \ilObjUser | $user, | ||
private readonly \ilCtrl | $ctrl, | ||
private readonly \ilGlobalTemplateInterface | $tpl, | ||
private readonly UIFactory | $ui_factory, | ||
private readonly UIRenderer | $ui_renderer, | ||
private readonly HTTPService | $http, | ||
private readonly Refinery | $refinery, | ||
private readonly \ilToolbarGUI | $toolbar | ||
) |
Definition at line 50 of file class.TranslationGUI.php.
ILIAS\ILIASObject\Properties\Translations\TranslationGUI::activateContentTranslation | ( | ) |
Definition at line 164 of file class.TranslationGUI.php.
References $data, ILIAS\ILIASObject\Properties\Translations\TranslationGUI\getActivateMultilingualityModal(), ILIAS\FileDelivery\http(), ILIAS\ILIASObject\Properties\Translations\TranslationGUI\listTranslations(), null, and ILIAS\Repository\object().
|
private |
Definition at line 201 of file class.TranslationGUI.php.
References ILIAS\ILIASObject\Properties\Translations\TranslationGUI\getAddLanguageModal(), ILIAS\Repository\lng(), and ILIAS\Repository\toolbar().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationGUI\listTranslations().
|
private |
Definition at line 242 of file class.TranslationGUI.php.
References ILIAS\ILIASObject\Properties\Translations\TranslationGUI\getActivateMultilingualityModal(), ILIAS\ILIASObject\Properties\Translations\TranslationGUI\getConfirmDeactivateMultilingualityModal(), ILIAS\Repository\lng(), and ILIAS\Repository\toolbar().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationGUI\listTranslations().
ILIAS\ILIASObject\Properties\Translations\TranslationGUI::addTranslation | ( | ) |
Definition at line 147 of file class.TranslationGUI.php.
References $data, ILIAS\Repository\ctrl(), ILIAS\ILIASObject\Properties\Translations\TranslationGUI\getAddLanguageModal(), ILIAS\FileDelivery\http(), ILIAS\ILIASObject\Properties\Translations\TranslationGUI\listTranslations(), and null.
|
private |
Definition at line 297 of file class.TranslationGUI.php.
References ILIAS\ILIASObject\Properties\Translations\TranslationGUI\getArrayWithAddableLanguages(), and ILIAS\Repository\lng().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationGUI\getAddLanguageModal().
ILIAS\ILIASObject\Properties\Translations\TranslationGUI::deactivateContentTranslation | ( | ) |
Definition at line 190 of file class.TranslationGUI.php.
References ILIAS\ILIASObject\Properties\Translations\TranslationGUI\listTranslations(), and ILIAS\Repository\lng().
ILIAS\ILIASObject\Properties\Translations\TranslationGUI::executeCommand | ( | ) |
Definition at line 83 of file class.TranslationGUI.php.
References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
ILIAS\ILIASObject\Properties\Translations\TranslationGUI::forceContentTranslation | ( | ) |
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 78 of file class.TranslationGUI.php.
|
private |
Definition at line 285 of file class.TranslationGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\ILIASObject\Properties\Translations\TranslationGUI\getMasterLangSelectionInput(), and ILIAS\Repository\lng().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationGUI\activateContentTranslation(), and ILIAS\ILIASObject\Properties\Translations\TranslationGUI\addContentTranslationToolbarActionAndRetrieveModal().
|
private |
Definition at line 215 of file class.TranslationGUI.php.
References ILIAS\ILIASObject\Properties\Translations\TranslationGUI\buildLangSelectionInput(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), null, and ILIAS\Repository\refinery().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationGUI\addAddLanguagesToolbarActionAndRetrieveModal(), and ILIAS\ILIASObject\Properties\Translations\TranslationGUI\addTranslation().
|
private |
Definition at line 326 of file class.TranslationGUI.php.
References $c, and ILIAS\Repository\lng().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationGUI\buildLangSelectionInput(), and ILIAS\ILIASObject\Properties\Translations\TranslationGUI\listTranslations().
|
private |
Definition at line 276 of file class.TranslationGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationGUI\addContentTranslationToolbarActionAndRetrieveModal().
|
private |
Definition at line 305 of file class.TranslationGUI.php.
References $c, ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ILIAS\Repository\user(), and ILIAS\UI\Implementation\Component\Input\ViewControl\withAdditionalTransformation().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationGUI\getActivateMultilingualityModal().
ILIAS\ILIASObject\Properties\Translations\TranslationGUI::listTranslations | ( | ?RoundtripModal | $lang_modal = null | ) |
Definition at line 103 of file class.TranslationGUI.php.
References ILIAS\ILIASObject\Properties\Translations\TranslationGUI\addAddLanguagesToolbarActionAndRetrieveModal(), ILIAS\ILIASObject\Properties\Translations\TranslationGUI\addContentTranslationToolbarActionAndRetrieveModal(), ILIAS\Repository\ctrl(), ILIAS\ILIASObject\Properties\Translations\TranslationGUI\getArrayWithAddableLanguages(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and ILIAS\Repository\refinery().
Referenced by ILIAS\ILIASObject\Properties\Translations\TranslationGUI\activateContentTranslation(), ILIAS\ILIASObject\Properties\Translations\TranslationGUI\addTranslation(), and ILIAS\ILIASObject\Properties\Translations\TranslationGUI\deactivateContentTranslation().
ILIAS\ILIASObject\Properties\Translations\TranslationGUI::supportContentTranslation | ( | bool | $content_translation | ) |
Definition at line 66 of file class.TranslationGUI.php.
|
private |
Definition at line 47 of file class.TranslationGUI.php.
|
private |
Definition at line 48 of file class.TranslationGUI.php.
|
private |
Definition at line 45 of file class.TranslationGUI.php.
|
private |
Definition at line 41 of file class.TranslationGUI.php.
|
private |
Definition at line 42 of file class.TranslationGUI.php.
|
private |
Definition at line 40 of file class.TranslationGUI.php.
|
private |
Definition at line 43 of file class.TranslationGUI.php.