| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
GUI class for object translation handling. More...
 Collaboration diagram for ilObjectTranslationGUI:Public Member Functions | |
| 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 () | |
| getMultiLangFormInput (bool $add=false) | |
| saveContentTranslationActivation () | |
| deactivateContentMultiLang () | |
| saveLanguages () | |
| confirmDeleteTranslations () | |
| deleteTranslations () | |
| setFallback () | |
Protected Attributes | |
| const | CMD_LIST_TRANSLATIONS = 'listTranslations' | 
| const | CMD_SAVE_TRANSLATIONS = 'saveTranslations' | 
| const | CMD_ADD_TRANSLATION = 'addTranslation' | 
| const | CMD_DELETE_TRANSLATIONS = 'deleteTranslations' | 
| const | CMD_SAVE_LANGUAGES = 'saveLanguages' | 
| const | CMD_CONFIRM_REMOVE_LANGUAGES = 'confirmDeleteTranslations' | 
| const | CMD_SET_FALLBACK = 'setFallback' | 
| const | CMD_DEACTIVATE_CONTENT_MULTILANG = 'deactivateContentMultiLang' | 
| const | CMD_SAVE_CONTENT_TRANSLATION_ACTIVATION = 'saveContentTranslationActivation' | 
| ilToolbarGUI | $toolbar | 
| ilObjUser | $user | 
| ilAccess | $access | 
| ilLanguage | $lng | 
| ilCtrl | $ctrl | 
| ilGlobalTemplateInterface | $tpl | 
| UIFactory | $ui_factory | 
| Renderer | $ui_renderer | 
| ArrayBasedRequestWrapper | $post_wrapper | 
| RequestInterface | $request | 
| Refinery | $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 () | |
| getAddLanguagesModal () | |
| addContentTranslationToolbarActionAndRetrieveCorrespondingModal () | |
| getConfirmDeactivateMultilingualityModal (string $text_tag) | |
| getActivateMultilingualityModal () | |
| retrieveTrafoToRemoveDefaultLang () | |
GUI class for object translation handling.
Definition at line 34 of file class.ilObjectTranslationGUI.php.
      
  | 
  private | 
Definition at line 260 of file class.ilObjectTranslationGUI.php.
References getActivateMultilingualityModal(), getConfirmDeactivateMultilingualityModal(), getTitleDescrOnlyMode(), ILIAS\Repository\lng(), and ILIAS\Repository\toolbar().
Referenced by listTranslations().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilObjectTranslationGUI::confirmDeleteTranslations | ( | ) | 
Definition at line 508 of file class.ilObjectTranslationGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and retrieveTrafoToRemoveDefaultLang().
 Here is the call graph for this function:| ilObjectTranslationGUI::deactivateContentMultiLang | ( | ) | 
Definition at line 471 of file class.ilObjectTranslationGUI.php.
References ILIAS\Repository\ctrl(), getTitleDescrOnlyMode(), and ILIAS\Repository\lng().
 Here is the call graph for this function:| ilObjectTranslationGUI::deleteTranslations | ( | ) | 
Definition at line 548 of file class.ilObjectTranslationGUI.php.
References $lang, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and retrieveTrafoToRemoveDefaultLang().
 Here is the call graph for this function:| ilObjectTranslationGUI::executeCommand | ( | ) | 
Definition at line 182 of file class.ilObjectTranslationGUI.php.
References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
 Here is the call graph for this function:
      
  | 
  private | 
