ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Class ilObjLanguageExtGUI. More...
Public Member Functions | |
__construct ($a_data, int $a_id=0, bool $a_call_by_reference=false) | |
Constructor. More... | |
getId () | |
get the language object id (needed for filter serialization) Return language object id More... | |
executeCommand () | |
execute command More... | |
cancelObject () | |
Cancel the current action. More... | |
viewObject (int $changesSuccessBool=0) | |
Show the edit screen. More... | |
applyFilterObject () | |
Apply filter. More... | |
resetFilterObject () | |
Reset filter. More... | |
saveObject () | |
Save the changed translations. More... | |
importObject () | |
Show the screen to import a language file. More... | |
uploadObject () | |
Process an uploaded language file. More... | |
exportObject () | |
Show the screen to export a language file. More... | |
downloadObject () | |
Download a language file. More... | |
maintainObject () | |
Process the language maintenance. More... | |
maintainExecuteObject () | |
settingsObject () | |
View the language settings. More... | |
saveSettingsObject () | |
Set the language settings. More... | |
statisticsObject () | |
Print out statistics about the language. More... | |
getAdminTabs () | |
Get tabs for admin mode (Overwritten from ilObjectGUI, called by prepareOutput) More... | |
addNewEntryObject (?ilPropertyFormGUI $a_form=null) | |
saveNewEntryObject () | |
![]() | |
getRefId () | |
setAdminMode (string $mode) | |
getAdminMode () | |
getObject () | |
executeCommand () | |
withReferences () | |
determines whether objects are referenced or not (got ref ids or not) More... | |
setCreationMode (bool $mode=true) | |
If true, a creation screen is displayed the current [ref_id] does belong to the parent class The mode is determined in ilRepositoryGUI. More... | |
getCreationMode () | |
prepareOutput (bool $show_sub_objects=true) | |
getAdminTabs () | |
administration tabs show only permissions and trash folder More... | |
getHTML () | |
confirmedDeleteObject () | |
confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More... | |
cancelObject () | |
cancel action and go back to previous page More... | |
createObject () | |
create new object form More... | |
editAvailabilityPeriodObject () | |
saveAvailabilityPeriodObject () | |
cancelCreation () | |
cancel create action and go back to repository parent More... | |
saveObject () | |
getDidacticTemplateVar (string $type) | |
Get didactic template setting from creation screen. More... | |
putObjectInTree (ilObject $obj, ?int $parent_node_id=null) | |
Add object to tree at given position. More... | |
editObject () | |
addExternalEditFormCustom (ilPropertyFormGUI $form) | |
updateObject () | |
updates object entry in object_data More... | |
getFormAction (string $cmd, string $default_form_action="") | |
Get form action for command (command is method name without "Object", e.g. More... | |
isVisible (int $ref_id, string $type) | |
viewObject () | |
viewObject container presentation for "administration -> repository, trash, permissions" More... | |
deleteObject (bool $error=false) | |
Display deletion confirmation screen. More... | |
setColumnSettings (ilColumnGUI $column_gui) | |
addToDeskObject () | |
removeFromDeskObject () | |
![]() | |
callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb) | |
Protected Member Functions | |
assignObject () | |
Assign the extended language object. More... | |
getViewTable () | |
Get the table to view language entries. More... | |
initNewImportForm () | |
initNewSettingsForm () | |
addAdminLocatorItems (bool $do_not_add_object=false) | |
Set the locator for admin mode (Overwritten from ilObjectGUI, called by prepareOutput) More... | |
setTitleAndDescription () | |
Set the Title and the description (Overwritten from ilObjectGUI, called by prepareOutput) More... | |
buildMissingEntries (?array $a_missing=null) | |
initAddNewEntryForm (?string $a_id=null) | |
getSuccessMessage () | |
Get success message after variables were saved. More... | |
![]() | |
getObjectService () | |
assignObject () | |
setTitleAndDescription () | |
createActionDispatcherGUI () | |
initHeaderAction (?string $sub_type=null, ?int $sub_id=null) | |
Add header action menu. More... | |
insertHeaderAction (?ilObjectListGUI $list_gui=null) | |
Insert header action into main template. More... | |
addHeaderAction () | |
Add header action menu. More... | |
redrawHeaderActionObject () | |
Ajax call: redraw action header only. More... | |
setTabs () | |
set admin tabs More... | |
setAdminTabs () | |
set admin tabs More... | |
setLocator () | |
addLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) More... | |
omitLocator (bool $omit=true) | |
addAdminLocatorItems (bool $do_not_add_object=false) | |
should be overwritten to add object specific items (repository items are preloaded) More... | |
getCreationFormsHTML (StandardForm|ilPropertyFormGUI|array $form) | |
getTitleForCreationFormPage () | |
getCreationFormTitle () | |
initCreateForm (string $new_type) | |
didacticTemplatesToForm () | |
initDidacticTemplate (ilPropertyFormGUI $form) | |
retrieveAdditionalDidacticTemplateOptions () | |
addAdoptContentLinkToToolbar () | |
addImportButtonToToolbar () | |
addAvailabilityPeriodButtonToToolbar (ilToolbarGUI $toolbar) | |
parseDidacticTemplateVar (string $var, string $type) | |
afterSave (ilObject $new_object) | |
Post (successful) object creation hook. More... | |
initEditForm () | |
initEditCustomForm (ilPropertyFormGUI $a_form) | |
Add custom fields to update form. More... | |
getEditFormValues () | |
getEditFormCustomValues (array &$a_values) | |
Add values to custom edit fields. More... | |
validateCustom (ilPropertyFormGUI $form) | |
Validate custom values (if not possible with checkInput()) More... | |
updateCustom (ilPropertyFormGUI $form) | |
Insert custom update form values into object. More... | |
afterUpdate () | |
Post (successful) object update hook. More... | |
routeImportCmdObject () | |
importFile (string $file_to_import, string $path_to_uploaded_file_in_temp_dir) | |
deleteUploadedImportFile (string $path_to_uploaded_file_in_temp_dir) | |
afterImport (ilObject $new_object) | |
Post (successful) object import hook. More... | |
setFormAction (string $cmd, string $form_action) | |
getReturnLocation (string $cmd, string $default_location="") | |
Get return location for command (command is method name without "Object", e.g. More... | |
setReturnLocation (string $cmd, string $location) | |
set specific return location for command More... | |
getTargetFrame (string $cmd, string $default_target_frame="") | |
get target frame for command (command is method name without "Object", e.g. More... | |
setTargetFrame (string $cmd, string $target_frame) | |
Set specific target frame for command. More... | |
showPossibleSubObjects () | |
show possible sub objects (pull down menu) More... | |
getTabs () | |
@abstract overwrite in derived GUI class of your object type More... | |
redirectToRefId (int $ref_id, string $cmd="") | |
redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current ["ref_id"] value of the request More... | |
getCenterColumnHTML () | |
Get center column. More... | |
getRightColumnHTML () | |
Display right column. More... | |
checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null) | |
checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null) | |
enableDragDropFileUpload () | |
Enables the file upload into this object by dropping files. More... | |
getCreatableObjectTypes () | |
buildAddNewItemElements (array $subtypes, string $create_target_class=ilRepositoryGUI::class, ?int $redirect_target_ref_id=null,) | |
buildGroup (string $create_target_class, array $obj_types_in_group, string $title, array $subtypes) | |
Private Member Functions | |
getSession () | |
Private Attributes | |
const | ILIAS_LANGUAGE_MODULE = "components/ILIAS/Language" |
string | $langmode |
Class ilObjLanguageExtGUI.
This class is a replacement for ilObjLanguageGUI which is currently not used in ILIAS.
@ilCtrl_Calls ilObjLanguageExtGUI: @ilCtrl_IsCalledBy ilObjLanguageExtGUI: ilDashboardGUI
Definition at line 40 of file class.ilObjLanguageExtGUI.php.
ilObjLanguageExtGUI::__construct | ( | $a_data, | |
int | $a_id = 0 , |
||
bool | $a_call_by_reference = false |
||
) |
Constructor.
Note: The GET param 'obj_id' is the language object id The GET param 'ref_id' is the language folder (if present)
mixed | $a_data | (ignored) $a_id id (ignored) $a_call_by_reference call-by-reference (ignored) |
Definition at line 56 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjectGUI\$lng, ILIAS\GlobalScreen\Provider\__construct(), ilObjLanguageAccess\_lookupId(), getSession(), ilLanguage\getUserLanguage(), ILIAS\FileDelivery\http(), ilLanguage\loadLanguageModule(), ILIAS\Repository\refinery(), and ilSession\set().
|
protected |
Set the locator for admin mode (Overwritten from ilObjectGUI, called by prepareOutput)
Reimplemented from ilObjectGUI.
Definition at line 887 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjLanguageAccess\_isPageTranslation(), and ILIAS\Repository\lng().
ilObjLanguageExtGUI::addNewEntryObject | ( | ?ilPropertyFormGUI | $a_form = null | ) |
Definition at line 951 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjectGUI\$id, ilObjectGUI\$tpl, ILIAS\FileDelivery\http(), initAddNewEntryForm(), and ILIAS\UICore\GlobalTemplate\setContent().
Referenced by saveNewEntryObject().
ilObjLanguageExtGUI::applyFilterObject | ( | ) |
Apply filter.
Definition at line 376 of file class.ilObjLanguageExtGUI.php.
References getViewTable(), and ilObjectGUI\viewObject().
|
protected |
Assign the extended language object.
Overwritten from ilObjectGUI to use the extended language object. (Will be deleted when ilObjLanguageExt is merged with ilObjLanguage)
Reimplemented from ilObjectGUI.
Definition at line 100 of file class.ilObjLanguageExtGUI.php.
|
protected |
Definition at line 927 of file class.ilObjLanguageExtGUI.php.
References $DIC, $res, and ILIAS\Repository\lng().
ilObjLanguageExtGUI::cancelObject | ( | ) |
Cancel the current action.
Reimplemented from ilObjectGUI.
Definition at line 136 of file class.ilObjLanguageExtGUI.php.
References ilObjectGUI\viewObject().
ilObjLanguageExtGUI::downloadObject | ( | ) |
Download a language file.
Definition at line 573 of file class.ilObjLanguageExtGUI.php.
References $filename, ilUtil\deliverData(), getSession(), ILIAS\FileDelivery\http(), ILIAS_VERSION, ILIAS\Repository\object(), ilSession\set(), and ilUtil\stripSlashes().
ilObjLanguageExtGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilObjectGUI.
Definition at line 117 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjLanguageAccess\_checkMaintenance(), ILIAS\Repository\ctrl(), error(), exit, and ILIAS\Repository\lng().
ilObjLanguageExtGUI::exportObject | ( | ) |
Show the screen to export a language file.
Definition at line 535 of file class.ilObjLanguageExtGUI.php.
References ILIAS\Repository\ctrl(), getSession(), and ILIAS\Repository\lng().
ilObjLanguageExtGUI::getAdminTabs | ( | ) |
Get tabs for admin mode (Overwritten from ilObjectGUI, called by prepareOutput)
Reimplemented from ilObjectGUI.
Definition at line 820 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjLanguageAccess\_isPageTranslation(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
ilObjLanguageExtGUI::getId | ( | ) |
get the language object id (needed for filter serialization) Return language object id
Definition at line 109 of file class.ilObjLanguageExtGUI.php.
References ilObjectGUI\$id.
|
private |
Definition at line 1071 of file class.ilObjLanguageExtGUI.php.
References ilSession\get().
Referenced by __construct(), downloadObject(), exportObject(), initNewImportForm(), and maintainObject().
|
protected |
Get success message after variables were saved.
Definition at line 1062 of file class.ilObjLanguageExtGUI.php.
References $DIC, Vendor\Package\$f, and $renderer.
Referenced by viewObject().
|
protected |
Get the table to view language entries.
Definition at line 144 of file class.ilObjLanguageExtGUI.php.
References ILIAS\Repository\object().
Referenced by applyFilterObject(), resetFilterObject(), and viewObject().
ilObjLanguageExtGUI::importObject | ( | ) |
Show the screen to import a language file.
Definition at line 441 of file class.ilObjLanguageExtGUI.php.
References initNewImportForm().
|
protected |
Definition at line 967 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjectGUI\$id, ilObjLanguageAccess\_getSavedModules(), ilObjLanguageAccess\_getSavedTopics(), ILIAS\FileDelivery\http(), and ILIAS\Repository\lng().
Referenced by addNewEntryObject(), and saveNewEntryObject().
|
protected |
Definition at line 447 of file class.ilObjLanguageExtGUI.php.
References ILIAS\Repository\ctrl(), getSession(), and ILIAS\Repository\lng().
Referenced by importObject(), and uploadObject().
|
protected |
Definition at line 781 of file class.ilObjLanguageExtGUI.php.
References $DIC, $ilSetting, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by saveSettingsObject(), and settingsObject().
ilObjLanguageExtGUI::maintainExecuteObject | ( | ) |
Definition at line 661 of file class.ilObjLanguageExtGUI.php.
References ilObjLanguageExt\_deleteValues(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilSession\set(), and ilUtil\stripSlashes().
ilObjLanguageExtGUI::maintainObject | ( | ) |
Process the language maintenance.
Definition at line 626 of file class.ilObjLanguageExtGUI.php.
References ILIAS\Repository\ctrl(), getSession(), and ILIAS\Repository\lng().
ilObjLanguageExtGUI::resetFilterObject | ( | ) |
Reset filter.
Definition at line 387 of file class.ilObjLanguageExtGUI.php.
References getViewTable(), and ilObjectGUI\viewObject().
ilObjLanguageExtGUI::saveNewEntryObject | ( | ) |
Definition at line 1012 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjectGUI\$id, $ilDB, $lang, addNewEntryObject(), initAddNewEntryForm(), ILIAS\Repository\lng(), ilObjLanguage\replaceLangEntry(), and ilObjLanguage\replaceLangModule().
ilObjLanguageExtGUI::saveObject | ( | ) |
Save the changed translations.
Reimplemented from ilObjectGUI.
Definition at line 398 of file class.ilObjLanguageExtGUI.php.
References $post, ilObjLanguageExt\_saveValues(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilUtil\stripSlashes(), and ilObjectGUI\viewObject().
ilObjLanguageExtGUI::saveSettingsObject | ( | ) |
Set the language settings.
Definition at line 762 of file class.ilObjLanguageExtGUI.php.
References $DIC, $ilSetting, ILIAS\FileDelivery\http(), initNewSettingsForm(), and ILIAS\Repository\lng().
ilObjLanguageExtGUI::settingsObject | ( | ) |
View the language settings.
Definition at line 753 of file class.ilObjLanguageExtGUI.php.
References initNewSettingsForm().
|
protected |
Set the Title and the description (Overwritten from ilObjectGUI, called by prepareOutput)
Reimplemented from ilObjectGUI.
Definition at line 911 of file class.ilObjLanguageExtGUI.php.
References ilObjLanguageAccess\_isPageTranslation(), ilUtil\getImagePath(), and ILIAS\Repository\lng().
ilObjLanguageExtGUI::statisticsObject | ( | ) |
Print out statistics about the language.
Definition at line 805 of file class.ilObjLanguageExtGUI.php.
References ILIAS\Repository\lng().
ilObjLanguageExtGUI::uploadObject | ( | ) |
Process an uploaded language file.
Definition at line 480 of file class.ilObjLanguageExtGUI.php.
References $DIC, Vendor\Package\$e, ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ilFileUtils\ilTempnam(), initNewImportForm(), ILIAS\Repository\lng(), ilSession\set(), and ilUtil\stripSlashes().
ilObjLanguageExtGUI::viewObject | ( | int | $changesSuccessBool = 0 | ) |
Show the edit screen.
Definition at line 158 of file class.ilObjLanguageExtGUI.php.
References $comments, ilObjectGUI\$data, $DIC, ILIAS\GlobalScreen\Scope\$topics, ilObjectGUI\$tpl, ilObjLanguageExt\_getRemarks(), ilObjLanguageAccess\_getSavedModules(), ilObjLanguageAccess\_getSavedTopics(), ilObjLanguageExt\_getValues(), ilObjLanguageAccess\_isPageTranslation(), getSuccessMessage(), getViewTable(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ILIAS\Repository\refinery(), ILIAS\UICore\GlobalTemplate\setContent(), and ILIAS\UICore\GlobalTemplate\setVariable().
|
private |
Definition at line 43 of file class.ilObjLanguageExtGUI.php.
|
private |
Definition at line 42 of file class.ilObjLanguageExtGUI.php.