|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
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 | |
| __construct ($data, int $id=0, bool $call_by_reference=true, bool $prepare_output=true) | |
| 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) | |
| redirectAfterCreation () | |
| Redirect after creation, see https://docu.ilias.de/goto_docu_wiki_wpage_5035_1357.html Should be overwritten and redirect to settings screen. More... | |
| 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... | |
| initCreationForms (string $new_type) | |
| Init creation forms. More... | |
| getCreationFormsHTML (array $forms) | |
| Get HTML for creation forms (accordion) More... | |
| initCreateForm (string $new_type) | |
| initDidacticTemplate (ilPropertyFormGUI $form) | |
| addDidacticTemplateOptions (array &$a_options) | |
| Add custom templates. More... | |
| addAdoptContentLinkToToolbar () | |
| addAvailabilityPeriodButtonToToolbar (ilToolbarGUI $toolbar) | |
| 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... | |
| initImportForm (string $new_type) | |
| importFileObject (int $parent_id=null) | |
| 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 () | |
| 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... | |
Private Member Functions | |
| getSession () | |
Private Attributes | |
| const | ILIAS_LANGUAGE_MODULE = "Services/Language" |
| string | $langmode |
Additional Inherited Members | |
Static Public Member Functions inherited from ilObjectGUI | |
| static | _gotoRepositoryRoot (bool $raise_error=false) |
| Goto repository root. More... | |
| static | _gotoRepositoryNode (int $ref_id, string $cmd="") |
| static | _gotoSharedWorkspaceNode (int $wsp_id) |
Data Fields inherited from ilObjectGUI | |
| const | ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION |
| const | ADMIN_MODE_NONE = "" |
| const | ADMIN_MODE_SETTINGS = "settings" |
| const | ADMIN_MODE_REPOSITORY = "repository" |
| const | UPLOAD_TYPE_LOCAL = 1 |
| const | UPLOAD_TYPE_UPLOAD_DIRECTORY = 2 |
| const | CFORM_NEW = 1 |
| const | CFORM_IMPORT = 2 |
| const | CFORM_CLONE = 3 |
Class ilObjLanguageExtGUI.
This class is a replacement for ilObjLanguageGUI which is currently not used in ILIAS.
ilObjLanguageExtGUI: ilObjLanguageExtGUI: ilDashboardGUI
Definition at line 45 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 62 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjectGUI\$lng, ILIAS\MetaData\Repository\Validation\Data\__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)
Definition at line 930 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::addNewEntryObject | ( | ilPropertyFormGUI | $a_form = null | ) |
Definition at line 994 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjectGUI\$id, ilObjectGUI\$tpl, ILIAS\FileDelivery\http(), initAddNewEntryForm(), ILIAS\Repository\refinery(), and ilGlobalTemplateInterface\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 385 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)
Definition at line 107 of file class.ilObjLanguageExtGUI.php.
|
protected |
Definition at line 970 of file class.ilObjLanguageExtGUI.php.
References $DIC, $res, and ILIAS\Repository\lng().
Referenced by viewObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjLanguageExtGUI::cancelObject | ( | ) |
Cancel the current action.
Definition at line 144 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 584 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
Definition at line 125 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjLanguageAccess\_checkMaintenance(), ILIAS\Repository\ctrl(), 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 545 of file class.ilObjLanguageExtGUI.php.
References ILIAS\Repository\ctrl(), getSession(), ILIAS\Repository\lng(), and ilFormPropertyGUI\setInfo().
Here is the call graph for this function:| ilObjLanguageExtGUI::getAdminTabs | ( | ) |
Get tabs for admin mode (Overwritten from ilObjectGUI, called by prepareOutput)
Definition at line 864 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 117 of file class.ilObjLanguageExtGUI.php.
References ilObjectGUI\$id.
|
private |
Definition at line 1115 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 1106 of file class.ilObjLanguageExtGUI.php.
References $DIC, Vendor\Package\$f, and ILIAS\Repository\lng().
Referenced by viewObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Get the table to view language entries.
Definition at line 152 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 450 of file class.ilObjLanguageExtGUI.php.
References initNewImportForm().
Here is the call graph for this function:
|
protected |
Definition at line 1010 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 456 of file class.ilObjLanguageExtGUI.php.
References ILIAS\Repository\ctrl(), getSession(), ILIAS\Repository\lng(), ilFormPropertyGUI\setInfo(), and ilFormPropertyGUI\setRequired().
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 793 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 673 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 637 of file class.ilObjLanguageExtGUI.php.
References ILIAS\Repository\ctrl(), getSession(), ILIAS\Repository\lng(), and ilFormPropertyGUI\setInfo().
Here is the call graph for this function:| ilObjLanguageExtGUI::resetFilterObject | ( | ) |
Reset filter.
Definition at line 396 of file class.ilObjLanguageExtGUI.php.
References getViewTable(), and ilObjectGUI\viewObject().
Here is the call graph for this function:| ilObjLanguageExtGUI::saveNewEntryObject | ( | ) |
Definition at line 1056 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjectGUI\$id, $ilDB, $lang, addNewEntryObject(), initAddNewEntryForm(), ILIAS\Repository\lng(), and ilObjLanguage\replaceLangEntry().
Here is the call graph for this function:| ilObjLanguageExtGUI::saveObject | ( | ) |
Save the changed translations.
Definition at line 407 of file class.ilObjLanguageExtGUI.php.
References ILIAS\LTI\ToolProvider\$key, $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 774 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 765 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)
Definition at line 954 of file class.ilObjLanguageExtGUI.php.
References ilObjLanguageAccess\_isPageTranslation(), ilUtil\getImagePath(), ILIAS\Repository\lng(), and ILIAS\Repository\object().
Here is the call graph for this function:| ilObjLanguageExtGUI::statisticsObject | ( | ) |
Print out statistics about the language.
Definition at line 818 of file class.ilObjLanguageExtGUI.php.
References ilObjectGUI\$data, ilObjLanguageExt\_getModules(), ilTable2GUI\EXPORT_EXCEL, ILIAS\Repository\lng(), and ILIAS\Repository\object().
Here is the call graph for this function:| ilObjLanguageExtGUI::uploadObject | ( | ) |
Process an uploaded language file.
Definition at line 490 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 167 of file class.ilObjLanguageExtGUI.php.
References $comments, ilObjectGUI\$data, $DIC, ilObjectGUI\$tpl, ilObjLanguageExt\_getRemarks(), ilObjLanguageAccess\_getSavedModules(), ilObjLanguageAccess\_getSavedTopics(), ilObjLanguageExt\_getValues(), ilObjLanguageAccess\_isPageTranslation(), buildMissingEntries(), getSuccessMessage(), getViewTable(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ILIAS\Repository\refinery(), ilGlobalTemplateInterface\setContent(), and ilGlobalTemplateInterface\setVariable().
Here is the call graph for this function:
|
protected |
Definition at line 49 of file class.ilObjLanguageExtGUI.php.
|
private |
Definition at line 48 of file class.ilObjLanguageExtGUI.php.
|
protected |
Definition at line 50 of file class.ilObjLanguageExtGUI.php.
|
private |
Definition at line 47 of file class.ilObjLanguageExtGUI.php.