ILIAS
release_4-3 Revision
|
Taxonomy GUI class. More...
Public Member Functions | |
__construct ($a_id=0) | |
Execute command. | |
getType () | |
Get type. | |
setAssignedObject ($a_val) | |
Set assigned object. | |
getAssignedObject () | |
Get assigned object. | |
executeCommand () | |
Execute command. | |
editAOTaxonomySettings () | |
determineAOCurrentTaxonomy () | |
Determine current taxonomy (of assigned object) | |
listItems () | |
List items. | |
createAssignedTaxonomy () | |
Create assigned taxonomy. | |
cancel () | |
Cancel creation. | |
save () | |
Save taxonomy. | |
showTree ($a_tax_tree) | |
Show Editing Tree. | |
createTaxNode () | |
Create tax node. | |
initTaxNodeForm ($a_mode="edit") | |
Init tax node form. | |
saveTaxNode () | |
Save tax node form. | |
updateTaxNode () | |
Update tax node. | |
deleteItems () | |
Confirm deletion screen for items. | |
confirmedDelete () | |
Delete taxonomy nodes. | |
saveSettingsAndSorting () | |
Save settings and sorting. | |
moveItems () | |
Move items. | |
pasteItems () | |
Paste items (move operation) | |
confirmDeleteTaxonomy () | |
Confirm taxonomy deletion. | |
deleteTaxonomy () | |
Delete taxonomy. | |
Public Member Functions inherited from ilObject2GUI | |
__construct ($a_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0) | |
Constructor. | |
delete () | |
Display delete confirmation form (repository/workspace switch) | |
getHTML () | |
withReferences () | |
Final/Private declaration of unchanged parent methods. | |
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 | |
isVisible () | |
trash () | |
undelete () | |
cancelDelete () | |
removeFromSystem () | |
cloneAll () | |
view () | |
view object content (repository/workspace switch) | |
create () | |
Deleted in ilObject. | |
edit () | |
update () | |
importFile () | |
Import. | |
Public Member Functions inherited from ilObjectGUI | |
ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true) | |
Constructor public. | |
getAdminTabs (&$tabs_gui) | |
administration tabs show only permissions and trash folder | |
confirmedDeleteObject () | |
confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled | |
cancelDeleteObject () | |
cancel deletion of object | |
cancelObject ($in_rep=false) | |
cancel action and go back to previous page public | |
createObject () | |
create new object form | |
cancelCreation () | |
cancel create action and go back to repository parent | |
saveObject () | |
save object | |
editObject () | |
edit object | |
updateObject () | |
updates object entry in object_data | |
getFormAction ($a_cmd, $a_formaction="") | |
get form action for command (command is method name without "Object", e.g. | |
isVisible ($a_ref_id, $a_type) | |
viewObject () | |
list childs of current object | |
deleteObject ($a_error=false) | |
Display deletion confirmation screen. | |
cloneAllObject () | |
Clone single (not container object) Method is overwritten in ilContainerGUI. |
Static Public Member Functions | |
static | getTreeHTML ($a_tax_id, $a_class, $a_cmd, $a_root_node_title="") |
Get tree html. |
Protected Member Functions | |
initCreationForms () | |
Init creation forms. | |
checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_node_id=null) | |
If we run under an assigned object, the permission should be checked on the upper level. | |
afterSave (ilObject $a_new_object) | |
After saving,. | |
Protected Member Functions inherited from ilObject2GUI | |
afterConstructor () | |
Do anything that should be done after constructor in here. | |
assignObject () | |
create object instance as internal property (repository/workspace switch) | |
getAccessHandler () | |
Get access handler. | |
setLocator () | |
set Locator | |
deleteConfirmation () | |
Display delete confirmation form (workspace specific) | |
deleteConfirmedObjects () | |
Delete objects (workspace specific) | |
prepareOutput () | |
prepare output | |
setTitleAndDescription () | |
called by prepare output | |
showUpperIcon () | |
omitLocator ($a_omit=true) | |
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 | |
getCenterColumnHTML () | |
Get center column. | |
getRightColumnHTML () | |
Display right column. | |
setColumnSettings ($column_gui) | |
May be overwritten in subclasses. | |
checkPermission ($a_perm, $a_cmd="") | |
showPossibleSubObjects () | |
show possible subobjects (pulldown menu) | |
redirectToRefId () | |
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) | |
searchCloneSource () | |
buildCloneSelect ($existing_objs) | |
addAdminLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) | |
setTabs () | |
create tabs (repository/workspace switch) | |
getReturnLocation () | |
Deprecated functions. | |
setReturnLocation () | |
showActions () | |
getTitlesByRefId () | |
getTabs () | |
__showButton () | |
hitsperpageObject () | |
__initTableGUI () | |
__setTableGUIBasicData () | |
__showClipboardTable () | |
addLocatorItems () | |
Functions to be overwritten. | |
initCreationForms ($a_new_type) | |
Init creation froms. | |
putObjectInTree (ilObject $a_obj, $a_parent_node_id=null) | |
Add object to tree at given position. | |
initHeaderAction ($a_sub_type=null, $a_sub_id=null) | |
Add header action menu. | |
redrawHeaderAction () | |
Updating icons after ajax call. | |
getPermanentLinkWidget ($a_append=null, $a_center=false) | |
Protected Member Functions inherited from ilObjectGUI | |
insertHeaderAction ($a_list_gui) | |
Insert header action into main template. | |
addHeaderAction () | |
Add header action menu. | |
redrawHeaderActionObject () | |
Ajax call: redraw action header only. | |
setAdminTabs () | |
set admin tabs public | |
getCreationFormsHTML (array $a_forms) | |
Get HTML for creation forms (accordion) | |
initCreateForm ($a_new_type) | |
Init object creation form. | |
initDidacticTemplate (ilPropertyFormGUI $form) | |
Show didactic template types. | |
addDidacticTemplateOptions (array &$a_options) | |
Add custom templates. | |
getDidacticTemplateVar ($a_type) | |
Get didactic template setting from creation screen. | |
initEditForm () | |
Init object edit form. | |
initEditCustomForm (ilPropertyFormGUI $a_form) | |
Add custom fields to update form. | |
getEditFormValues () | |
Get values for edit form. | |
getEditFormCustomValues (array &$a_values) | |
Add values to custom edit fields. | |
updateCustom (ilPropertyFormGUI $a_form) | |
Insert custom update form values into object. | |
afterUpdate () | |
Post (successful) object update hook. | |
initImportForm ($a_new_type) | |
Init object import form. | |
importFileObject ($parent_id=null) | |
Import. | |
afterImport (ilObject $a_new_object) | |
Post (successful) object import hook. | |
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 | |
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 | |
getTabs (&$tabs_gui) | |
get tabs abstract method. | |
__showButton ($a_cmd, $a_text, $a_target= '') | |
__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="") | |
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 | |
checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null) | |
Check permission and redirect on error. |
Additional Inherited Members | |
Data Fields inherited from ilObject2GUI | |
$tree | |
const | OBJECT_ID = 0 |
const | REPOSITORY_NODE_ID = 1 |
const | WORKSPACE_NODE_ID = 2 |
const | REPOSITORY_OBJECT_ID = 3 |
const | WORKSPACE_OBJECT_ID = 4 |
Protected Attributes inherited from ilObject2GUI | |
$object_id | |
$node_id | |
$creation_forms = array() | |
$id_type = array() | |
$parent_id | |
$access_handler |
ilObjTaxonomyGUI::__construct | ( | $a_id = 0 | ) |
Execute command.
Definition at line 23 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, and ilObject2GUI\OBJECT_ID.
|
protected |
After saving,.
@return |
Reimplemented from ilObjectGUI.
Definition at line 260 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, getAssignedObject(), ilObject\getId(), and ilObjTaxonomy\saveUsage().
ilObjTaxonomyGUI::cancel | ( | ) |
Cancel creation.
@return |
Reimplemented from ilObject2GUI.
Definition at line 224 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, and getAssignedObject().
|
protected |
If we run under an assigned object, the permission should be checked on the upper level.
Reimplemented from ilObject2GUI.
Definition at line 206 of file class.ilObjTaxonomyGUI.php.
References getAssignedObject().
ilObjTaxonomyGUI::confirmDeleteTaxonomy | ( | ) |
Confirm taxonomy deletion.
Definition at line 715 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, and determineAOCurrentTaxonomy().
ilObjTaxonomyGUI::confirmedDelete | ( | ) |
Delete taxonomy nodes.
Reimplemented from ilObject2GUI.
Definition at line 556 of file class.ilObjTaxonomyGUI.php.
References $_POST, $ilCtrl, ilObject2\delete(), ilTaxonomyNode\fixOrderNumbers(), ilObjTaxonomy\getTree(), and ilUtil\sendInfo().
ilObjTaxonomyGUI::createAssignedTaxonomy | ( | ) |
Create assigned taxonomy.
@return |
Definition at line 196 of file class.ilObjTaxonomyGUI.php.
References ilObject2GUI\create().
ilObjTaxonomyGUI::createTaxNode | ( | ) |
Create tax node.
@return |
Definition at line 380 of file class.ilObjTaxonomyGUI.php.
References ilObjectGUI\$tpl, and initTaxNodeForm().
ilObjTaxonomyGUI::deleteItems | ( | ) |
Confirm deletion screen for items.
Definition at line 522 of file class.ilObjTaxonomyGUI.php.
References $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, and ilTaxonomyNode\_lookupTitle().
ilObjTaxonomyGUI::deleteTaxonomy | ( | ) |
Delete taxonomy.
@return |
Definition at line 739 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, ilObjectGUI\$lng, determineAOCurrentTaxonomy(), and ilUtil\sendSuccess().
ilObjTaxonomyGUI::determineAOCurrentTaxonomy | ( | ) |
Determine current taxonomy (of assigned object)
@return |
Definition at line 132 of file class.ilObjTaxonomyGUI.php.
References getAssignedObject(), and ilObjTaxonomy\getUsageOfObject().
Referenced by confirmDeleteTaxonomy(), deleteTaxonomy(), initTaxNodeForm(), listItems(), moveItems(), pasteItems(), saveSettingsAndSorting(), saveTaxNode(), and updateTaxNode().
ilObjTaxonomyGUI::editAOTaxonomySettings | ( | ) |
@return |
Definition at line 106 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, ilObjectGUI\$lng, getAssignedObject(), ilObjTaxonomy\getUsageOfObject(), and listItems().
ilObjTaxonomyGUI::executeCommand | ( | ) |
Execute command.
Reimplemented from ilObject2GUI.
Definition at line 66 of file class.ilObjTaxonomyGUI.php.
ilObjTaxonomyGUI::getAssignedObject | ( | ) |
Get assigned object.
Definition at line 57 of file class.ilObjTaxonomyGUI.php.
Referenced by afterSave(), cancel(), checkPermissionBool(), determineAOCurrentTaxonomy(), editAOTaxonomySettings(), and save().
|
static |
Get tree html.
@return |
Definition at line 325 of file class.ilObjTaxonomyGUI.php.
References $_GET, $ilCtrl, $ilUser, ilObjectGUI\$lng, $path, ilObjectGUI\$tpl, and ilExplorer\setTargetGet().
Referenced by ilGlossaryPresentationGUI\showTaxonomy().
ilObjTaxonomyGUI::getType | ( | ) |
Get type.
Reimplemented from ilObject2GUI.
Definition at line 37 of file class.ilObjTaxonomyGUI.php.
|
protected |
Init creation forms.
Definition at line 84 of file class.ilObjTaxonomyGUI.php.
References ilObjectGUI\initCreateForm().
ilObjTaxonomyGUI::initTaxNodeForm | ( | $a_mode = "edit" | ) |
Init tax node form.
int | $a_mode | Edit Mode |
Definition at line 394 of file class.ilObjTaxonomyGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, determineAOCurrentTaxonomy(), ilTextInputGUI\setMaxLength(), and ilObjTaxonomy\SORT_MANUAL.
Referenced by createTaxNode(), saveTaxNode(), and updateTaxNode().
ilObjTaxonomyGUI::listItems | ( | ) |
List items.
@return |
Definition at line 147 of file class.ilObjTaxonomyGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, $si, ilObjectGUI\$tpl, determineAOCurrentTaxonomy(), ilTable2GUI\setOpenFormTag(), ilSelectInputGUI\setValue(), showTree(), ilObjTaxonomy\SORT_ALPHABETICAL, and ilObjTaxonomy\SORT_MANUAL.
Referenced by editAOTaxonomySettings().
ilObjTaxonomyGUI::moveItems | ( | ) |
Move items.
Definition at line 632 of file class.ilObjTaxonomyGUI.php.
References $_POST, $ilCtrl, $ilUser, ilObjectGUI\$lng, ilObjectGUI\$tpl, determineAOCurrentTaxonomy(), ilExplorer\forceExpandAll(), and ilUtil\sendInfo().
ilObjTaxonomyGUI::pasteItems | ( | ) |
Paste items (move operation)
Definition at line 668 of file class.ilObjTaxonomyGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, ilObject2GUI\$parent_id, ilObject2GUI\$tree, determineAOCurrentTaxonomy(), ilTaxonomyNode\fixOrderNumbers(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilObjTaxonomyGUI::save | ( | ) |
Save taxonomy.
@return |
Reimplemented from ilObject2GUI.
Definition at line 242 of file class.ilObjTaxonomyGUI.php.
References $_REQUEST, $ilCtrl, getAssignedObject(), and ilObjectGUI\saveObject().
ilObjTaxonomyGUI::saveSettingsAndSorting | ( | ) |
Save settings and sorting.
@return |
Definition at line 592 of file class.ilObjTaxonomyGUI.php.
References $_POST, $ilCtrl, ilObjectGUI\$lng, determineAOCurrentTaxonomy(), ilUtil\sendSuccess(), ilUtil\stripSlashes(), ilTaxonomyNode\writeOrderNr(), and ilTaxonomyNode\writeTitle().
ilObjTaxonomyGUI::saveTaxNode | ( | ) |
Save tax node form.
Definition at line 444 of file class.ilObjTaxonomyGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, determineAOCurrentTaxonomy(), ilTaxonomyNode\fixOrderNumbers(), ilTaxonomyNode\getNextOrderNr(), initTaxNodeForm(), ilTaxonomyNode\putInTree(), ilUtil\sendSuccess(), and ilObjTaxonomy\SORT_MANUAL.
ilObjTaxonomyGUI::setAssignedObject | ( | $a_val | ) |
Set assigned object.
int | $a_val | object id |
Definition at line 47 of file class.ilObjTaxonomyGUI.php.
ilObjTaxonomyGUI::showTree | ( | $a_tax_tree | ) |
Show Editing Tree.
Definition at line 275 of file class.ilObjTaxonomyGUI.php.
References $_GET, $ilCtrl, $ilUser, ilObjectGUI\$lng, $path, ilObjectGUI\$tpl, exit, and ilExplorer\setTargetGet().
Referenced by listItems().
ilObjTaxonomyGUI::updateTaxNode | ( | ) |
Update tax node.
Definition at line 490 of file class.ilObjTaxonomyGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, determineAOCurrentTaxonomy(), initTaxNodeForm(), ilUtil\sendInfo(), and ilObjTaxonomy\SORT_MANUAL.