ILIAS
Release_4_4_x_branch Revision 61816
|
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. | |
setMultiple ($a_val) | |
Set multiple. | |
getMultiple () | |
Get multiple. | |
activateAssignedItemSorting (ilTaxAssignedItemInfo $a_item_info_obj, $a_component_id, $a_obj_id, $a_item_type) | |
Activate sorting mode of assigned objects. | |
executeCommand () | |
Execute command. | |
editAOTaxonomySettings () | |
getCurrentTaxonomyId () | |
Get current taxonomy id. | |
getCurrentTaxonomy () | |
Get current taxonomy. | |
listNodes () | |
List items. | |
createAssignedTaxonomy () | |
Create assigned taxonomy. | |
cancel () | |
Cancel creation. | |
save () | |
Save taxonomy. | |
showTree ($a_ass_items=false) | |
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. | |
saveSorting () | |
Save settings and sorting. | |
moveItems () | |
Move items. | |
pasteItems () | |
Paste items (move operation) | |
confirmDeleteTaxonomy () | |
Confirm taxonomy deletion. | |
deleteTaxonomy () | |
Delete taxonomy. | |
listTaxonomies () | |
List taxonomies. | |
setTabs ($a_id) | |
Set tabs. | |
editSettings () | |
Edit settings. | |
initSettingsForm () | |
Init form. | |
updateSettings () | |
Update taxonomy settings. | |
listAssignedItems () | |
List assigned items. | |
saveAssignedItemsSorting () | |
Save assigned items sorting. | |
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_target_class, $a_target_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 () | |
setTabs () | |
create tabs (repository/workspace switch) | |
getReturnLocation () | |
Deprecated functions. | |
setReturnLocation () | |
showActions () | |
getTitlesByRefId () | |
getTabs () | |
__showButton () | |
hitsperpageObject () | |
__initTableGUI () | |
__setTableGUIBasicData () | |
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) | |
handleAutoRating (ilObject $a_new_obj) | |
Activate rating automatically if parent container setting. | |
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. | |
showMountWebfolderIcon () | |
setAdminTabs () | |
set admin tabs public | |
addAdminLocatorItems ($a_do_not_add_object=false) | |
should be overwritten to add object specific items (repository items are preloaded) | |
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 | |
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. | |
enableDragDropFileUpload () | |
Enables the file upload into this object by dropping files. |
Protected Attributes | |
$multiple = false | |
$assigned_item_sorting = false | |
Protected Attributes inherited from ilObject2GUI | |
$object_id | |
$node_id | |
$creation_forms = array() | |
$id_type = array() | |
$parent_id | |
$access_handler |
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 |
const | PORTFOLIO_OBJECT_ID = 5 |
ilObjTaxonomyGUI::__construct | ( | $a_id = 0 | ) |
Execute command.
Definition at line 26 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, and ilObject2GUI\OBJECT_ID.
ilObjTaxonomyGUI::activateAssignedItemSorting | ( | ilTaxAssignedItemInfo | $a_item_info_obj, |
$a_component_id, | |||
$a_obj_id, | |||
$a_item_type | |||
) |
Activate sorting mode of assigned objects.
object | $a_item_info_obj | information object of assigned items |
Definition at line 91 of file class.ilObjTaxonomyGUI.php.
|
protected |
After saving,.
@return |
Reimplemented from ilObjectGUI.
Definition at line 304 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, ilObjectGUI\$lng, getAssignedObject(), ilObject\getId(), ilObjTaxonomy\saveUsage(), and ilUtil\sendSuccess().
ilObjTaxonomyGUI::cancel | ( | ) |
Cancel creation.
@return |
Reimplemented from ilObject2GUI.
Definition at line 268 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 250 of file class.ilObjTaxonomyGUI.php.
References getAssignedObject().
ilObjTaxonomyGUI::confirmDeleteTaxonomy | ( | ) |
Confirm taxonomy deletion.
Definition at line 702 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, and getCurrentTaxonomy().
ilObjTaxonomyGUI::confirmedDelete | ( | ) |
Delete taxonomy nodes.
Reimplemented from ilObject2GUI.
Definition at line 551 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 240 of file class.ilObjTaxonomyGUI.php.
References ilObject2GUI\create().
ilObjTaxonomyGUI::createTaxNode | ( | ) |
Create tax node.
@return |
Definition at line 368 of file class.ilObjTaxonomyGUI.php.
References ilObjectGUI\$tpl, initTaxNodeForm(), and ilObject2GUI\setTabs().
ilObjTaxonomyGUI::deleteItems | ( | ) |
Confirm deletion screen for items.
Definition at line 514 of file class.ilObjTaxonomyGUI.php.
References $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilTaxonomyNode\_lookupTitle(), and ilObject2GUI\setTabs().
ilObjTaxonomyGUI::deleteTaxonomy | ( | ) |
Delete taxonomy.
@return |
Definition at line 726 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, ilObjectGUI\$lng, getCurrentTaxonomy(), and ilUtil\sendSuccess().
ilObjTaxonomyGUI::editAOTaxonomySettings | ( | ) |
@return |
Definition at line 144 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, ilObjectGUI\$lng, and listTaxonomies().
ilObjTaxonomyGUI::editSettings | ( | ) |
Edit settings.
@return |
Definition at line 803 of file class.ilObjTaxonomyGUI.php.
References ilObjectGUI\$tpl, initSettingsForm(), and ilObject2GUI\setTabs().
ilObjTaxonomyGUI::executeCommand | ( | ) |
Execute command.
Reimplemented from ilObject2GUI.
Definition at line 104 of file class.ilObjTaxonomyGUI.php.
ilObjTaxonomyGUI::getAssignedObject | ( | ) |
Get assigned object.
Definition at line 61 of file class.ilObjTaxonomyGUI.php.
Referenced by afterSave(), cancel(), checkPermissionBool(), getCurrentTaxonomyId(), listTaxonomies(), and save().
ilObjTaxonomyGUI::getCurrentTaxonomy | ( | ) |
Get current taxonomy.
@return |
Definition at line 187 of file class.ilObjTaxonomyGUI.php.
References getCurrentTaxonomyId().
Referenced by confirmDeleteTaxonomy(), deleteTaxonomy(), initSettingsForm(), initTaxNodeForm(), listAssignedItems(), listNodes(), moveItems(), pasteItems(), saveTaxNode(), showTree(), updateSettings(), and updateTaxNode().
ilObjTaxonomyGUI::getCurrentTaxonomyId | ( | ) |
Get current taxonomy id.
@return |
Definition at line 169 of file class.ilObjTaxonomyGUI.php.
References $_GET, getAssignedObject(), and ilObjTaxonomy\getUsageOfObject().
Referenced by getCurrentTaxonomy(), saveAssignedItemsSorting(), saveSorting(), and setTabs().
ilObjTaxonomyGUI::getMultiple | ( | ) |
Get multiple.
Definition at line 81 of file class.ilObjTaxonomyGUI.php.
References $multiple.
Referenced by listTaxonomies().
|
static |
Get tree html.
@return |
Definition at line 347 of file class.ilObjTaxonomyGUI.php.
Referenced by ilGlossaryPresentationGUI\showTaxonomy().
ilObjTaxonomyGUI::getType | ( | ) |
Get type.
Reimplemented from ilObject2GUI.
Definition at line 41 of file class.ilObjTaxonomyGUI.php.
|
protected |
Init creation forms.
Definition at line 122 of file class.ilObjTaxonomyGUI.php.
References ilObjectGUI\initCreateForm().
ilObjTaxonomyGUI::initSettingsForm | ( | ) |
Init form.
Definition at line 816 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, ilObjectGUI\$lng, $options, $si, getCurrentTaxonomy(), ilCheckboxInputGUI\setChecked(), ilTextInputGUI\setMaxLength(), ilSelectInputGUI\setOptions(), ilTextAreaInputGUI\setValue(), ilObjTaxonomy\SORT_ALPHABETICAL, and ilObjTaxonomy\SORT_MANUAL.
Referenced by editSettings(), and updateSettings().
ilObjTaxonomyGUI::initTaxNodeForm | ( | $a_mode = "edit" | ) |
Init tax node form.
int | $a_mode | Edit Mode |
Definition at line 385 of file class.ilObjTaxonomyGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, getCurrentTaxonomy(), ilTextInputGUI\setMaxLength(), and ilObjTaxonomy\SORT_MANUAL.
Referenced by createTaxNode(), saveTaxNode(), and updateTaxNode().
ilObjTaxonomyGUI::listAssignedItems | ( | ) |
List assigned items.
@return |
Definition at line 897 of file class.ilObjTaxonomyGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, getCurrentTaxonomy(), ilObject2GUI\setTabs(), and showTree().
ilObjTaxonomyGUI::listNodes | ( | ) |
List items.
@return |
Definition at line 206 of file class.ilObjTaxonomyGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, getCurrentTaxonomy(), ilTable2GUI\setOpenFormTag(), ilObject2GUI\setTabs(), and showTree().
ilObjTaxonomyGUI::listTaxonomies | ( | ) |
List taxonomies.
@return |
Definition at line 743 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, ilObjectGUI\$lng, $tab, ilObjectGUI\$tpl, getAssignedObject(), getMultiple(), ilObjTaxonomy\getUsageOfObject(), and ilUtil\sendInfo().
Referenced by editAOTaxonomySettings().
ilObjTaxonomyGUI::moveItems | ( | ) |
Move items.
Definition at line 623 of file class.ilObjTaxonomyGUI.php.
References $_POST, $ilCtrl, $ilUser, ilObjectGUI\$lng, ilObjectGUI\$tpl, getCurrentTaxonomy(), ilUtil\sendInfo(), and ilObject2GUI\setTabs().
ilObjTaxonomyGUI::pasteItems | ( | ) |
Paste items (move operation)
Definition at line 655 of file class.ilObjTaxonomyGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, ilObject2GUI\$parent_id, ilObject2GUI\$tree, ilTaxonomyNode\fixOrderNumbers(), getCurrentTaxonomy(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilObjTaxonomyGUI::save | ( | ) |
Save taxonomy.
@return |
Reimplemented from ilObject2GUI.
Definition at line 286 of file class.ilObjTaxonomyGUI.php.
References $_REQUEST, $ilCtrl, getAssignedObject(), and ilObjectGUI\saveObject().
ilObjTaxonomyGUI::saveAssignedItemsSorting | ( | ) |
Save assigned items sorting.
@return |
Definition at line 923 of file class.ilObjTaxonomyGUI.php.
References $_GET, $_POST, $ilCtrl, ilObjectGUI\$lng, getCurrentTaxonomyId(), and ilUtil\sendSuccess().
ilObjTaxonomyGUI::saveSorting | ( | ) |
Save settings and sorting.
@return |
Definition at line 587 of file class.ilObjTaxonomyGUI.php.
References $_GET, $_POST, $ilCtrl, ilObjectGUI\$lng, ilTaxonomyNode\fixOrderNumbers(), getCurrentTaxonomyId(), ilUtil\sendSuccess(), ilUtil\stripSlashes(), ilTaxonomyNode\writeOrderNr(), and ilTaxonomyNode\writeTitle().
ilObjTaxonomyGUI::saveTaxNode | ( | ) |
Save tax node form.
Definition at line 435 of file class.ilObjTaxonomyGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilTaxonomyNode\fixOrderNumbers(), getCurrentTaxonomy(), 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 51 of file class.ilObjTaxonomyGUI.php.
ilObjTaxonomyGUI::setMultiple | ( | $a_val | ) |
Set multiple.
bool | $a_val | multiple |
Definition at line 71 of file class.ilObjTaxonomyGUI.php.
ilObjTaxonomyGUI::setTabs | ( | $a_id | ) |
Set tabs.
$a_id | string tab id to be activated |
Definition at line 770 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilObject\_lookupTitle(), getCurrentTaxonomyId(), and ilUtil\getImagePath().
ilObjTaxonomyGUI::showTree | ( | $a_ass_items = false | ) |
Show Editing Tree.
Definition at line 321 of file class.ilObjTaxonomyGUI.php.
References $cmd, $ilCtrl, $ilUser, ilObjectGUI\$lng, ilObjectGUI\$tpl, and getCurrentTaxonomy().
Referenced by listAssignedItems(), and listNodes().
ilObjTaxonomyGUI::updateSettings | ( | ) |
Update taxonomy settings.
Definition at line 867 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, getCurrentTaxonomy(), initSettingsForm(), and ilUtil\sendSuccess().
ilObjTaxonomyGUI::updateTaxNode | ( | ) |
Update tax node.
Definition at line 482 of file class.ilObjTaxonomyGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, getCurrentTaxonomy(), initTaxNodeForm(), ilUtil\sendInfo(), and ilObjTaxonomy\SORT_MANUAL.
|
protected |
Definition at line 21 of file class.ilObjTaxonomyGUI.php.
|
protected |
Definition at line 20 of file class.ilObjTaxonomyGUI.php.
Referenced by getMultiple().