ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilObjLanguageFolderGUI. More...
Public Member Functions | |
__construct ($a_data, $a_id, $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 () | |
getTabs () | |
get tabs public More... | |
executeCommand () | |
confirmRefreshObject () | |
confirmRefreshSelectedObject ($a_ids=array()) | |
confirmUninstallObject () | |
confirmUninstallChangesObject () | |
getActions () | |
Get Actions. More... | |
listDeprecatedObject () | |
Download deprecated lang entries. More... | |
downloadDeprecatedObject () | |
Download deprecated lang entries. More... | |
Public Member Functions inherited from ilObject | |
__construct ($a_id=0, $a_reference=true) | |
Constructor public. More... | |
withReferences () | |
determines wehter objects are referenced or not (got ref ids or not) More... | |
read () | |
read object data from db into object More... | |
getId () | |
get object id public More... | |
setId ($a_id) | |
set object id public More... | |
setRefId ($a_id) | |
set reference id public More... | |
getRefId () | |
get reference id public More... | |
getType () | |
get object type public More... | |
setType ($a_type) | |
set object type public More... | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions More... | |
getTitle () | |
get object title public More... | |
getUntranslatedTitle () | |
get untranslated object title public More... | |
setTitle ($a_title) | |
set object title More... | |
getDescription () | |
get object description More... | |
setDescription ($a_desc) | |
set object description More... | |
getLongDescription () | |
get object long description (stored in object_description) More... | |
getImportId () | |
get import id More... | |
setImportId ($a_import_id) | |
set import id More... | |
getOwner () | |
get object owner More... | |
getOwnerName () | |
setOwner ($a_owner) | |
set object owner More... | |
getCreateDate () | |
get create date public More... | |
getLastUpdateDate () | |
get last update date public More... | |
getDiskUsage () | |
Gets the disk usage of the object in bytes. More... | |
create () | |
create More... | |
update () | |
update object in db More... | |
MDUpdateListener ($a_element) | |
Meta data update listener. More... | |
createMetaData () | |
create meta data entry More... | |
updateMetaData () | |
update meta data entry More... | |
deleteMetaData () | |
delete meta data entry More... | |
updateOwner () | |
update owner of object in db More... | |
putInTree ($a_parent_ref) | |
maybe this method should be in tree object!? More... | |
setPermissions ($a_parent_ref) | |
set permissions of object More... | |
setParentRolePermissions ($a_parent_ref) | |
Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g courses, groups for building permission intersections with non_member templates. More... | |
createReference () | |
creates reference for object More... | |
countReferences () | |
count references of object 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 If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public More... | |
applyDidacticTemplate ($a_tpl_id) | |
Apply template. More... | |
setRegisterMode ($a_bool) | |
isUserRegistered ($a_user_id=0) | |
requireRegistration () | |
getXMLZip () | |
getHTMLDirectory () | |
appendCopyInfo ($a_target_id, $a_copy_id) | |
Prepend Copy info if object with same name exists in that container. More... | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone object dependencies. More... | |
cloneMetaData ($target_obj) | |
Copy meta data. More... | |
getPossibleSubObjects ($a_filter=true) | |
get all possible subobjects of this type the object can decide which types of subobjects are possible jut in time overwrite if the decision distinguish from standard model More... | |
Public Member Functions inherited from ilObjectGUI | |
executeCommand () | |
execute command More... | |
withReferences () | |
determines wether objects are referenced or not (got ref ids or not) More... | |
setCreationMode ($a_mode=true) | |
if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui More... | |
getCreationMode () | |
get creation mode More... | |
prepareOutput ($a_show_subobjects=true) | |
prepare output More... | |
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 public More... | |
createObject () | |
create new object form More... | |
cancelCreation () | |
cancel create action and go back to repository parent More... | |
saveObject () | |
save object More... | |
getDidacticTemplateVar ($a_type) | |
Get didactic template setting from creation screen. More... | |
putObjectInTree (ilObject $a_obj, $a_parent_node_id=null) | |
Add object to tree at given position. More... | |
editObject () | |
edit object More... | |
addExternalEditFormCustom (ilPropertyFormGUI $a_form) | |
updateObject () | |
updates object entry in object_data More... | |
getFormAction ($a_cmd, $a_formaction="") | |
get form action for command (command is method name without "Object", e.g. More... | |
isVisible ($a_ref_id, $a_type) | |
viewObject () | |
list childs of current object More... | |
deleteObject ($a_error=false) | |
Display deletion confirmation screen. More... | |
cloneAllObject () | |
Clone single (not container object) Method is overwritten in ilContainerGUI. More... | |
Protected Member Functions | |
disableLanguageDetectionObject () | |
Disable language detection. More... | |
enableLanguageDetectionObject () | |
Enable language detection. More... | |
Protected Member Functions inherited from ilObjectGUI | |
assignObject () | |
setTitleAndDescription () | |
called by prepare output More... | |
initHeaderAction ($a_sub_type=null, $a_sub_id=null) | |
Add header action menu. More... | |
insertHeaderAction ($a_list_gui) | |
Insert header action into main template. More... | |
addHeaderAction () | |
Add header action menu. More... | |
redrawHeaderActionObject () | |
Ajax call: redraw action header only. More... | |
showMountWebfolderIcon () | |
setTabs () | |
set admin tabs public More... | |
setAdminTabs () | |
set admin tabs public More... | |
setLocator () | |
set Locator More... | |
addLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) More... | |
omitLocator ($a_omit=true) | |
addAdminLocatorItems ($a_do_not_add_object=false) | |
should be overwritten to add object specific items (repository items are preloaded) More... | |
initCreationForms ($a_new_type) | |
Init creation froms. More... | |
getCreationFormsHTML (array $a_forms) | |
Get HTML for creation forms (accordion) More... | |
initCreateForm ($a_new_type) | |
Init object creation form. More... | |
initDidacticTemplate (ilPropertyFormGUI $form) | |
Show didactic template types. More... | |
addDidacticTemplateOptions (array &$a_options) | |
Add custom templates. More... | |
afterSave (ilObject $a_new_object) | |
Post (successful) object creation hook. More... | |
initEditForm () | |
Init object edit form. More... | |
initEditCustomForm (ilPropertyFormGUI $a_form) | |
Add custom fields to update form. More... | |
getEditFormValues () | |
Get values for edit form. More... | |
getEditFormCustomValues (array &$a_values) | |
Add values to custom edit fields. More... | |
validateCustom (ilPropertyFormGUI $a_form) | |
Validate custom values (if not possible with checkInput()) More... | |
updateCustom (ilPropertyFormGUI $a_form) | |
Insert custom update form values into object. More... | |
afterUpdate () | |
Post (successful) object update hook. More... | |
initImportForm ($a_new_type) | |
Init object import form. More... | |
importFileObject ($parent_id=null, $a_catch_errors=true) | |
Import. More... | |
afterImport (ilObject $a_new_object) | |
Post (successful) object import hook. More... | |
setFormAction ($a_cmd, $a_formaction) | |
set specific form action for command More... | |
getReturnLocation ($a_cmd, $a_location="") | |
get return location for command (command is method name without "Object", e.g. More... | |
setReturnLocation ($a_cmd, $a_location) | |
set specific return location for command More... | |
getTargetFrame ($a_cmd, $a_target_frame="") | |
get target frame for command (command is method name without "Object", e.g. More... | |
setTargetFrame ($a_cmd, $a_target_frame) | |
set specific target frame for command More... | |
showPossibleSubObjects () | |
show possible subobjects (pulldown menu) More... | |
getTemplateFile ($a_cmd, $a_type="") | |
get a template blockfile format: tpl. More... | |
getTabs () | |
get tabs abstract method. More... | |
__showButton ($a_cmd, $a_text, $a_target='') | |
hitsperpageObject () | |
& | __initTableGUI () |
__setTableGUIBasicData (&$tbl, &$result_set, $a_from="") | |
standard implementation for tables use 'from' variable use different initial setting of table More... | |
redirectToRefId ($a_ref_id, $a_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 $_GET["ref_id"] value More... | |
fillCloneTemplate ($a_tpl_varname, $a_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... | |
setColumnSettings (ilColumnGUI $column_gui) | |
May be overwritten in subclasses. More... | |
checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null) | |
Check permission and redirect on error. More... | |
checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null) | |
Check permission. More... | |
enableDragDropFileUpload () | |
Enables the file upload into this object by dropping files. More... | |
handleAutoRating (ilObject $a_new_obj) | |
Activate rating automatically if parent container setting. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilObject | |
static | _lookupObjIdByImportId ($a_import_id) |
static | _lookupImportId ($a_obj_id) |
static | _lookupOwnerName ($a_owner_id) |
lookup owner name for owner id More... | |
static | _getIdForImportId ($a_import_id) |
get current object id for import id (static) More... | |
static | _getAllReferences ($a_id) |
get all reference ids of object More... | |
static | _lookupTitle ($a_id) |
lookup object title More... | |
static | _lookupOwner ($a_id) |
lookup object owner More... | |
static | _getIdsForTitle ($title, $type='', $partialmatch=false) |
static | _lookupDescription ($a_id) |
lookup object description More... | |
static | _lookupLastUpdate ($a_id, $a_as_string=false) |
lookup last update More... | |
static | _getLastUpdateOfObjects ($a_objs) |
Get last update for a set of media objects. More... | |
static | _lookupObjId ($a_id) |
static | _setDeletedDate ($a_ref_id) |
only called in ilTree::saveSubTree More... | |
static | setDeletedDates ($a_ref_ids) |
Set deleted date type $ilDB. More... | |
static | _resetDeletedDate ($a_ref_id) |
only called in ilObjectGUI::insertSavedNodes More... | |
static | _lookupDeletedDate ($a_ref_id) |
only called in ilObjectGUI::insertSavedNodes More... | |
static | _writeTitle ($a_obj_id, $a_title) |
write title to db (static) More... | |
static | _writeDescription ($a_obj_id, $a_desc) |
write description to db (static) More... | |
static | _writeImportId ($a_obj_id, $a_import_id) |
write import id to db (static) More... | |
static | _lookupType ($a_id, $a_reference=false) |
lookup object type More... | |
static | _isInTrash ($a_ref_id) |
checks wether object is in trash More... | |
static | _hasUntrashedReference ($a_obj_id) |
checks wether an object has at least one reference that is not in trash More... | |
static | _lookupObjectId ($a_ref_id) |
lookup object id More... | |
static | _getObjectsDataForType ($a_type, $a_omit_trash=false) |
get all objects of a certain type More... | |
static | _exists ($a_id, $a_reference=false, $a_type=null) |
checks if an object exists in object_data More... | |
static | _getObjectsByType ($a_obj_type="", $a_owner="") |
Get objects by type. More... | |
static | _prepareCloneSelection ($a_ref_ids, $new_type, $show_path=true) |
Prepare copy wizard object selection. More... | |
static | _getIcon ( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false) |
Get icon for repository item. More... | |
static | collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0) |
Collect deletion dependencies. More... | |
static | getDeletionDependencies ($a_obj_id) |
Get deletion dependencies. More... | |
static | getLongDescriptions (array $a_obj_ids) |
Get long description data. More... | |
static | getAllOwnedRepositoryObjects ($a_user_id) |
Get all ids of objects user owns. More... | |
static | fixMissingTitles ($a_type, array &$a_obj_title_map) |
Try to fix missing object titles. More... | |
static | _lookupCreationDate ($a_id) |
Lookup creation date. More... | |
static | hasAutoRating ($a_type, $a_ref_id) |
Check if auto rating is active for parent group/course. More... | |
Static Public Member Functions inherited from ilObjectGUI | |
static | _gotoRepositoryRoot ($a_raise_error=false) |
Goto repository root. More... | |
static | _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset") |
Goto repository root. More... | |
Data Fields inherited from ilObject | |
const | TITLE_LENGTH = 255 |
max length of object title More... | |
const | DESC_LENGTH = 128 |
$lng | |
$id | |
$ref_id | |
$type | |
$title | |
$untranslatedTitle | |
$desc | |
$long_desc | |
$owner | |
$create_date | |
$last_update | |
$import_id | |
$register = false | |
$referenced | |
$objectList | |
$max_title | |
$max_desc | |
$add_dots | |
Data Fields inherited from ilObjectGUI | |
const | COPY_WIZARD_NEEDS_PAGE = 1 |
$objDefinition | |
$tpl | |
$tree | |
$lng | |
$data | |
$object | |
$ref_id | |
$obj_id | |
$maxcount | |
$formaction | |
$return_location | |
$target_frame | |
$tab_target_script | |
$actions | |
$sub_objects | |
$omit_locator = false | |
const | CFORM_NEW = 1 |
const | CFORM_IMPORT = 2 |
const | CFORM_CLONE = 3 |
Protected Attributes inherited from ilObject | |
$objDefinition | |
$db | |
$log | |
$error | |
$tree | |
$app_event_handler | |
$rbacadmin | |
$rbacreview | |
Protected Attributes inherited from ilObjectGUI | |
$ilErr | |
$locator | |
$user | |
$access | |
$settings | |
$rbacreview | |
$toolbar | |
$rbacsystem | |
$tmp_import_dir | |
$tabs_gui = null | |
$ctrl | |
Class ilObjLanguageFolderGUI.
ilObjLanguageFolderGUI: ilPermissionGUI
Definition at line 20 of file class.ilObjLanguageFolderGUI.php.
ilObjLanguageFolderGUI::__construct | ( | $a_data, | |
$a_id, | |||
$a_call_by_reference | |||
) |
Constructor.
public
Definition at line 27 of file class.ilObjLanguageFolderGUI.php.
References $_GET.
ilObjLanguageFolderGUI::checkLanguageObject | ( | ) |
check all languages
Definition at line 384 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\checkPermission(), data, and out().
ilObjLanguageFolderGUI::confirmRefreshObject | ( | ) |
Definition at line 451 of file class.ilObjLanguageFolderGUI.php.
References $lang, ilObject\_getObjectsByType(), array, ilObjectGUI\checkPermission(), and confirmRefreshSelectedObject().
ilObjLanguageFolderGUI::confirmRefreshSelectedObject | ( | $a_ids = array() | ) |
Definition at line 467 of file class.ilObjLanguageFolderGUI.php.
References $_POST, $header, ilObject\$id, ilObjLanguage\_getLastLocalChange(), ilObject\_lookupTitle(), ilObjectGUI\checkPermission(), ilDatePresentation\formatDate(), and IL_CAL_DATETIME.
Referenced by confirmRefreshObject().
ilObjLanguageFolderGUI::confirmUninstallChangesObject | ( | ) |
Definition at line 530 of file class.ilObjLanguageFolderGUI.php.
References $_POST, ilObject\$id, ilObject\_lookupTitle(), and ilObjectGUI\checkPermission().
ilObjLanguageFolderGUI::confirmUninstallObject | ( | ) |
Definition at line 507 of file class.ilObjLanguageFolderGUI.php.
References $_POST, ilObject\$id, ilObject\_lookupTitle(), and ilObjectGUI\checkPermission().
|
protected |
Disable language detection.
Definition at line 572 of file class.ilObjLanguageFolderGUI.php.
References ilUtil\sendSuccess(), settings(), and viewObject().
ilObjLanguageFolderGUI::downloadDeprecatedObject | ( | ) |
Download deprecated lang entries.
Definition at line 613 of file class.ilObjLanguageFolderGUI.php.
References $d, $key, $res, and ilUtil\deliverData().
|
protected |
Enable language detection.
Definition at line 582 of file class.ilObjLanguageFolderGUI.php.
References ilUtil\sendSuccess(), settings(), and viewObject().
ilObjLanguageFolderGUI::executeCommand | ( | ) |
Definition at line 419 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\checkPermission(), and ilObjectGUI\prepareOutput().
ilObjLanguageFolderGUI::getActions | ( | ) |
Get Actions.
Definition at line 556 of file class.ilObjLanguageFolderGUI.php.
References array.
ilObjLanguageFolderGUI::getAdminTabs | ( | ) |
Definition at line 398 of file class.ilObjLanguageFolderGUI.php.
References getTabs().
ilObjLanguageFolderGUI::getTabs | ( | ) |
get tabs public
object | tabs gui object |
Definition at line 408 of file class.ilObjLanguageFolderGUI.php.
References array, and ilObjectGUI\checkPermissionBool().
Referenced by getAdminTabs().
ilObjLanguageFolderGUI::installLocalObject | ( | ) |
Install local language modifications.
Definition at line 126 of file class.ilObjLanguageFolderGUI.php.
References $_POST, $key, ilObjectGUI\$obj_id, ilObjectGUI\checkPermission(), data, and out().
ilObjLanguageFolderGUI::installObject | ( | ) |
install languages
Definition at line 86 of file class.ilObjLanguageFolderGUI.php.
References $_POST, $key, ilObjectGUI\$obj_id, ilObjectGUI\checkPermission(), data, and out().
ilObjLanguageFolderGUI::listDeprecatedObject | ( | ) |
Download deprecated lang entries.
Definition at line 592 of file class.ilObjLanguageFolderGUI.php.
References $d, $key, $res, and ilLinkButton\getInstance().
ilObjLanguageFolderGUI::out | ( | ) |
Definition at line 392 of file class.ilObjLanguageFolderGUI.php.
References data, and ilUtil\sendInfo().
Referenced by checkLanguageObject(), installLocalObject(), installObject(), refreshObject(), refreshSelectedObject(), setSystemLanguageObject(), setUserLanguageObject(), uninstallChangesObject(), and uninstallObject().
ilObjLanguageFolderGUI::refreshObject | ( | ) |
update all installed languages
Definition at line 266 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\checkPermission(), data, out(), and ilObjLanguage\refreshAll().
ilObjLanguageFolderGUI::refreshSelectedObject | ( | ) |
update selected languages
Definition at line 279 of file class.ilObjLanguageFolderGUI.php.
References $_POST, ilObject\$id, array, ilObjectGUI\checkPermission(), data, out(), and ilObjLanguage\refreshPlugins().
ilObjLanguageFolderGUI::setSystemLanguageObject | ( | ) |
set the system language
Definition at line 344 of file class.ilObjLanguageFolderGUI.php.
References $_POST, ilObjectGUI\$obj_id, ilObjectGUI\checkPermission(), data, and out().
ilObjLanguageFolderGUI::setUserLanguageObject | ( | ) |
set user language
Definition at line 303 of file class.ilObjLanguageFolderGUI.php.
References $_POST, $GLOBALS, ilObjectGUI\$obj_id, ilObjectGUI\checkPermission(), data, ilObject\getId(), and out().
ilObjLanguageFolderGUI::uninstallChangesObject | ( | ) |
Uninstall local changes in the database.
Definition at line 235 of file class.ilObjLanguageFolderGUI.php.
References $_POST, ilObject\$id, ilObjectGUI\checkPermission(), data, and out().
ilObjLanguageFolderGUI::uninstallObject | ( | ) |
uninstall language
Definition at line 186 of file class.ilObjLanguageFolderGUI.php.
References $_POST, $key, ilObjectGUI\$obj_id, ilObjectGUI\checkPermission(), data, and out().
ilObjLanguageFolderGUI::viewObject | ( | ) |
show installed languages
public
Definition at line 40 of file class.ilObjLanguageFolderGUI.php.
References $DIC, ilObjectGUI\checkPermissionBool(), ilLinkButton\getInstance(), and settings().
Referenced by disableLanguageDetectionObject(), and enableLanguageDetectionObject().