|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Taxonomy node <-> item assignment. More...
Collaboration diagram for ilTaxNodeAssignment:Public Member Functions | |
| __construct ($a_component_id, $a_obj_id, $a_item_type, $a_tax_id) | |
| Constructor. More... | |
| getComponentId () | |
| Get component id. More... | |
| getItemType () | |
| Get item type. More... | |
| getTaxonomyId () | |
| Get taxonomy id. More... | |
| setObjectId ($a_val) | |
| Set object id. More... | |
| getObjectId () | |
| Get object id. More... | |
| getAssignmentsOfNode ($a_node_id) | |
| Get assignments of node. More... | |
| getAssignmentsOfItem ($a_item_id) | |
| Get assignments for item. More... | |
| addAssignment ($a_node_id, $a_item_id, $a_order_nr=0) | |
| Add assignment. More... | |
| deleteAssignment ($a_node_id, $a_item_id) | |
| Delete assignment. More... | |
| getMaxOrderNr ($a_node_id) | |
| Get maximum order number. More... | |
| setOrderNr ($a_node_id, $a_item_id, $a_order_nr) | |
| Set order nr. More... | |
| deleteAssignmentsOfItem ($a_item_id) | |
| Delete assignments of item. More... | |
| deleteAssignmentsOfNode ($a_node_id) | |
| Delete assignments of node. More... | |
| fixOrderNr ($a_node_id) | |
| Fix Order Nr. More... | |
Static Public Member Functions | |
| static | deleteAllAssignmentsOfNode ($a_node_id) |
| Delete assignments of node. More... | |
| static | findObjectsByNode ($a_tax_id, array $a_node_ids, $a_item_type) |
| Find object which have assigned nodes. More... | |
Protected Member Functions | |
| setComponentId ($a_val) | |
| Set component id. More... | |
| setItemType ($a_val) | |
| Set item type. More... | |
| setTaxonomyId ($a_val) | |
| Set taxonomy id. More... | |
Protected Attributes | |
| $db | |
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 33 of file class.ilTaxNodeAssignment.php.
References $DIC, setComponentId(), setItemType(), setObjectId(), and setTaxonomyId().
Here is the call graph for this function:| 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 208 of file class.ilTaxNodeAssignment.php.
References $db, $ilDB, getComponentId(), getItemType(), getMaxOrderNr(), getObjectId(), and getTaxonomyId().
Here is the call graph for this function:
|
static |
Delete assignments of node.
| int | $a_node_id | node id |
Definition at line 387 of file class.ilTaxNodeAssignment.php.
Referenced by ilTaxonomyNode\delete().
Here is the caller graph for this function:| 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 269 of file class.ilTaxNodeAssignment.php.
References $db, $ilDB, and getTaxonomyId().
Here is the call graph for this function:| ilTaxNodeAssignment::deleteAssignmentsOfItem | ( | $a_item_id | ) |
Delete assignments of item.
| int | $a_item_id | item id |
Definition at line 350 of file class.ilTaxNodeAssignment.php.
| ilTaxNodeAssignment::deleteAssignmentsOfNode | ( | $a_node_id | ) |
Delete assignments of node.
| int | $a_node_id | node id |
Definition at line 369 of file class.ilTaxNodeAssignment.php.
|
static |
Find object which have assigned nodes.
| int | $a_item_type | |
| int | $a_tax_id | |
| array | $a_node_ids |
Definition at line 441 of file class.ilTaxNodeAssignment.php.
References $DIC, $ilDB, $res, and $row.
Referenced by ilTaxonomyClassificationProvider\getFilteredObjects().
Here is the caller graph for this function:| ilTaxNodeAssignment::fixOrderNr | ( | $a_node_id | ) |
Fix Order Nr.
Definition at line 402 of file class.ilTaxNodeAssignment.php.
|
final |
Get assignments for item.
| int | $a_item_id | item id |
Definition at line 181 of file class.ilTaxNodeAssignment.php.
|
final |
Get assignments of node.
| int | $a_node_id | node id |
Definition at line 142 of file class.ilTaxNodeAssignment.php.
| ilTaxNodeAssignment::getComponentId | ( | ) |
Get component id.
Definition at line 71 of file class.ilTaxNodeAssignment.php.
Referenced by addAssignment().
Here is the caller graph for this function:| ilTaxNodeAssignment::getItemType | ( | ) |
Get item type.
Definition at line 91 of file class.ilTaxNodeAssignment.php.
Referenced by addAssignment().
Here is the caller graph for this function:| ilTaxNodeAssignment::getMaxOrderNr | ( | $a_node_id | ) |
Get maximum order number.
return
Definition at line 305 of file class.ilTaxNodeAssignment.php.
Referenced by addAssignment().
Here is the caller graph for this function:| ilTaxNodeAssignment::getObjectId | ( | ) |
Get object id.
Definition at line 131 of file class.ilTaxNodeAssignment.php.
Referenced by addAssignment().
Here is the caller graph for this function:| ilTaxNodeAssignment::getTaxonomyId | ( | ) |
Get taxonomy id.
Definition at line 111 of file class.ilTaxNodeAssignment.php.
Referenced by addAssignment(), and deleteAssignment().
Here is the caller graph for this function:
|
protected |
Set component id.
| string | $a_val | component id |
Definition at line 61 of file class.ilTaxNodeAssignment.php.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Set item type.
| string | $a_val | item type |
Definition at line 81 of file class.ilTaxNodeAssignment.php.
Referenced by __construct().
Here is the caller graph for this function:| ilTaxNodeAssignment::setObjectId | ( | $a_val | ) |
Set object id.
| int | $a_val | object id |
Definition at line 121 of file class.ilTaxNodeAssignment.php.
Referenced by __construct().
Here is the caller graph for this function:| ilTaxNodeAssignment::setOrderNr | ( | $a_node_id, | |
| $a_item_id, | |||
| $a_order_nr | |||
| ) |
Set order nr.
return
Definition at line 328 of file class.ilTaxNodeAssignment.php.
|
protected |
Set taxonomy id.
| int | $a_val | taxonomy id |
Definition at line 101 of file class.ilTaxNodeAssignment.php.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Definition at line 22 of file class.ilTaxNodeAssignment.php.
Referenced by addAssignment(), deleteAssignment(), deleteAssignmentsOfItem(), deleteAssignmentsOfNode(), fixOrderNr(), getAssignmentsOfItem(), getAssignmentsOfNode(), getMaxOrderNr(), and setOrderNr().