ILIAS
release_4-3 Revision
|
Taxonomy node <-> item assignment. More...
Public Member Functions | |
__construct ($a_component_id, $a_item_type, $a_tax_id) | |
Constructor. | |
getComponentId () | |
Get component id. | |
getItemType () | |
Get item type. | |
getTaxonomyId () | |
Get taxonomy id. | |
getAssignmentsOfNode ($a_node_id) | |
Get assignments of node. | |
getAssignmentsOfItem ($a_item_id) | |
Get assignments for item. | |
addAssignment ($a_node_id, $a_item_id) | |
Add assignment. | |
deleteAssignmentsOfItem ($a_item_id) | |
Delete assignments of item. |
Static Public Member Functions | |
static | deleteAssignmentsOfNode ($a_node_id) |
Delete assignments of node. |
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_item_type, | |||
$a_tax_id | |||
) |
Constructor.
string | $a_component_id | component id (e.g. "glo" for Modules/Glossary) |
string | $a_item_type | item type (e.g. "term", must be unique component wide) |
int | $a_tax_id | taxonomy id |
Definition at line 26 of file class.ilTaxNodeAssignment.php.
References setComponentId(), setItemType(), and setTaxonomyId().
ilTaxNodeAssignment::addAssignment | ( | $a_node_id, | |
$a_item_id | |||
) |
Add assignment.
int | $a_node_id | node id |
int | $a_item_id | item id |
Definition at line 168 of file class.ilTaxNodeAssignment.php.
References getComponentId(), getItemType(), and getTaxonomyId().
Referenced by ilTaxonomyDataSet\importRecord().
ilTaxNodeAssignment::deleteAssignmentsOfItem | ( | $a_item_id | ) |
Delete assignments of item.
int | $a_item_id | item id |
Definition at line 204 of file class.ilTaxNodeAssignment.php.
|
static |
Delete assignments of node.
int | $a_node_id | node id |
Definition at line 220 of file class.ilTaxNodeAssignment.php.
Referenced by ilTaxonomyNode\delete().
|
final |
Get assignments for item.
int | $a_item_id | item id |
Definition at line 145 of file class.ilTaxNodeAssignment.php.
|
final |
Get assignments of node.
int | $a_node_id | node id |
Definition at line 114 of file class.ilTaxNodeAssignment.php.
Referenced by ilObjTaxonomy\getSubTreeItems().
ilTaxNodeAssignment::getComponentId | ( | ) |
Get component id.
Definition at line 63 of file class.ilTaxNodeAssignment.php.
Referenced by addAssignment().
ilTaxNodeAssignment::getItemType | ( | ) |
Get item type.
Definition at line 83 of file class.ilTaxNodeAssignment.php.
Referenced by addAssignment().
ilTaxNodeAssignment::getTaxonomyId | ( | ) |
Get taxonomy id.
Definition at line 103 of file class.ilTaxNodeAssignment.php.
Referenced by addAssignment().
|
protected |
Set component id.
string | $a_val | component id |
Definition at line 53 of file class.ilTaxNodeAssignment.php.
Referenced by __construct().
|
protected |
Set item type.
string | $a_val | item type |
Definition at line 73 of file class.ilTaxNodeAssignment.php.
Referenced by __construct().
|
protected |
Set taxonomy id.
int | $a_val | taxonomy id |
Definition at line 93 of file class.ilTaxNodeAssignment.php.
Referenced by __construct().