ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Taxonomy node. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor public. More... | |
setTitle ($a_title) | |
Set title. More... | |
getTitle () | |
Get title. More... | |
setType ($a_type) | |
Set type. More... | |
getType () | |
Get type. More... | |
setId ($a_id) | |
Set Node ID. More... | |
getId () | |
Get Node ID. More... | |
setOrderNr ($a_val) | |
Set order nr. More... | |
getOrderNr () | |
Get order nr. More... | |
setTaxonomyId ($a_val) | |
Set taxonomy id. More... | |
getTaxonomyId () | |
Get taxonomy id. More... | |
read () | |
Read data from database. More... | |
create () | |
Create taxonomy node. More... | |
update () | |
Update Node. More... | |
delete () | |
Delete taxonomy node. More... | |
copy ($a_tax_id=0) | |
Copy taxonomy node. More... | |
Static Public Member Functions | |
static | _lookupTitle ($a_obj_id) |
Lookup Title. More... | |
static | putInTree ($a_tax_id, $a_node, $a_parent_id="", $a_target_node_id="", $a_order_nr=0) |
Put this node into the taxonomy tree. More... | |
static | writeOrderNr ($a_node_id, $a_order_nr) |
Write order nr. More... | |
static | writeTitle ($a_node_id, $a_title) |
Write title. More... | |
static | getNextOrderNr ($a_tax_id, $a_parent_id) |
Put this node into the taxonomy tree. More... | |
static | fixOrderNumbers ($a_tax_id, $a_parent_id) |
Fix order numbers. More... | |
Data Fields | |
$type | |
$id | |
$title | |
Static Protected Member Functions | |
static | _lookup ($a_obj_id, $a_field) |
Lookup. More... | |
ilTaxonomyNode::__construct | ( | $a_id = 0 | ) |
Constructor public.
Definition at line 24 of file class.ilTaxonomyNode.php.
References read(), and setType().
|
staticprotected |
|
static |
Lookup Title.
int | node ID |
Definition at line 264 of file class.ilTaxonomyNode.php.
References $ilDB.
Referenced by ilObjTaxonomyGUI\deleteItems(), and ilTaxSelectInputGUI\getTitleForNodeId().
ilTaxonomyNode::copy | ( | $a_tax_id = 0 | ) |
Copy taxonomy node.
Definition at line 221 of file class.ilTaxonomyNode.php.
References getOrderNr(), getTaxonomyId(), getTitle(), and getType().
ilTaxonomyNode::create | ( | ) |
Create taxonomy node.
Definition at line 162 of file class.ilTaxonomyNode.php.
References $ilDB, $query, getOrderNr(), getTaxonomyId(), getTitle(), getType(), and setId().
ilTaxonomyNode::delete | ( | ) |
Delete taxonomy node.
Definition at line 205 of file class.ilTaxonomyNode.php.
References $ilDB, $query, ilTaxNodeAssignment\deleteAllAssignmentsOfNode(), and getId().
|
static |
Fix order numbers.
Definition at line 374 of file class.ilTaxonomyNode.php.
References ilUtil\sortArray().
Referenced by ilObjTaxonomyGUI\confirmedDelete(), ilObjTaxonomyGUI\pasteItems(), ilObjTaxonomyGUI\saveSorting(), and ilObjTaxonomyGUI\saveTaxNode().
ilTaxonomyNode::getId | ( | ) |
Get Node ID.
int | Node ID |
Definition at line 94 of file class.ilTaxonomyNode.php.
References $id.
Referenced by delete(), and update().
|
static |
Put this node into the taxonomy tree.
Definition at line 346 of file class.ilTaxonomyNode.php.
Referenced by ilObjTaxonomyGUI\saveTaxNode().
ilTaxonomyNode::getOrderNr | ( | ) |
Get order nr.
Definition at line 114 of file class.ilTaxonomyNode.php.
Referenced by copy(), create(), and update().
ilTaxonomyNode::getTaxonomyId | ( | ) |
Get taxonomy id.
Definition at line 134 of file class.ilTaxonomyNode.php.
Referenced by copy(), and create().
ilTaxonomyNode::getTitle | ( | ) |
ilTaxonomyNode::getType | ( | ) |
Get type.
Definition at line 74 of file class.ilTaxonomyNode.php.
References $type.
Referenced by copy(), and create().
|
static |
Put this node into the taxonomy tree.
Definition at line 274 of file class.ilTaxonomyNode.php.
References $target, and IL_FIRST_NODE.
Referenced by ilObjTaxonomy\cloneNodes(), ilTaxonomyDataSet\importRecord(), and ilObjTaxonomyGUI\saveTaxNode().
ilTaxonomyNode::read | ( | ) |
Read data from database.
Definition at line 142 of file class.ilTaxonomyNode.php.
References $ilDB, $query, setOrderNr(), setTaxonomyId(), setTitle(), and setType().
Referenced by __construct().
ilTaxonomyNode::setId | ( | $a_id | ) |
Set Node ID.
int | Node ID |
Definition at line 84 of file class.ilTaxonomyNode.php.
Referenced by create().
ilTaxonomyNode::setOrderNr | ( | $a_val | ) |
Set order nr.
int | $a_val | order nr |
Definition at line 104 of file class.ilTaxonomyNode.php.
Referenced by read().
ilTaxonomyNode::setTaxonomyId | ( | $a_val | ) |
Set taxonomy id.
int | $a_val | taxonomy id |
Definition at line 124 of file class.ilTaxonomyNode.php.
Referenced by read().
ilTaxonomyNode::setTitle | ( | $a_title | ) |
Set title.
string | $a_title | title |
Definition at line 44 of file class.ilTaxonomyNode.php.
Referenced by read().
ilTaxonomyNode::setType | ( | $a_type | ) |
Set type.
string | Type |
Definition at line 64 of file class.ilTaxonomyNode.php.
References $a_type.
Referenced by __construct(), and read().
ilTaxonomyNode::update | ( | ) |
Update Node.
Definition at line 190 of file class.ilTaxonomyNode.php.
References $ilDB, $query, getId(), getOrderNr(), and getTitle().
|
static |
Write order nr.
Definition at line 317 of file class.ilTaxonomyNode.php.
References $ilDB.
Referenced by ilObjTaxonomyGUI\saveSorting().
|
static |
Write title.
Definition at line 333 of file class.ilTaxonomyNode.php.
References $ilDB.
Referenced by ilObjTaxonomyGUI\saveSorting().
ilTaxonomyNode::$id |
Definition at line 17 of file class.ilTaxonomyNode.php.
Referenced by getId().
ilTaxonomyNode::$title |
Definition at line 18 of file class.ilTaxonomyNode.php.
Referenced by getTitle().
ilTaxonomyNode::$type |
Definition at line 16 of file class.ilTaxonomyNode.php.
Referenced by getType().