ILIAS
Release_5_0_x_branch Revision 61816
|
Taxonomy node <-> item assignment. More...
Public Member Functions | |
__construct ($a_component_id, $a_obj_id, $a_item_type, $a_tax_id) | |
Constructor. | |
getComponentId () | |
Get component id. | |
getItemType () | |
Get item type. | |
getTaxonomyId () | |
Get taxonomy id. | |
setObjectId ($a_val) | |
Set object id. | |
getObjectId () | |
Get object id. | |
getAssignmentsOfNode ($a_node_id) | |
Get assignments of node. | |
getAssignmentsOfItem ($a_item_id) | |
Get assignments for item. | |
addAssignment ($a_node_id, $a_item_id, $a_order_nr=0) | |
Add assignment. | |
deleteAssignment ($a_node_id, $a_item_id) | |
Delete assignment. | |
getMaxOrderNr ($a_node_id) | |
Get maximum order number. | |
setOrderNr ($a_node_id, $a_item_id, $a_order_nr) | |
Set order nr. | |
deleteAssignmentsOfItem ($a_item_id) | |
Delete assignments of item. | |
deleteAssignmentsOfNode ($a_node_id) | |
Delete assignments of node. | |
fixOrderNr ($a_node_id) | |
Fix Order Nr. |
Static Public Member Functions | |
static | deleteAllAssignmentsOfNode ($a_node_id) |
Delete assignments of node. | |
static | findObjectsByNode ($a_tax_id, array $a_node_ids, $a_item_type) |
Find object which have assigned nodes. |
Protected Member Functions | |
setComponentId ($a_val) | |
Set component id. | |
setItemType ($a_val) | |
Set item type. | |
setTaxonomyId ($a_val) | |
Set taxonomy id. |
Taxonomy node <-> item assignment.
This class allows to assign items to taxonomy nodes.
/
Definition at line 17 of file class.ilTaxNodeAssignment.php.
ilTaxNodeAssignment::__construct | ( | $a_component_id, | |
$a_obj_id, | |||
$a_item_type, | |||
$a_tax_id | |||
) |
Constructor.
string | $a_component_id | component id (e.g. "glo" for Modules/Glossary) |
int | $a_obj_id | repository object id of the object that is responsible for the assignment |
string | $a_item_type | item type (e.g. "term", must be unique component wide) [use "obj" if repository object wide taxonomies!] |
int | $a_tax_id | taxonomy id |
ilTaxonomyException |
Definition at line 28 of file class.ilTaxNodeAssignment.php.
References setComponentId(), setItemType(), setObjectId(), and setTaxonomyId().
ilTaxNodeAssignment::addAssignment | ( | $a_node_id, | |
$a_item_id, | |||
$a_order_nr = 0 |
|||
) |
Add assignment.
int | $a_node_id | node id |
int | $a_item_id | item id |
int | $a_order_nr | order nr |
ilTaxonomyException |
Definition at line 205 of file class.ilTaxNodeAssignment.php.
References $ilDB, getComponentId(), getItemType(), getMaxOrderNr(), getObjectId(), and getTaxonomyId().
Referenced by ilObjCategory\cloneDependencies(), and ilTaxonomyDataSet\importRecord().
|
static |
Delete assignments of node.
int | $a_node_id | node id |
Definition at line 381 of file class.ilTaxNodeAssignment.php.
References $ilDB.
Referenced by ilTaxonomyNode\delete().
ilTaxNodeAssignment::deleteAssignment | ( | $a_node_id, | |
$a_item_id | |||
) |
Delete assignment.
int | $a_node_id | node id |
int | $a_item_id | item id |
ilTaxonomyException |
Definition at line 267 of file class.ilTaxNodeAssignment.php.
References $ilDB, and getTaxonomyId().
ilTaxNodeAssignment::deleteAssignmentsOfItem | ( | $a_item_id | ) |
Delete assignments of item.
int | $a_item_id | item id |
Definition at line 346 of file class.ilTaxNodeAssignment.php.
References $ilDB, and getTaxonomyId().
Referenced by ilGlossaryTermGUI\updateTerm().
ilTaxNodeAssignment::deleteAssignmentsOfNode | ( | $a_node_id | ) |
Delete assignments of node.
int | $a_node_id | node id |
Definition at line 364 of file class.ilTaxNodeAssignment.php.
References $ilDB, getComponentId(), getItemType(), and getObjectId().
|
static |
Find object which have assigned nodes.
int | $a_item_type | |
int | $a_tax_id | |
array | $a_node_ids |
Definition at line 431 of file class.ilTaxNodeAssignment.php.
References $ilDB, $res, and $row.
Referenced by ilTaxonomyClassificationProvider\getFilteredObjects().
ilTaxNodeAssignment::fixOrderNr | ( | $a_node_id | ) |
Fix Order Nr.
Definition at line 393 of file class.ilTaxNodeAssignment.php.
References $ilDB, getComponentId(), getItemType(), getObjectId(), and getTaxonomyId().
|
final |
Get assignments for item.
int | $a_item_id | item id |
Definition at line 178 of file class.ilTaxNodeAssignment.php.
References $ilDB, getObjectId(), and getTaxonomyId().
Referenced by ilGlossaryTermGUI\getEditTermForm().
|
final |
Get assignments of node.
int | $a_node_id | node id |
Definition at line 137 of file class.ilTaxNodeAssignment.php.
References $ilDB, getComponentId(), getItemType(), getObjectId(), and getTaxonomyId().
ilTaxNodeAssignment::getComponentId | ( | ) |
Get component id.
Definition at line 66 of file class.ilTaxNodeAssignment.php.
Referenced by addAssignment(), deleteAssignmentsOfNode(), fixOrderNr(), getAssignmentsOfNode(), and setOrderNr().
ilTaxNodeAssignment::getItemType | ( | ) |
Get item type.
Definition at line 86 of file class.ilTaxNodeAssignment.php.
Referenced by addAssignment(), deleteAssignmentsOfNode(), fixOrderNr(), getAssignmentsOfNode(), and setOrderNr().
ilTaxNodeAssignment::getMaxOrderNr | ( | $a_node_id | ) |
Get maximum order number.
@return |
Definition at line 303 of file class.ilTaxNodeAssignment.php.
References $ilDB, and getTaxonomyId().
Referenced by addAssignment().
ilTaxNodeAssignment::getObjectId | ( | ) |
Get object id.
Definition at line 126 of file class.ilTaxNodeAssignment.php.
Referenced by addAssignment(), deleteAssignmentsOfNode(), fixOrderNr(), getAssignmentsOfItem(), getAssignmentsOfNode(), and setOrderNr().
ilTaxNodeAssignment::getTaxonomyId | ( | ) |
Get taxonomy id.
Definition at line 106 of file class.ilTaxNodeAssignment.php.
Referenced by addAssignment(), deleteAssignment(), deleteAssignmentsOfItem(), fixOrderNr(), getAssignmentsOfItem(), getAssignmentsOfNode(), getMaxOrderNr(), and setOrderNr().
|
protected |
Set component id.
string | $a_val | component id |
Definition at line 56 of file class.ilTaxNodeAssignment.php.
Referenced by __construct().
|
protected |
Set item type.
string | $a_val | item type |
Definition at line 76 of file class.ilTaxNodeAssignment.php.
Referenced by __construct().
ilTaxNodeAssignment::setObjectId | ( | $a_val | ) |
Set object id.
int | $a_val | object id |
Definition at line 116 of file class.ilTaxNodeAssignment.php.
Referenced by __construct().
ilTaxNodeAssignment::setOrderNr | ( | $a_node_id, | |
$a_item_id, | |||
$a_order_nr | |||
) |
Set order nr.
@return |
Definition at line 325 of file class.ilTaxNodeAssignment.php.
References $ilDB, getComponentId(), getItemType(), getObjectId(), and getTaxonomyId().
|
protected |
Set taxonomy id.
int | $a_val | taxonomy id |
Definition at line 96 of file class.ilTaxNodeAssignment.php.
Referenced by __construct().