|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Class ilObjLanguageExtGUI. More...
Inheritance diagram for ilObjLanguageExtGUI:
Collaboration diagram for ilObjLanguageExtGUI: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 () | |
Public Member Functions inherited from ilObjectGUI | |
| 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 () | |
Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback | |
| 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... | |
Protected Member Functions inherited from ilObjectGUI | |
| 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().
Here is the call graph for this function:
|
protected |
Set the locator for admin mode (Overwritten from ilObjectGUI, called by prepareOutput)
Reimplemented from ilObjectGUI.
Definition at line 890 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjLanguageAccess\_isPageTranslation(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilObjLanguageExtGUI::addNewEntryObject | ( | ?ilPropertyFormGUI | $a_form = null | ) |
Definition at line 954 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjectGUI\$id, ilObjectGUI\$tpl, ILIAS\FileDelivery\http(), initAddNewEntryForm(), and ILIAS\UICore\GlobalTemplate\setContent().
Referenced by saveNewEntryObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjLanguageExtGUI::applyFilterObject | ( | ) |
Apply filter.
Definition at line 379 of file class.ilObjLanguageExtGUI.php.
References getViewTable(), and ilObjectGUI\viewObject().
Here is the call graph for this function:
|
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 103 of file class.ilObjLanguageExtGUI.php.
|
protected |
Definition at line 930 of file class.ilObjLanguageExtGUI.php.
References $DIC, $res, and ILIAS\Repository\lng().
Here is the call graph for this function:| ilObjLanguageExtGUI::cancelObject | ( | ) |
Cancel the current action.
Reimplemented from ilObjectGUI.
Definition at line 139 of file class.ilObjLanguageExtGUI.php.
References ilObjectGUI\viewObject().
Here is the call graph for this function:| ilObjLanguageExtGUI::downloadObject | ( | ) |
Download a language file.
Definition at line 576 of file class.ilObjLanguageExtGUI.php.
References $filename, ilUtil\deliverData(), getSession(), ILIAS\FileDelivery\http(), ILIAS_VERSION, ILIAS\Repository\object(), ilSession\set(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilObjLanguageExtGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilObjectGUI.
Definition at line 120 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjLanguageAccess\_checkMaintenance(), ILIAS\Repository\ctrl(), error(), exit, and ILIAS\Repository\lng().
Here is the call graph for this function:| ilObjLanguageExtGUI::exportObject | ( | ) |
Show the screen to export a language file.
Definition at line 538 of file class.ilObjLanguageExtGUI.php.
References ILIAS\Repository\ctrl(), getSession(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilObjLanguageExtGUI::getAdminTabs | ( | ) |
Get tabs for admin mode (Overwritten from ilObjectGUI, called by prepareOutput)
Reimplemented from ilObjectGUI.
Definition at line 823 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjLanguageAccess\_isPageTranslation(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilObjLanguageExtGUI::getId | ( | ) |
get the language object id (needed for filter serialization) Return language object id
Definition at line 112 of file class.ilObjLanguageExtGUI.php.
References ilObjectGUI\$id.
|
private |
Definition at line 1074 of file class.ilObjLanguageExtGUI.php.
References ilSession\get().
Referenced by __construct(), downloadObject(), exportObject(), initNewImportForm(), and maintainObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Get success message after variables were saved.
Definition at line 1065 of file class.ilObjLanguageExtGUI.php.
References $DIC, Vendor\Package\$f, and $renderer.
Referenced by viewObject().
Here is the caller graph for this function:
|
protected |
Get the table to view language entries.
Definition at line 147 of file class.ilObjLanguageExtGUI.php.
References ILIAS\Repository\object().
Referenced by applyFilterObject(), resetFilterObject(), and viewObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjLanguageExtGUI::importObject | ( | ) |
Show the screen to import a language file.
Definition at line 444 of file class.ilObjLanguageExtGUI.php.
References initNewImportForm().
Here is the call graph for this function:
|
protected |
Definition at line 970 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjectGUI\$id, ILIAS\UI\Implementation\Component\Input\Field\$options, ilObjLanguageAccess\_getSavedModules(), ilObjLanguageAccess\_getSavedTopics(), ILIAS\FileDelivery\http(), and ILIAS\Repository\lng().
Referenced by addNewEntryObject(), and saveNewEntryObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 450 of file class.ilObjLanguageExtGUI.php.
References ILIAS\Repository\ctrl(), getSession(), and ILIAS\Repository\lng().
Referenced by importObject(), and uploadObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 784 of file class.ilObjLanguageExtGUI.php.
References $DIC, $ilSetting, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by saveSettingsObject(), and settingsObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjLanguageExtGUI::maintainExecuteObject | ( | ) |
Definition at line 664 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().
Here is the call graph for this function:| ilObjLanguageExtGUI::maintainObject | ( | ) |
Process the language maintenance.
Definition at line 629 of file class.ilObjLanguageExtGUI.php.
References ILIAS\Repository\ctrl(), getSession(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilObjLanguageExtGUI::resetFilterObject | ( | ) |
Reset filter.
Definition at line 390 of file class.ilObjLanguageExtGUI.php.
References getViewTable(), and ilObjectGUI\viewObject().
Here is the call graph for this function:| ilObjLanguageExtGUI::saveNewEntryObject | ( | ) |
Definition at line 1015 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjectGUI\$id, $ilDB, addNewEntryObject(), initAddNewEntryForm(), ILIAS\Repository\lng(), ilObjLanguage\replaceLangEntry(), and ilObjLanguage\replaceLangModule().
Here is the call graph for this function:| ilObjLanguageExtGUI::saveObject | ( | ) |
Save the changed translations.
Reimplemented from ilObjectGUI.
Definition at line 401 of file class.ilObjLanguageExtGUI.php.
References $post, ilObjLanguageExt\_saveValues(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilUtil\stripSlashes(), and ilObjectGUI\viewObject().
Here is the call graph for this function:| ilObjLanguageExtGUI::saveSettingsObject | ( | ) |
Set the language settings.
Definition at line 765 of file class.ilObjLanguageExtGUI.php.
References $DIC, $ilSetting, ILIAS\FileDelivery\http(), initNewSettingsForm(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilObjLanguageExtGUI::settingsObject | ( | ) |
View the language settings.
Definition at line 756 of file class.ilObjLanguageExtGUI.php.
References initNewSettingsForm().
Here is the call graph for this function:
|
protected |
Set the Title and the description (Overwritten from ilObjectGUI, called by prepareOutput)
Reimplemented from ilObjectGUI.
Definition at line 914 of file class.ilObjLanguageExtGUI.php.
References ilObjLanguageAccess\_isPageTranslation(), ilUtil\getImagePath(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilObjLanguageExtGUI::statisticsObject | ( | ) |
Print out statistics about the language.
Definition at line 808 of file class.ilObjLanguageExtGUI.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:| ilObjLanguageExtGUI::uploadObject | ( | ) |
Process an uploaded language file.
Definition at line 483 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().
Here is the call graph for this function:| ilObjLanguageExtGUI::viewObject | ( | int | $changesSuccessBool = 0 | ) |
Show the edit screen.
Definition at line 161 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().
Here is the call graph for this function:
|
private |
Definition at line 43 of file class.ilObjLanguageExtGUI.php.
|
private |
Definition at line 42 of file class.ilObjLanguageExtGUI.php.