ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
|
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 () | |
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 |
Additional Inherited Members | |
![]() | |
static | _gotoRepositoryRoot (bool $raise_error=false) |
Goto repository root. More... | |
static | _gotoRepositoryNode (int $ref_id, string $cmd="") |
static | _gotoSharedWorkspaceNode (int $wsp_id) |
![]() | |
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 |
const | SUPPORTED_IMPORT_MIME_TYPES = [MimeType::APPLICATION__ZIP, MimeType::APPLICATION__X_ZIP_COMPRESSED] |
Class ilObjLanguageExtGUI.
This class is a replacement for ilObjLanguageGUI which is currently not used in ILIAS.
ilObjLanguageExtGUI: 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 57 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)
Definition at line 890 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjLanguageAccess\_isPageTranslation(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
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(), ILIAS\Repository\refinery(), and ILIAS\UICore\GlobalTemplate\setContent().
Referenced by saveNewEntryObject().
ilObjLanguageExtGUI::applyFilterObject | ( | ) |
Apply filter.
Definition at line 379 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)
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().
Referenced by viewObject().
ilObjLanguageExtGUI::cancelObject | ( | ) |
Cancel the current action.
Definition at line 139 of file class.ilObjLanguageExtGUI.php.
References ilObjectGUI\viewObject().
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().
ilObjLanguageExtGUI::executeCommand | ( | ) |
execute command
Definition at line 120 of file class.ilObjLanguageExtGUI.php.
References $DIC, ilObjLanguageAccess\_checkMaintenance(), ILIAS\Repository\ctrl(), exit, and ILIAS\Repository\lng().
ilObjLanguageExtGUI::exportObject | ( | ) |
Show the screen to export a language file.
Definition at line 538 of file class.ilObjLanguageExtGUI.php.
References ILIAS\Repository\ctrl(), getSession(), ILIAS\Repository\lng(), and ilFormPropertyGUI\setInfo().
ilObjLanguageExtGUI::getAdminTabs | ( | ) |
Get tabs for admin mode (Overwritten from ilObjectGUI, called by prepareOutput)
Definition at line 823 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 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().
|
protected |
Get success message after variables were saved.
Definition at line 1065 of file class.ilObjLanguageExtGUI.php.
References $DIC, Vendor\Package\$f, $renderer, and ILIAS\Repository\lng().
Referenced by viewObject().
|
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().
ilObjLanguageExtGUI::importObject | ( | ) |
Show the screen to import a language file.
Definition at line 444 of file class.ilObjLanguageExtGUI.php.
References initNewImportForm().
|
protected |
Definition at line 970 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 450 of file class.ilObjLanguageExtGUI.php.
References ILIAS\Repository\ctrl(), getSession(), ILIAS\Repository\lng(), ilFormPropertyGUI\setInfo(), and ilFormPropertyGUI\setRequired().
Referenced by importObject(), and uploadObject().
|
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().
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().
ilObjLanguageExtGUI::maintainObject | ( | ) |
Process the language maintenance.
Definition at line 629 of file class.ilObjLanguageExtGUI.php.
References ILIAS\Repository\ctrl(), getSession(), ILIAS\Repository\lng(), and ilFormPropertyGUI\setInfo().
ilObjLanguageExtGUI::resetFilterObject | ( | ) |
Reset filter.
Definition at line 390 of file class.ilObjLanguageExtGUI.php.
References getViewTable(), and ilObjectGUI\viewObject().
ilObjLanguageExtGUI::saveNewEntryObject | ( | ) |
Definition at line 1015 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.
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().
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().
ilObjLanguageExtGUI::settingsObject | ( | ) |
View the language settings.
Definition at line 756 of file class.ilObjLanguageExtGUI.php.
References initNewSettingsForm().
|
protected |
Set the Title and the description (Overwritten from ilObjectGUI, called by prepareOutput)
Definition at line 914 of file class.ilObjLanguageExtGUI.php.
References ilObjLanguageAccess\_isPageTranslation(), ilUtil\getImagePath(), ILIAS\Repository\lng(), and ILIAS\Repository\object().
ilObjLanguageExtGUI::statisticsObject | ( | ) |
Print out statistics about the language.
Definition at line 808 of file class.ilObjLanguageExtGUI.php.
References ILIAS\Repository\lng().
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().
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(), buildMissingEntries(), getSuccessMessage(), getViewTable(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ILIAS\Repository\refinery(), ILIAS\UICore\GlobalTemplate\setContent(), and ILIAS\UICore\GlobalTemplate\setVariable().
|
protected |
Definition at line 44 of file class.ilObjLanguageExtGUI.php.
|
private |
Definition at line 43 of file class.ilObjLanguageExtGUI.php.
|
protected |
Definition at line 45 of file class.ilObjLanguageExtGUI.php.
|
private |
Definition at line 42 of file class.ilObjLanguageExtGUI.php.