ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
|
Class ilObjLanguageFolderGUI. More...
Public Member Functions | |
viewObject () | |
show installed languages More... | |
installObject (array $ids) | |
install languages More... | |
installLocalObject (array $ids) | |
Install local language modifications. More... | |
uninstallObject (array $ids) | |
uninstall language More... | |
uninstallChangesObject (array $ids) | |
Uninstall local changes in the database. More... | |
refreshObject () | |
update all installed languages More... | |
refreshSelectedObject (array $ids) | |
update selected languages More... | |
setUserLanguageObject (array $ids) | |
set user language More... | |
setSystemLanguageObject (array $ids) | |
set the system language More... | |
checkLanguageObject () | |
check all languages More... | |
out () | |
getAdminTabs () | |
executeCommand () | |
confirmRefreshObject () | |
confirmRefreshSelectedObject (array $a_ids=[]) | |
confirmUninstallObject () | |
confirmUninstallChangesObject () | |
getActions () | |
Get Actions. More... | |
listDeprecatedObject () | |
Download deprecated lang entries. More... | |
downloadDeprecatedObject () | |
Download deprecated lang entries. More... | |
![]() | |
getObjectProperties () | |
flushObjectProperties () | |
withReferences () | |
determines whether objects are referenced or not (got ref ids or not) More... | |
processAutoRating () | |
read () | |
getId () | |
setId (int $id) | |
setRefId (int $ref_id) | |
getRefId () | |
getType () | |
setType (string $type) | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions More... | |
getTitle () | |
getUntranslatedTitle () | |
Get untranslated object title WebDAV needs to access the untranslated title of an object. More... | |
setTitle (string $title) | |
getDescription () | |
setDescription (string $description) | |
getLongDescription () | |
get object long description (stored in object_description) More... | |
getImportId () | |
setImportId (string $import_id) | |
setOfflineStatus (bool $status) | |
getOfflineStatus () | |
supportsOfflineHandling () | |
getOwner () | |
getOwnerName () | |
get full name of object owner More... | |
setOwner (int $usr_id) | |
getCreateDate () | |
Get create date in YYYY-MM-DD HH-MM-SS format. More... | |
getLastUpdateDate () | |
Get last update date in YYYY-MM-DD HH-MM-SS format. More... | |
create () | |
note: title, description and type should be set when this function is called More... | |
update () | |
MDUpdateListener (string $element) | |
Metadata update listener. More... | |
createMetaData () | |
updateMetaData () | |
deleteMetaData () | |
updateOwner () | |
update owner of object in db More... | |
putInTree (int $parent_ref_id) | |
maybe this method should be in tree object!? More... | |
setPermissions (int $parent_ref_id) | |
setParentRolePermissions (int $parent_ref_id) | |
Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g. More... | |
createReference () | |
creates reference for object More... | |
countReferences () | |
delete () | |
delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More... | |
initDefaultRoles () | |
init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type. More... | |
applyDidacticTemplate (int $tpl_id) | |
getXMLZip () | |
getHTMLDirectory () | |
appendCopyInfo (int $target_id, int $copy_id) | |
Prepend Copy info if object with same name exists in that container. More... | |
cloneDependencies (int $target_id, int $copy_id) | |
Clone object dependencies. More... | |
cloneMetaData (ilObject $target_obj) | |
Copy meta data. More... | |
selfOrParentWithRatingEnabled () | |
getPossibleSubObjects (bool $filter=true) | |
get all possible sub objects of this type the object can decide which types of sub objects are possible jut in time overwrite if the decision distinguish from standard model More... | |
![]() | |
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 | |
buildConfirmModal (array $ids, string $title, string $action, string $text, string $add_text='') | |
getTabs () | |
Retrieves and adds tabs based on user permissions. More... | |
getCommandFromQueryToken (string $param) | |
editFolderObject (array $ids) | |
disableLanguageDetectionObject () | |
Disable language detection. More... | |
enableLanguageDetectionObject () | |
Enable language detection. More... | |
getUrl (string $action, ?array $lang_ids=null) | |
![]() | |
doMDUpdateListener (string $a_element) | |
beforeMDUpdateListener (string $a_element) | |
doCreateMetaData () | |
beforeCreateMetaData () | |
doUpdateMetaData () | |
beforeUpdateMetaData () | |
doDeleteMetaData () | |
beforeDeleteMetaData () | |
handleAutoRating () | |
hasAutoRating () | |
![]() | |
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 | |
getIdsFromQueryToken () | |
Additional Inherited Members | |
![]() | |
static | _lookupObjIdByImportId (string $import_id) |
Get (latest) object id for an import id. More... | |
static | _lookupImportId (int $obj_id) |
static | _lookupOwnerName (int $owner_id) |
Lookup owner name for owner id. More... | |
static | _getIdForImportId (string $import_id) |
static | _getAllReferences (int $id) |
get all reference ids for object ID More... | |
static | _lookupTitle (int $obj_id) |
static | lookupOfflineStatus (int $obj_id) |
Lookup offline status using objectDataCache. More... | |
static | _lookupOwner (int $obj_id) |
Lookup owner user ID for object ID. More... | |
static | _getIdsForTitle (string $title, string $type='', bool $partial_match=false) |
static | _lookupDescription (int $obj_id) |
static | _lookupLastUpdate (int $obj_id, bool $formatted=false) |
static | _getLastUpdateOfObjects (array $obj_ids) |
static | _lookupObjId (int $ref_id) |
static | _setDeletedDate (int $ref_id, int $deleted_by) |
static | setDeletedDates (array $ref_ids, int $user_id) |
static | _resetDeletedDate (int $ref_id) |
static | _lookupDeletedDate (int $ref_id) |
static | _writeTitle (int $obj_id, string $title) |
write title to db (static) More... | |
static | _writeDescription (int $obj_id, string $desc) |
write description to db (static) More... | |
static | _writeImportId (int $obj_id, string $import_id) |
write import id to db (static) More... | |
static | _lookupType (int $id, bool $reference=false) |
static | _isInTrash (int $ref_id) |
static | _hasUntrashedReference (int $obj_id) |
checks whether an object has at least one reference that is not in trash More... | |
static | _lookupObjectId (int $ref_id) |
static | _getObjectsDataForType (string $type, bool $omit_trash=false) |
get all objects of a certain type More... | |
static | _exists (int $id, bool $reference=false, ?string $type=null) |
checks if an object exists in object_data More... | |
static | _getObjectsByType (string $obj_type="", ?int $owner=null) |
static | _prepareCloneSelection (array $ref_ids, string $new_type, bool $show_path=true) |
Prepare copy wizard object selection. More... | |
static | getIconForType (string $type) |
static | _getIcon (int $obj_id=0, string $size="big", string $type="", bool $offline=false) |
Get icon for repository item. More... | |
static | collectDeletionDependencies (array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0) |
Collect deletion dependencies. More... | |
static | getDeletionDependencies (int $obj_id) |
Get deletion dependencies. More... | |
static | getLongDescriptions (array $obj_ids) |
static | getAllOwnedRepositoryObjects (int $user_id) |
static | fixMissingTitles ($type, array &$obj_title_map) |
Try to fix missing object titles. More... | |
static | _lookupCreationDate (int $obj_id) |
static | _getObjectTypeIdByTitle (string $type, ?\ilDBInterface $ilDB=null) |
![]() | |
static | _gotoRepositoryRoot (bool $raise_error=false) |
Goto repository root. More... | |
static | _gotoRepositoryNode (int $ref_id, string $cmd="") |
static | _gotoSharedWorkspaceNode (int $wsp_id) |
![]() | |
const | TITLE_LENGTH = 255 |
const | DESC_LENGTH = 128 |
const | LONG_DESC_LENGTH = 4000 |
const | TABLE_OBJECT_DATA = "object_data" |
array | $objectList |
string | $untranslatedTitle |
![]() | |
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 ilObjLanguageFolderGUI.
ilObjLanguageFolderGUI: ilPermissionGUI
Definition at line 34 of file class.ilObjLanguageFolderGUI.php.
|
protected |
Definition at line 143 of file class.ilObjLanguageFolderGUI.php.
References Vendor\Package\$f, ilObjectGUI\$form_action, ilObjectGUI\$id, $message, ilObjectGUI\$ui_factory, ilObjLanguage\_getLastLocalChange(), ilObject\_lookupTitle(), ilDatePresentation\formatDate(), getUrl(), IL_CAL_DATETIME, and ILIAS\Repository\lng().
Referenced by executeCommand(), and viewObject().
ilObjLanguageFolderGUI::checkLanguageObject | ( | ) |
check all languages
Definition at line 484 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\checkPermission(), and out().
Referenced by executeCommand().
ilObjLanguageFolderGUI::confirmRefreshObject | ( | ) |
Definition at line 683 of file class.ilObjLanguageFolderGUI.php.
References $lang, ilObject\_getObjectsByType(), and ilObjectGUI\checkPermission().
Referenced by executeCommand(), and viewObject().
ilObjLanguageFolderGUI::confirmRefreshSelectedObject | ( | array | $a_ids = [] | ) |
Definition at line 699 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\$id, ilObjLanguage\_getLastLocalChange(), ilObject\_lookupTitle(), ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), ilDatePresentation\formatDate(), getIdsFromQueryToken(), IL_CAL_DATETIME, and ILIAS\Repository\lng().
ilObjLanguageFolderGUI::confirmUninstallChangesObject | ( | ) |
Definition at line 758 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\$id, ilObject\_lookupTitle(), ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), getIdsFromQueryToken(), and ILIAS\Repository\lng().
ilObjLanguageFolderGUI::confirmUninstallObject | ( | ) |
Definition at line 741 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\$id, ilObject\_lookupTitle(), ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), getIdsFromQueryToken(), and ILIAS\Repository\lng().
|
protected |
Disable language detection.
Definition at line 834 of file class.ilObjLanguageFolderGUI.php.
References ILIAS\Repository\lng(), ILIAS\Repository\settings(), and viewObject().
ilObjLanguageFolderGUI::downloadDeprecatedObject | ( | ) |
Download deprecated lang entries.
Definition at line 876 of file class.ilObjLanguageFolderGUI.php.
References Vendor\Package\$d, $res, and ilUtil\deliverData().
|
protected |
Definition at line 825 of file class.ilObjLanguageFolderGUI.php.
References ILIAS\Repository\ctrl().
Referenced by executeCommand().
|
protected |
Enable language detection.
Definition at line 844 of file class.ilObjLanguageFolderGUI.php.
References ILIAS\Repository\lng(), ILIAS\Repository\settings(), and viewObject().
ilObjLanguageFolderGUI::executeCommand | ( | ) |
Definition at line 516 of file class.ilObjLanguageFolderGUI.php.
References Vendor\Package\$f, $lang, $r, ilObjectGUI\$ui_factory, ilObjectGUI\$ui_renderer, ilObject\_getObjectsByType(), buildConfirmModal(), checkLanguageObject(), ilObjectGUI\checkPermission(), confirmRefreshObject(), ILIAS\Repository\ctrl(), editFolderObject(), exit, getCommandFromQueryToken(), getIdsFromQueryToken(), installLocalObject(), installObject(), ILIAS\Repository\lng(), ilObjectGUI\prepareOutput(), refreshSelectedObject(), setSystemLanguageObject(), setUserLanguageObject(), uninstallChangesObject(), and uninstallObject().
ilObjLanguageFolderGUI::getActions | ( | ) |
Get Actions.
Definition at line 778 of file class.ilObjLanguageFolderGUI.php.
References Vendor\Package\$f, $id_token, ilObjectGUI\$ui_factory, and ILIAS\Repository\lng().
ilObjLanguageFolderGUI::getAdminTabs | ( | ) |
Definition at line 497 of file class.ilObjLanguageFolderGUI.php.
References getTabs().
|
protected |
Definition at line 671 of file class.ilObjLanguageFolderGUI.php.
References null, and ILIAS\Repository\refinery().
Referenced by executeCommand().
|
private |
Definition at line 897 of file class.ilObjLanguageFolderGUI.php.
References ILIAS\Repository\refinery().
Referenced by confirmRefreshSelectedObject(), confirmUninstallChangesObject(), confirmUninstallObject(), and executeCommand().
|
protected |
Retrieves and adds tabs based on user permissions.
Definition at line 505 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\checkPermissionBool(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by getAdminTabs().
|
protected |
Definition at line 888 of file class.ilObjLanguageFolderGUI.php.
References ILIAS\UI\URLBuilder\buildURI(), and ILIAS\UI\URLBuilder\withParameter().
Referenced by buildConfirmModal(), and viewObject().
ilObjLanguageFolderGUI::installLocalObject | ( | array | $ids | ) |
Install local language modifications.
Definition at line 230 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\$obj_id, ilObjectGUI\checkPermission(), ILIAS\Repository\lng(), and out().
Referenced by executeCommand().
ilObjLanguageFolderGUI::installObject | ( | array | $ids | ) |
install languages
Definition at line 193 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\$obj_id, ilObjectGUI\checkPermission(), ILIAS\Repository\lng(), and out().
Referenced by executeCommand().
ilObjLanguageFolderGUI::listDeprecatedObject | ( | ) |
Download deprecated lang entries.
Definition at line 854 of file class.ilObjLanguageFolderGUI.php.
References Vendor\Package\$d, $res, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\toolbar().
ilObjLanguageFolderGUI::out | ( | ) |
Definition at line 491 of file class.ilObjLanguageFolderGUI.php.
References ILIAS\Repository\ctrl().
Referenced by checkLanguageObject(), installLocalObject(), installObject(), refreshObject(), refreshSelectedObject(), setSystemLanguageObject(), setUserLanguageObject(), uninstallChangesObject(), and uninstallObject().
ilObjLanguageFolderGUI::refreshObject | ( | ) |
update all installed languages
Definition at line 367 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\checkPermission(), ILIAS\Repository\lng(), out(), and ilObjLanguage\refreshAll().
ilObjLanguageFolderGUI::refreshSelectedObject | ( | array | $ids | ) |
update selected languages
Definition at line 379 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\$id, ilObjectGUI\checkPermission(), ILIAS\Repository\lng(), out(), and ilObjLanguage\refreshPlugins().
Referenced by executeCommand().
ilObjLanguageFolderGUI::setSystemLanguageObject | ( | array | $ids | ) |
set the system language
Definition at line 445 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\$obj_id, ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and out().
Referenced by executeCommand().
ilObjLanguageFolderGUI::setUserLanguageObject | ( | array | $ids | ) |
set user language
Definition at line 402 of file class.ilObjLanguageFolderGUI.php.
References $DIC, ilObjectGUI\$obj_id, ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and out().
Referenced by executeCommand().
ilObjLanguageFolderGUI::uninstallChangesObject | ( | array | $ids | ) |
Uninstall local changes in the database.
Definition at line 335 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\$id, ilObjectGUI\checkPermission(), ILIAS\Repository\lng(), out(), and ilObjLanguage\refreshPlugins().
Referenced by executeCommand().
ilObjLanguageFolderGUI::uninstallObject | ( | array | $ids | ) |
uninstall language
Definition at line 288 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\$obj_id, ilObjectGUI\checkPermission(), ILIAS\Repository\lng(), and out().
Referenced by executeCommand().
ilObjLanguageFolderGUI::viewObject | ( | ) |
show installed languages
Definition at line 74 of file class.ilObjLanguageFolderGUI.php.
References $check, $DIC, buildConfirmModal(), ilObjectGUI\checkPermissionBool(), confirmRefreshObject(), ILIAS\Repository\ctrl(), getUrl(), ILIAS\Repository\lng(), ILIAS\Repository\settings(), and ILIAS\Repository\toolbar().
Referenced by disableLanguageDetectionObject(), and enableLanguageDetectionObject().
|
protected |
Definition at line 39 of file class.ilObjLanguageFolderGUI.php.
|
protected |
Definition at line 37 of file class.ilObjLanguageFolderGUI.php.
|
protected |
Definition at line 40 of file class.ilObjLanguageFolderGUI.php.
Referenced by getActions().
|
protected |
Definition at line 36 of file class.ilObjLanguageFolderGUI.php.
|
protected |
Definition at line 38 of file class.ilObjLanguageFolderGUI.php.