ILIAS
Release_3_10_x_branch Revision 61812
|
Class ilObjLanguageFolderGUI. More...
Public Member Functions | |
ilObjLanguageFolderGUI ($a_data, $a_id, $a_call_by_reference) | |
Constructor. | |
viewObject () | |
show installed languages | |
displayList () | |
display object list | |
installObject () | |
install languages | |
installLocalObject () | |
Install local language modifications. | |
uninstallObject () | |
uninstall language | |
refreshObject () | |
update all installed languages | |
refreshSelectedObject () | |
update selected languages | |
setUserLanguageObject () | |
set user language | |
setSystemLanguageObject () | |
set the system language | |
checkLanguageObject () | |
check all languages | |
out () | |
getAdminTabs (&$tabs_gui) | |
administration tabs show only permissions and trash folder | |
getTabs (&$tabs_gui) | |
get tabs public | |
& | executeCommand () |
execute command | |
enableExtendedLanguageMaintenanceObject () | |
Enable extended language maintenance. | |
disableExtendedLanguageMaintenanceObject () | |
Disable extended language maintenance. | |
confirmRefreshObject () | |
confirmRefreshSelectedObject () | |
getActions () | |
Get Actions. | |
Public Member Functions inherited from ilObject | |
ilObject ($a_id=0, $a_reference=true) | |
Constructor public. | |
withReferences () | |
determines wehter objects are referenced or not (got ref ids or not) | |
read ($a_force_db=false) | |
read object data from db into object | |
getId () | |
get object id public | |
setId ($a_id) | |
set object id public | |
setRefId ($a_id) | |
set reference id public | |
getRefId () | |
get reference id public | |
getType () | |
get object type public | |
setType ($a_type) | |
set object type public | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions | |
getTitle () | |
get object title public | |
getUntranslatedTitle () | |
get untranslated object title public | |
setTitle ($a_title) | |
set object title | |
getDescription () | |
get object description | |
setDescription ($a_desc) | |
set object description | |
getLongDescription () | |
get object long description (stored in object_description) | |
getImportId () | |
get import id | |
setImportId ($a_import_id) | |
set import id | |
_lookupObjIdByImportId ($a_import_id) | |
getOwner () | |
get object owner | |
getOwnerName () | |
_lookupOwnerName ($a_owner_id) | |
lookup owner name for owner id | |
setOwner ($a_owner) | |
set object owner | |
getCreateDate () | |
get create date public | |
getLastUpdateDate () | |
get last update date public | |
setObjDataRecord ($a_record) | |
set object_data record (note: this method should only be called from the ilObjectFactory class) | |
create () | |
create | |
update () | |
update object in db | |
MDUpdateListener ($a_element) | |
Meta data update listener. | |
createMetaData () | |
create meta data entry | |
updateMetaData () | |
update meta data entry | |
deleteMetaData () | |
delete meta data entry | |
updateOwner () | |
update owner of object in db | |
_getIdForImportId ($a_import_id) | |
get current object id for import id (static) | |
_getAllReferences ($a_id) | |
get all reference ids of object | |
_lookupTitle ($a_id) | |
lookup object title | |
_lookupDescription ($a_id) | |
lookup object description | |
_lookupLastUpdate ($a_id, $a_as_string=false) | |
lookup last update | |
_getLastUpdateOfObjects ($a_objs) | |
Get last update for a set of media objects. | |
_lookupObjId ($a_id) | |
_setDeletedDate ($a_ref_id) | |
only called in ilTree::saveSubTree | |
_resetDeletedDate ($a_ref_id) | |
only called in ilObjectGUI::insertSavedNodes | |
_writeTitle ($a_obj_id, $a_title) | |
write title to db (static) | |
_writeDescription ($a_obj_id, $a_desc) | |
write description to db (static) | |
_writeImportId ($a_obj_id, $a_import_id) | |
write import id to db (static) | |
_lookupType ($a_id, $a_reference=false) | |
lookup object type | |
_isInTrash ($a_ref_id) | |
checks wether object is in trash | |
_hasUntrashedReference ($a_obj_id) | |
checks wether an object has at least one reference that is not in trash | |
_lookupObjectId ($a_ref_id) | |
lookup object id | |
_getObjectsDataForType ($a_type, $a_omit_trash=false) | |
get all objects of a certain type | |
putInTree ($a_parent_ref) | |
maybe this method should be in tree object!? | |
setPermissions ($a_parent_ref) | |
set permissions of object | |
createReference () | |
creates reference for object | |
countReferences () | |
count references of object | |
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!! | |
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 | |
createRoleFolder () | |
creates a local role folder | |
notify ($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0) | |
notifys an object about an event occured Based on the event passed, each object may decide how it reacts. | |
setRegisterMode ($a_bool) | |
isUserRegistered ($a_user_id=0) | |
requireRegistration () | |
getXMLZip () | |
getHTMLDirectory () | |
cloneObject ($a_target_id, $a_copy_id=0) | |
Clone object permissions, put in tree ... | |
appendCopyInfo ($a_target_id, $a_copy_id) | |
Prepend Copy info if object with same name exists in that container. | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone object dependencies. | |
cloneMetaData ($target_obj) | |
Copy meta data. | |
Public Member Functions inherited from ilObjectGUI | |
ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true) | |
Constructor public. | |
withReferences () | |
determines wether objects are referenced or not (got ref ids or not) | |
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 | |
getCreationMode () | |
get creation mode | |
assignObject () | |
prepareOutput () | |
prepare output | |
setTitleAndDescription () | |
called by prepare output | |
showUpperIcon () | |
showMountWebfolderIcon () | |
setTabs () | |
set admin tabs public | |
setAdminTabs () | |
set admin tabs public | |
getHTML () | |
setActions ($a_actions="") | |
set possible actions for objects in list. | |
setSubObjects ($a_sub_objects="") | |
set possible subobjects for this object. | |
setLocator () | |
set Locator | |
addLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) | |
omitLocator ($a_omit=true) | |
addAdminLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) | |
undeleteObject () | |
get object back from trash | |
insertSavedNodes ($a_source_id, $a_dest_id, $a_tree_id, &$a_affected_ids) | |
recursive method to insert all saved nodes of the clipboard (maybe this function could be moved to a rbac class ?) | |
confirmedDeleteObject () | |
confirmed deletion if object -> objects are moved to trash | |
cancelDeleteObject () | |
cancel deletion of object | |
removeFromSystemObject () | |
remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method | |
removeDeletedNodes ($a_node_id, $a_checked, $a_delete_objects, &$a_affected_ids) | |
remove already deleted objects within the objects in trash recursive function | |
createObject () | |
create new object form | |
cancelObject ($in_rep=false) | |
cancel action and go back to previous page public | |
saveObject () | |
save object | |
importObject () | |
import new object form | |
editObject () | |
edit object | |
displayEditForm ($fields) | |
display edit form (usually called by editObject) | |
updateObject () | |
updates object entry in object_data | |
afterUpdate () | |
permObject () | |
show permissions of current node | |
getFormAction ($a_cmd, $a_formaction="") | |
get form action for command (command is method name without "Object", e.g. | |
setFormAction ($a_cmd, $a_formaction) | |
set specific form action for command | |
getReturnLocation ($a_cmd, $a_location="") | |
get return location for command (command is method name without "Object", e.g. | |
setReturnLocation ($a_cmd, $a_location) | |
set specific return location for command | |
getTargetFrame ($a_cmd, $a_target_frame="") | |
get target frame for command (command is method name without "Object", e.g. | |
setTargetFrame ($a_cmd, $a_target_frame) | |
set specific target frame for command | |
permSaveObject () | |
save permissions | |
isVisible ($a_ref_id, $a_type) | |
deleteObject ($a_error=false) | |
display deletion confirmation screen only for referenced objects. | |
trashObject () | |
show trash content of object | |
addRoleObject () | |
adds a local role This method is only called when choose the option 'you may add local roles'. | |
showActions ($with_subobjects=false) | |
show possible action (form buttons) | |
showPossibleSubObjects () | |
show possible subobjects (pulldown menu) | |
getTemplateFile ($a_cmd, $a_type="") | |
get a template blockfile format: tpl. | |
getTitlesByRefId ($a_ref_ids) | |
get Titles of objects this method is used for error messages in methods cut/copy/paste | |
__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 | |
__showClipboardTable ($a_result_set, $a_from="") | |
infoObject () | |
__buildRoleFilterSelect () | |
__filterRoles ($a_roles, $a_filter) | |
ownerObject () | |
changeOwnerObject () | |
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 | |
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. | |
fillCloneSearchTemplate ($a_tpl_varname, $a_type) | |
Add an object search in case the number of existing objects is too big to offer a selection list. | |
cloneAllObject () | |
Clone single (not container object) Method is overwritten in ilContainerGUI. | |
copyWizardHasOptions ($a_mode) | |
Check if there is any modules specific option. | |
getCenterColumnHTML () | |
Get center column. | |
getRightColumnHTML () | |
Display right column. | |
setColumnSettings ($column_gui) | |
May be overwritten in subclasses. | |
checkPermission ($a_perm, $a_cmd="") |
Additional Inherited Members | |
Static Public Member Functions inherited from ilObject | |
static | _getIdsForTitle ($title, $type= '') |
_exists ($a_id, $a_reference=false) | |
checks if an object exists in object_data | |
static | _getObjectsByType ($a_obj_type="") |
Get objects by type. | |
static | _prepareCloneSelection ($a_ref_ids, $new_type) |
Prepare copy wizard object selection. | |
static | _getIcon ($a_obj_id="", $a_size="big", $a_type="", $a_offline=false) |
Data Fields inherited from ilObject | |
$ilias | |
$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 | |
$obj_data_record | |
object_data record | |
Data Fields inherited from ilObjectGUI | |
const | COPY_WIZARD_NEEDS_PAGE = 1 |
$ilias | |
$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 | |
Protected Member Functions inherited from ilObjectGUI | |
searchCloneSourceObject () | |
Search clone source by title. | |
buildCloneSelect ($existing_objs) | |
Build a select box for clonable objects (permission write) |
Class ilObjLanguageFolderGUI.
ilObjLanguageFolderGUI: ilPermissionGUI
Definition at line 40 of file class.ilObjLanguageFolderGUI.php.
ilObjLanguageFolderGUI::checkLanguageObject | ( | ) |
check all languages
Definition at line 669 of file class.ilObjLanguageFolderGUI.php.
References out().
ilObjLanguageFolderGUI::confirmRefreshObject | ( | ) |
Definition at line 760 of file class.ilObjLanguageFolderGUI.php.
References $ilCtrl, and ilObject\$lng.
ilObjLanguageFolderGUI::confirmRefreshSelectedObject | ( | ) |
Definition at line 775 of file class.ilObjLanguageFolderGUI.php.
References ilObject\$id, $ilCtrl, ilObject\$lng, and ilObject\_lookupTitle().
ilObjLanguageFolderGUI::disableExtendedLanguageMaintenanceObject | ( | ) |
Disable extended language maintenance.
Definition at line 752 of file class.ilObjLanguageFolderGUI.php.
References $ilCtrl, and $ilSetting.
ilObjLanguageFolderGUI::displayList | ( | ) |
display object list
public
Reimplemented from ilObjectGUI.
Definition at line 220 of file class.ilObjLanguageFolderGUI.php.
References $_GET, ilObjectGUI\$data, ilObjectGUI\$tree, ilObjectGUI\showActions(), and ilUtil\switchColor().
Referenced by viewObject().
ilObjLanguageFolderGUI::enableExtendedLanguageMaintenanceObject | ( | ) |
Enable extended language maintenance.
Definition at line 741 of file class.ilObjLanguageFolderGUI.php.
References $ilCtrl, and $ilSetting.
& ilObjLanguageFolderGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilObjectGUI.
Definition at line 711 of file class.ilObjLanguageFolderGUI.php.
References $cmd, $ret, and ilObjectGUI\prepareOutput().
ilObjLanguageFolderGUI::getActions | ( | ) |
Get Actions.
Reimplemented from ilObjectGUI.
Definition at line 803 of file class.ilObjLanguageFolderGUI.php.
References $ilSetting.
ilObjLanguageFolderGUI::getAdminTabs | ( | & | $tabs_gui | ) |
administration tabs show only permissions and trash folder
Reimplemented from ilObjectGUI.
Definition at line 684 of file class.ilObjLanguageFolderGUI.php.
References getTabs().
ilObjLanguageFolderGUI::getTabs | ( | & | $tabs_gui | ) |
get tabs public
object | tabs gui object |
Reimplemented from ilObjectGUI.
Definition at line 694 of file class.ilObjLanguageFolderGUI.php.
Referenced by getAdminTabs().
ilObjLanguageFolderGUI::ilObjLanguageFolderGUI | ( | $a_data, | |
$a_id, | |||
$a_call_by_reference | |||
) |
Constructor.
public
Definition at line 47 of file class.ilObjLanguageFolderGUI.php.
References $_GET, and ilObjectGUI\ilObjectGUI().
ilObjLanguageFolderGUI::installLocalObject | ( | ) |
Install local language modifications.
Definition at line 364 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\$obj_id, and out().
ilObjLanguageFolderGUI::installObject | ( | ) |
install languages
Definition at line 317 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\$obj_id, and out().
ilObjLanguageFolderGUI::out | ( | ) |
Definition at line 678 of file class.ilObjLanguageFolderGUI.php.
References ilUtil\sendInfo().
Referenced by checkLanguageObject(), installLocalObject(), installObject(), refreshObject(), refreshSelectedObject(), setSystemLanguageObject(), setUserLanguageObject(), and uninstallObject().
ilObjLanguageFolderGUI::refreshObject | ( | ) |
update all installed languages
Definition at line 494 of file class.ilObjLanguageFolderGUI.php.
References $lang, ilObject\_getObjectsByType(), and out().
ilObjLanguageFolderGUI::refreshSelectedObject | ( | ) |
update selected languages
Definition at line 539 of file class.ilObjLanguageFolderGUI.php.
References ilObject\$id, ilObject\$lng, and out().
ilObjLanguageFolderGUI::setSystemLanguageObject | ( | ) |
set the system language
Definition at line 628 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\$obj_id, and out().
ilObjLanguageFolderGUI::setUserLanguageObject | ( | ) |
set user language
Definition at line 586 of file class.ilObjLanguageFolderGUI.php.
References $_SESSION, ilObjectGUI\$obj_id, and out().
ilObjLanguageFolderGUI::uninstallObject | ( | ) |
uninstall language
Definition at line 437 of file class.ilObjLanguageFolderGUI.php.
References ilObjectGUI\$obj_id, and out().
ilObjLanguageFolderGUI::viewObject | ( | ) |
show installed languages
public
Reimplemented from ilObjectGUI.
Definition at line 59 of file class.ilObjLanguageFolderGUI.php.
References $_GET, $ilSetting, displayList(), ilDatePresentation\formatDate(), IL_CAL_DATETIME, and ilUtil\sortArray().