| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
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 | 
| LOMServices | $lom_services | 
| 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 35 of file class.ilObjectTranslationGUI.php.
      
  | 
  private | 
Definition at line 262 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 513 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 476 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 553 of file class.ilObjectTranslationGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and retrieveTrafoToRemoveDefaultLang().
 Here is the call graph for this function:| ilObjectTranslationGUI::executeCommand | ( | ) | 
Definition at line 185 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 305 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 250 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 296 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 180 of file class.ilObjectTranslationGUI.php.
References $fallback_lang_mode.
| ilObjectTranslationGUI::getMultiLangFormInput | ( | bool | $add = false | ) | 
Definition at line 420 of file class.ilObjectTranslationGUI.php.
References 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 103 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 115 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 170 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 93 of file class.ilObjectTranslationGUI.php.
| ilObjectTranslationGUI::listTranslations | ( | bool | $get_post_values = false,  | 
        
| bool | $add = false  | 
        ||
| ) | 
Definition at line 210 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 571 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 457 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 493 of file class.ilObjectTranslationGUI.php.
References $data, ILIAS\Repository\ctrl(), getAddLanguagesModal(), and ILIAS\Repository\lng().
 Here is the call graph for this function:| ilObjectTranslationGUI::saveTranslations | ( | ) | 
Definition at line 317 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 175 of file class.ilObjectTranslationGUI.php.
| ilObjectTranslationGUI::setFallback | ( | ) | 
Definition at line 591 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 165 of file class.ilObjectTranslationGUI.php.
| ilObjectTranslationGUI::supportContentTranslation | ( | bool | $content_translation | ) | 
Definition at line 98 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 48 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 50 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 65 of file class.ilObjectTranslationGUI.php.
Referenced by getEnableFallbackLanguage(), and listTranslations().
      
  | 
  protected | 
Definition at line 64 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 49 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 57 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 60 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 59 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 61 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 54 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 56 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 55 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 66 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 63 of file class.ilObjectTranslationGUI.php.
Referenced by getTitleDescrOnlyMode().
      
  | 
  protected | 
Definition at line 46 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 53 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 47 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 39 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 42 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 45 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 41 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 38 of file class.ilObjectTranslationGUI.php.
      
  | 
  protected | 
Definition at line 43 of file class.ilObjectTranslationGUI.php.