ILIAS
Release_5_0_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. | |
setListInfo ($a_val) | |
Set list info. | |
getListInfo () | |
Get list info. | |
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. | |
Static Public Member Functions inherited from ilObject2GUI | |
static | handleAfterSaveCallback (ilObject $a_obj, $a_callback_ref_id) |
After creation callback. | |
Static Public Member Functions inherited from ilObjectGUI | |
static | _gotoRepositoryRoot ($a_raise_error=false) |
Goto repository root. | |
static | _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset") |
Goto repository root. |
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. | |
validateCustom (ilPropertyFormGUI $a_form) | |
Validate custom values (if not possible with checkInput()) | |
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, ilObjectGUI\$lng, 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 113 of file class.ilObjTaxonomyGUI.php.
|
protected |
After saving,.
@return |
Reimplemented from ilObjectGUI.
Definition at line 326 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 290 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 272 of file class.ilObjTaxonomyGUI.php.
References getAssignedObject().
ilObjTaxonomyGUI::confirmDeleteTaxonomy | ( | ) |
Confirm taxonomy deletion.
Definition at line 731 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, and getCurrentTaxonomy().
ilObjTaxonomyGUI::confirmedDelete | ( | ) |
Delete taxonomy nodes.
Reimplemented from ilObject2GUI.
Definition at line 574 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 262 of file class.ilObjTaxonomyGUI.php.
References ilObject2GUI\create().
ilObjTaxonomyGUI::createTaxNode | ( | ) |
Create tax node.
@return |
Definition at line 390 of file class.ilObjTaxonomyGUI.php.
References ilObjectGUI\$tpl, initTaxNodeForm(), and ilObject2GUI\setTabs().
ilObjTaxonomyGUI::deleteItems | ( | ) |
Confirm deletion screen for items.
Definition at line 536 of file class.ilObjTaxonomyGUI.php.
References $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilTaxonomyNode\_lookupTitle(), ilUtil\sendFailure(), and ilObject2GUI\setTabs().
ilObjTaxonomyGUI::deleteTaxonomy | ( | ) |
Delete taxonomy.
@return |
Definition at line 755 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, ilObjectGUI\$lng, getCurrentTaxonomy(), and ilUtil\sendSuccess().
ilObjTaxonomyGUI::editAOTaxonomySettings | ( | ) |
@return |
Definition at line 166 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, ilObjectGUI\$lng, and listTaxonomies().
ilObjTaxonomyGUI::editSettings | ( | ) |
Edit settings.
@return |
Definition at line 834 of file class.ilObjTaxonomyGUI.php.
References ilObjectGUI\$tpl, initSettingsForm(), and ilObject2GUI\setTabs().
ilObjTaxonomyGUI::executeCommand | ( | ) |
Execute command.
Reimplemented from ilObject2GUI.
Definition at line 126 of file class.ilObjTaxonomyGUI.php.
ilObjTaxonomyGUI::getAssignedObject | ( | ) |
Get assigned object.
Definition at line 63 of file class.ilObjTaxonomyGUI.php.
Referenced by afterSave(), cancel(), checkPermissionBool(), getCurrentTaxonomyId(), listTaxonomies(), and save().
ilObjTaxonomyGUI::getCurrentTaxonomy | ( | ) |
Get current taxonomy.
@return |
Definition at line 209 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 191 of file class.ilObjTaxonomyGUI.php.
References $_GET, getAssignedObject(), and ilObjTaxonomy\getUsageOfObject().
Referenced by getCurrentTaxonomy(), saveAssignedItemsSorting(), saveSorting(), and setTabs().
ilObjTaxonomyGUI::getListInfo | ( | ) |
Get list info.
Definition at line 103 of file class.ilObjTaxonomyGUI.php.
Referenced by listTaxonomies().
ilObjTaxonomyGUI::getMultiple | ( | ) |
Get multiple.
Definition at line 83 of file class.ilObjTaxonomyGUI.php.
References $multiple.
Referenced by listTaxonomies().
|
static |
Get tree html.
@return |
Definition at line 369 of file class.ilObjTaxonomyGUI.php.
Referenced by ilGlossaryPresentationGUI\showTaxonomy().
ilObjTaxonomyGUI::getType | ( | ) |
Get type.
Reimplemented from ilObject2GUI.
Definition at line 43 of file class.ilObjTaxonomyGUI.php.
|
protected |
Init creation forms.
Definition at line 144 of file class.ilObjTaxonomyGUI.php.
References ilObjectGUI\initCreateForm().
ilObjTaxonomyGUI::initSettingsForm | ( | ) |
Init form.
Definition at line 847 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 407 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 928 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 228 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 772 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, ilObjectGUI\$lng, $tab, ilObjectGUI\$tpl, getAssignedObject(), getListInfo(), getMultiple(), ilObjTaxonomy\getUsageOfObject(), and ilUtil\sendInfo().
Referenced by editAOTaxonomySettings().
ilObjTaxonomyGUI::moveItems | ( | ) |
Move items.
Definition at line 646 of file class.ilObjTaxonomyGUI.php.
References $_POST, $ilCtrl, $ilUser, ilObjectGUI\$lng, ilObjectGUI\$tpl, getCurrentTaxonomy(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilObject2GUI\setTabs().
ilObjTaxonomyGUI::pasteItems | ( | ) |
Paste items (move operation)
Definition at line 684 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 308 of file class.ilObjTaxonomyGUI.php.
References $_REQUEST, $ilCtrl, getAssignedObject(), and ilObjectGUI\saveObject().
ilObjTaxonomyGUI::saveAssignedItemsSorting | ( | ) |
Save assigned items sorting.
@return |
Definition at line 954 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 610 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 457 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 53 of file class.ilObjTaxonomyGUI.php.
ilObjTaxonomyGUI::setListInfo | ( | $a_val | ) |
Set list info.
string | $a_val |
Definition at line 93 of file class.ilObjTaxonomyGUI.php.
ilObjTaxonomyGUI::setMultiple | ( | $a_val | ) |
Set multiple.
bool | $a_val | multiple |
Definition at line 73 of file class.ilObjTaxonomyGUI.php.
ilObjTaxonomyGUI::setTabs | ( | $a_id | ) |
Set tabs.
$a_id | string tab id to be activated |
Definition at line 800 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 343 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 898 of file class.ilObjTaxonomyGUI.php.
References $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, getCurrentTaxonomy(), initSettingsForm(), and ilUtil\sendSuccess().
ilObjTaxonomyGUI::updateTaxNode | ( | ) |
Update tax node.
Definition at line 504 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().