Definition at line 303 of file class.ilObjectTranslationGUI.php.
References ILIAS\Repository\ctrl(), getMultiLangFormInput(), and ILIAS\Repository\lng().
Referenced by addContentTranslationToolbarActionAndRetrieveCorrespondingModal(), and saveContentTranslationActivation().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 248 of file class.ilObjectTranslationGUI.php.
References ILIAS\Repository\ctrl(), getMultiLangFormInput(), and ILIAS\Repository\lng().
Referenced by listTranslations(), and saveLanguages().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 294 of file class.ilObjectTranslationGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by addContentTranslationToolbarActionAndRetrieveCorrespondingModal().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilObjectTranslationGUI::getEnableFallbackLanguage | ( | ) | 
Definition at line 177 of file class.ilObjectTranslationGUI.php.
References $fallback_lang_mode.
| ilObjectTranslationGUI::getMultiLangFormInput | ( | bool | $add = false | ) | 
Definition at line 418 of file class.ilObjectTranslationGUI.php.
References ilMDLanguageItem\_getLanguages(), ilMDLanguageItem\_getPossibleLanguageCodes(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ILIAS\Repository\user(), and ILIAS\UI\Implementation\Component\Input\ViewControl\withAdditionalTransformation().
Referenced by getActivateMultilingualityModal(), and getAddLanguagesModal().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 100 of file class.ilObjectTranslationGUI.php.
References $data, and ILIAS\Repository\int().
Referenced by listTranslations().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 112 of file class.ilObjectTranslationGUI.php.
References ILIAS\Repository\refinery().
Referenced by listTranslations().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilObjectTranslationGUI::getTitleDescrOnlyMode | ( | ) | 
Definition at line 167 of file class.ilObjectTranslationGUI.php.
References $title_descr_only.
Referenced by addContentTranslationToolbarActionAndRetrieveCorrespondingModal(), deactivateContentMultiLang(), and listTranslations().
 Here is the caller graph for this function:| ilObjectTranslationGUI::hideDescription | ( | bool | $hide | ) | 
Definition at line 90 of file class.ilObjectTranslationGUI.php.
| ilObjectTranslationGUI::listTranslations | ( | bool | $get_post_values = false,  | 
        
| bool | $add = false  | 
        ||
| ) | 
Definition at line 207 of file class.ilObjectTranslationGUI.php.
References $fallback_lang_mode, ilObject\_lookupType(), addContentTranslationToolbarActionAndRetrieveCorrespondingModal(), getAddLanguagesModal(), getTableValuesByObjects(), getTableValuesByRequest(), getTitleDescrOnlyMode(), ILIAS\Repository\lng(), ilTable2GUI\setData(), and ILIAS\Repository\toolbar().
Referenced by saveTranslations(), and setFallback().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 566 of file class.ilObjectTranslationGUI.php.
References ILIAS\Repository\refinery().
Referenced by confirmDeleteTranslations(), and deleteTranslations().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilObjectTranslationGUI::saveContentTranslationActivation | ( | ) | 
Definition at line 452 of file class.ilObjectTranslationGUI.php.
References $data, ILIAS\Repository\ctrl(), and getActivateMultilingualityModal().
 Here is the call graph for this function:| ilObjectTranslationGUI::saveLanguages | ( | ) | 
Definition at line 488 of file class.ilObjectTranslationGUI.php.
References $data, $lang, ILIAS\Repository\ctrl(), getAddLanguagesModal(), and ILIAS\Repository\lng().
 Here is the call graph for this function:| ilObjectTranslationGUI::saveTranslations | ( | ) | 
Definition at line 315 of file class.ilObjectTranslationGUI.php.
References $check, ILIAS\Repository\ctrl(), listTranslations(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ilUtil\stripSlashes().
 Here is the call graph for this function:| ilObjectTranslationGUI::setEnableFallbackLanguage | ( | bool | $val | ) | 
Definition at line 172 of file class.ilObjectTranslationGUI.php.
| ilObjectTranslationGUI::setFallback | ( | ) | 
Definition at line 586 of file class.ilObjectTranslationGUI.php.
References ILIAS\Repository\ctrl(), listTranslations(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
 Here is the call graph for this function:| 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 162 of file class.ilObjectTranslationGUI.php.
| ilObjectTranslationGUI::supportContentTranslation | ( | bool | $content_translation | ) | 
Definition at line 95 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 47 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 49 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 63 of file class.ilObjectTranslationGUI.php.
Referenced by getEnableFallbackLanguage(), and listTranslations().
      
  | 
  protected | 
Definition at line 62 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 48 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 58 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 57 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 59 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 53 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 55 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 54 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 64 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 61 of file class.ilObjectTranslationGUI.php.
Referenced by getTitleDescrOnlyMode().
      
  | 
  protected | 
Definition at line 45 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 50 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 51 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 52 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 46 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 38 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 41 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 43 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 39 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 36 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 44 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 40 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 37 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 42 of file class.ilObjectTranslationGUI.php.