ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (string $a_component_id, int $a_obj_id, string $a_item_type, int $a_tax_id, ilDBInterface $db=null) | |
Constructor. More... | |
getComponentId () | |
getItemType () | |
getTaxonomyId () | |
setObjectId (int $a_val) | |
getObjectId () | |
getAssignmentsOfNode ($a_node_id) | |
Get assignments of node. More... | |
getAssignmentsOfItem (int $a_item_id) | |
Get assignments for item. More... | |
addAssignment (int $a_node_id, int $a_item_id, int $a_order_nr=0) | |
Add assignment. More... | |
deleteAssignment (int $a_node_id, int $a_item_id) | |
getMaxOrderNr (int $a_node_id) | |
setOrderNr (int $a_node_id, int $a_item_id, int $a_order_nr) | |
deleteAssignmentsOfItem (int $a_item_id) | |
deleteAssignmentsOfNode (int $a_node_id) | |
fixOrderNr (int $a_node_id) | |
Static Public Member Functions | |
static | deleteAllAssignmentsOfNode (int $a_node_id) |
static | findObjectsByNode (int $a_tax_id, array $a_node_ids, string $a_item_type) |
Find object which have assigned nodes. More... | |
Protected Member Functions | |
setComponentId (string $a_val) | |
setItemType (string $a_val) | |
setTaxonomyId (int $a_val) | |
Protected Attributes | |
ilDBInterface | $db |
string | $component_id |
int | $taxonomy_id |
string | $item_type |
int | $obj_id |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Taxonomy node <-> item assignment This class allows to assign items to taxonomy nodes.
Definition at line 24 of file class.ilTaxNodeAssignment.php.
ilTaxNodeAssignment::__construct | ( | string | $a_component_id, |
int | $a_obj_id, | ||
string | $a_item_type, | ||
int | $a_tax_id, | ||
ilDBInterface | $db = null |
||
) |
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 |
ilDBInterface | null | $db |
ilTaxonomyException |
Definition at line 41 of file class.ilTaxNodeAssignment.php.
References $db, $DIC, setComponentId(), setItemType(), setObjectId(), and setTaxonomyId().
ilTaxNodeAssignment::addAssignment | ( | int | $a_node_id, |
int | $a_item_id, | ||
int | $a_order_nr = 0 |
||
) |
Add assignment.
ilTaxonomyException |
Definition at line 177 of file class.ilTaxNodeAssignment.php.
References $db, $ilDB, getComponentId(), getItemType(), getMaxOrderNr(), getObjectId(), and getTaxonomyId().
Referenced by ilObjCategory\cloneDependencies(), and ilTaxonomyDataSet\importRecord().
|
static |
Definition at line 321 of file class.ilTaxNodeAssignment.php.
Referenced by ilTaxonomyNode\delete().
ilTaxNodeAssignment::deleteAssignment | ( | int | $a_node_id, |
int | $a_item_id | ||
) |
Definition at line 231 of file class.ilTaxNodeAssignment.php.
References $db, $ilDB, and getTaxonomyId().
ilTaxNodeAssignment::deleteAssignmentsOfItem | ( | int | $a_item_id | ) |
Definition at line 294 of file class.ilTaxNodeAssignment.php.
References $db, $ilDB, and getTaxonomyId().
Referenced by ilGlossaryTermGUI\updateTerm().
ilTaxNodeAssignment::deleteAssignmentsOfNode | ( | int | $a_node_id | ) |
Definition at line 308 of file class.ilTaxNodeAssignment.php.
References $db, $ilDB, getComponentId(), getItemType(), and getObjectId().
|
static |
Find object which have assigned nodes.
Definition at line 366 of file class.ilTaxNodeAssignment.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilTaxonomyClassificationProvider\getFilteredObjects().
ilTaxNodeAssignment::fixOrderNr | ( | int | $a_node_id | ) |
Definition at line 334 of file class.ilTaxNodeAssignment.php.
References $db, $ilDB, getComponentId(), getItemType(), getObjectId(), and getTaxonomyId().
|
final |
Get assignments for item.
Definition at line 154 of file class.ilTaxNodeAssignment.php.
References $db, $ilDB, getObjectId(), and getTaxonomyId().
Referenced by ilObjGlossary\cloneObject(), ilTestRandomQuestionSetPoolDeriver\filterForQuestionRelatedTaxonomies(), and assQuestionGUI\populateTaxonomyFormSection().
|
final |
Get assignments of node.
string | array | $a_node_id | node id |
Definition at line 117 of file class.ilTaxNodeAssignment.php.
References $db, $ilDB, getComponentId(), getItemType(), getObjectId(), and getTaxonomyId().
ilTaxNodeAssignment::getComponentId | ( | ) |
Definition at line 77 of file class.ilTaxNodeAssignment.php.
References $component_id.
Referenced by addAssignment(), deleteAssignmentsOfNode(), fixOrderNr(), getAssignmentsOfNode(), and setOrderNr().
ilTaxNodeAssignment::getItemType | ( | ) |
Definition at line 87 of file class.ilTaxNodeAssignment.php.
References $item_type.
Referenced by addAssignment(), deleteAssignmentsOfNode(), fixOrderNr(), getAssignmentsOfNode(), and setOrderNr().
ilTaxNodeAssignment::getMaxOrderNr | ( | int | $a_node_id | ) |
Definition at line 261 of file class.ilTaxNodeAssignment.php.
References $db, $ilDB, and getTaxonomyId().
Referenced by addAssignment().
ilTaxNodeAssignment::getObjectId | ( | ) |
Definition at line 107 of file class.ilTaxNodeAssignment.php.
References $obj_id.
Referenced by addAssignment(), deleteAssignmentsOfNode(), fixOrderNr(), getAssignmentsOfItem(), getAssignmentsOfNode(), and setOrderNr().
ilTaxNodeAssignment::getTaxonomyId | ( | ) |
Definition at line 97 of file class.ilTaxNodeAssignment.php.
References $taxonomy_id.
Referenced by addAssignment(), deleteAssignment(), deleteAssignmentsOfItem(), fixOrderNr(), getAssignmentsOfItem(), getAssignmentsOfNode(), getMaxOrderNr(), and setOrderNr().
|
protected |
Definition at line 72 of file class.ilTaxNodeAssignment.php.
Referenced by __construct().
|
protected |
Definition at line 82 of file class.ilTaxNodeAssignment.php.
Referenced by __construct().
ilTaxNodeAssignment::setObjectId | ( | int | $a_val | ) |
Definition at line 102 of file class.ilTaxNodeAssignment.php.
Referenced by __construct().
ilTaxNodeAssignment::setOrderNr | ( | int | $a_node_id, |
int | $a_item_id, | ||
int | $a_order_nr | ||
) |
Definition at line 278 of file class.ilTaxNodeAssignment.php.
References $db, $ilDB, getComponentId(), getItemType(), getObjectId(), and getTaxonomyId().
|
protected |
Definition at line 92 of file class.ilTaxNodeAssignment.php.
Referenced by __construct().
|
protected |
Definition at line 27 of file class.ilTaxNodeAssignment.php.
Referenced by getComponentId().
|
protected |
Definition at line 26 of file class.ilTaxNodeAssignment.php.
Referenced by __construct(), addAssignment(), deleteAssignment(), deleteAssignmentsOfItem(), deleteAssignmentsOfNode(), fixOrderNr(), getAssignmentsOfItem(), getAssignmentsOfNode(), getMaxOrderNr(), and setOrderNr().
|
protected |
Definition at line 29 of file class.ilTaxNodeAssignment.php.
Referenced by getItemType().
|
protected |
Definition at line 30 of file class.ilTaxNodeAssignment.php.
Referenced by getObjectId().
|
protected |
Definition at line 28 of file class.ilTaxNodeAssignment.php.
Referenced by getTaxonomyId().