ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Class ilObjLanguageFolderGUI. More...
Public Member Functions | |
__construct (?array $a_data, int $a_id, bool $a_call_by_reference) | |
Constructor. More... | |
viewObject () | |
show installed languages More... | |
installObject () | |
install languages More... | |
installLocalObject () | |
Install local language modifications. More... | |
uninstallObject () | |
uninstall language More... | |
uninstallChangesObject () | |
Uninstall local changes in the database. More... | |
refreshObject () | |
update all installed languages More... | |
refreshSelectedObject () | |
update selected languages More... | |
setUserLanguageObject () | |
set user language More... | |
setSystemLanguageObject () | |
set the system language More... | |
checkLanguageObject () | |
check all languages More... | |
out () | |
getAdminTabs () | |
executeCommand () | |
confirmRefreshObject () | |
confirmRefreshSelectedObject (array $a_ids=array()) | |
confirmUninstallObject () | |
confirmUninstallChangesObject () | |
getActions () | |
Get Actions. More... | |
listDeprecatedObject () | |
Download deprecated lang entries. More... | |
downloadDeprecatedObject () | |
Download deprecated lang entries. More... | |
![]() | |
__construct (int $id=0, bool $reference=true) | |
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 $desc) | |
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... | |
![]() | |
__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] don't belong to the current 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... | |
cancelDeleteObject () | |
cancel deletion of object More... | |
cancelObject () | |
cancel action and go back to previous page More... | |
createObject () | |
create new object form More... | |
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 () | |
![]() | |
callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb) | |
Protected Member Functions | |
getTabs () | |
get tabs More... | |
disableLanguageDetectionObject () | |
Disable language detection. More... | |
enableLanguageDetectionObject () | |
Enable language detection. More... | |
![]() | |
doMDUpdateListener (string $a_element) | |
beforeMDUpdateListener (string $a_element) | |
doCreateMetaData () | |
beforeCreateMetaData () | |
doUpdateMetaData () | |
beforeUpdateMetaData () | |
doDeleteMetaData () | |
beforeDeleteMetaData () | |
handleAutoRating () | |
hasAutoRating () | |
![]() | |
getObjectService () | |
assignObject () | |
setTitleAndDescription () | |
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... | |
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... | |
fillCloneTemplate (?string $tpl_name, string $type) | |
Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. 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... | |
showCustomIconsEditing ( $input_colspan=1, ilPropertyFormGUI $form=null, $as_section=true) | |
show edit section of custom icons for container More... | |
Private Member Functions | |
getPostId () | |
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 | _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 | 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 ilObjLanguageFolderGUI.
ilObjLanguageFolderGUI: ilPermissionGUI
Definition at line 34 of file class.ilObjLanguageFolderGUI.php.
ilObjLanguageFolderGUI::__construct | ( | ?array | $a_data, |
int | $a_id, | ||
bool | $a_call_by_reference | ||
) |
Constructor.
Definition at line 42 of file class.ilObjLanguageFolderGUI.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
ilObjLanguageFolderGUI::checkLanguageObject | ( | ) |
check all languages
Definition at line 396 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\checkPermission(), and out().
ilObjLanguageFolderGUI::confirmRefreshObject | ( | ) |
Definition at line 460 of file class.ilObjLanguageFolderGUI.php.
References $lang, ilObject\_getObjectsByType(), ilObjectGUI\checkPermission(), and confirmRefreshSelectedObject().
ilObjLanguageFolderGUI::confirmRefreshSelectedObject | ( | array | $a_ids = array() | ) |
Definition at line 476 of file class.ilObjLanguageFolderGUI.php.
References ilObject\$id, ilObjLanguage\_getLastLocalChange(), ilObject\_lookupTitle(), ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), ilDatePresentation\formatDate(), getPostId(), IL_CAL_DATETIME, and ILIAS\Repository\lng().
Referenced by confirmRefreshObject().
ilObjLanguageFolderGUI::confirmUninstallChangesObject | ( | ) |
Definition at line 535 of file class.ilObjLanguageFolderGUI.php.
References ilObject\$id, ilObject\_lookupTitle(), ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), getPostId(), and ILIAS\Repository\lng().
ilObjLanguageFolderGUI::confirmUninstallObject | ( | ) |
Definition at line 518 of file class.ilObjLanguageFolderGUI.php.
References ilObject\$id, ilObject\_lookupTitle(), ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), getPostId(), and ILIAS\Repository\lng().
|
protected |
Disable language detection.
Definition at line 572 of file class.ilObjLanguageFolderGUI.php.
References ILIAS\Repository\lng(), ILIAS\Repository\settings(), and viewObject().
ilObjLanguageFolderGUI::downloadDeprecatedObject | ( | ) |
Download deprecated lang entries.
Definition at line 613 of file class.ilObjLanguageFolderGUI.php.
References $d, ILIAS\LTI\ToolProvider\$key, $res, and ilUtil\deliverData().
|
protected |
Enable language detection.
Definition at line 582 of file class.ilObjLanguageFolderGUI.php.
References ILIAS\Repository\lng(), ILIAS\Repository\settings(), and viewObject().
ilObjLanguageFolderGUI::executeCommand | ( | ) |
Definition at line 429 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), and ilObjectGUI\prepareOutput().
ilObjLanguageFolderGUI::getActions | ( | ) |
Get Actions.
Definition at line 556 of file class.ilObjLanguageFolderGUI.php.
ilObjLanguageFolderGUI::getAdminTabs | ( | ) |
Definition at line 409 of file class.ilObjLanguageFolderGUI.php.
References getTabs().
|
private |
Definition at line 628 of file class.ilObjLanguageFolderGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
Referenced by confirmRefreshSelectedObject(), confirmUninstallChangesObject(), confirmUninstallObject(), installLocalObject(), installObject(), refreshSelectedObject(), setSystemLanguageObject(), setUserLanguageObject(), uninstallChangesObject(), and uninstallObject().
|
protected |
get tabs
object | tabs gui object |
Definition at line 418 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\checkPermissionBool(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by getAdminTabs().
ilObjLanguageFolderGUI::installLocalObject | ( | ) |
Install local language modifications.
Definition at line 139 of file class.ilObjLanguageFolderGUI.php.
References ILIAS\LTI\ToolProvider\$key, ilObjectGUI\$obj_id, ilObjectGUI\checkPermission(), getPostId(), ILIAS\Repository\lng(), and out().
ilObjLanguageFolderGUI::installObject | ( | ) |
install languages
Definition at line 102 of file class.ilObjLanguageFolderGUI.php.
References ILIAS\LTI\ToolProvider\$key, ilObjectGUI\$obj_id, ilObjectGUI\checkPermission(), getPostId(), ILIAS\Repository\lng(), and out().
ilObjLanguageFolderGUI::listDeprecatedObject | ( | ) |
Download deprecated lang entries.
Definition at line 592 of file class.ilObjLanguageFolderGUI.php.
References $d, ILIAS\LTI\ToolProvider\$key, $res, ILIAS\Repository\ctrl(), ilLinkButton\getInstance(), and ILIAS\Repository\toolbar().
ilObjLanguageFolderGUI::out | ( | ) |
Definition at line 403 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 276 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\checkPermission(), ILIAS\Repository\lng(), out(), and ilObjLanguage\refreshAll().
ilObjLanguageFolderGUI::refreshSelectedObject | ( | ) |
update selected languages
Definition at line 289 of file class.ilObjLanguageFolderGUI.php.
References ilObject\$id, ilObjectGUI\checkPermission(), getPostId(), ILIAS\Repository\lng(), out(), and ilObjLanguage\refreshPlugins().
ilObjLanguageFolderGUI::setSystemLanguageObject | ( | ) |
set the system language
Definition at line 356 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\$obj_id, ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), getPostId(), ILIAS\Repository\lng(), and out().
ilObjLanguageFolderGUI::setUserLanguageObject | ( | ) |
set user language
Definition at line 312 of file class.ilObjLanguageFolderGUI.php.
References $DIC, $ilUser, ilObjectGUI\$obj_id, ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), getPostId(), ILIAS\Repository\lng(), and out().
ilObjLanguageFolderGUI::uninstallChangesObject | ( | ) |
Uninstall local changes in the database.
Definition at line 244 of file class.ilObjLanguageFolderGUI.php.
References ilObject\$id, ilObjectGUI\checkPermission(), getPostId(), ILIAS\Repository\lng(), out(), and ilObjLanguage\refreshPlugins().
ilObjLanguageFolderGUI::uninstallObject | ( | ) |
uninstall language
Definition at line 197 of file class.ilObjLanguageFolderGUI.php.
References ILIAS\LTI\ToolProvider\$key, ilObjectGUI\$obj_id, ilObjectGUI\checkPermission(), getPostId(), ILIAS\Repository\lng(), and out().
ilObjLanguageFolderGUI::viewObject | ( | ) |
show installed languages
Definition at line 56 of file class.ilObjLanguageFolderGUI.php.
References $check, $DIC, ilObjectGUI\checkPermissionBool(), ILIAS\Repository\ctrl(), ilLinkButton\getInstance(), ILIAS\Repository\lng(), ILIAS\Repository\settings(), and ILIAS\Repository\toolbar().
Referenced by disableLanguageDetectionObject(), and enableLanguageDetectionObject().
|
protected |
Definition at line 36 of file class.ilObjLanguageFolderGUI.php.
|
protected |
Definition at line 37 of file class.ilObjLanguageFolderGUI.php.