ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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... | |
Protected Attributes | |
$db | |
ilTaxonomyNode::__construct | ( | $a_id = 0 | ) |
Constructor public.
Definition at line 29 of file class.ilTaxonomyNode.php.
References $DIC, read(), and setType().
|
staticprotected |
Lookup.
int | Node ID |
Definition at line 247 of file class.ilTaxonomyNode.php.
References $DIC, $ilDB, and $query.
|
static |
Lookup Title.
int | node ID |
Definition at line 267 of file class.ilTaxonomyNode.php.
Referenced by ilObjTaxonomyGUI\deleteItems(), and ilTaxSelectInputGUI\getTitleForNodeId().
ilTaxonomyNode::copy | ( | $a_tax_id = 0 | ) |
Copy taxonomy node.
Definition at line 225 of file class.ilTaxonomyNode.php.
References getOrderNr(), getTaxonomyId(), getTitle(), and getType().
ilTaxonomyNode::create | ( | ) |
Create taxonomy node.
Definition at line 168 of file class.ilTaxonomyNode.php.
References $db, $id, $ilDB, $query, getOrderNr(), getTaxonomyId(), getTitle(), getType(), and setId().
ilTaxonomyNode::delete | ( | ) |
Delete taxonomy node.
Definition at line 209 of file class.ilTaxonomyNode.php.
References $db, $ilDB, $query, ilTaxNodeAssignment\deleteAllAssignmentsOfNode(), and getId().
|
static |
Fix order numbers.
Definition at line 379 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 101 of file class.ilTaxonomyNode.php.
References $id.
Referenced by delete(), and update().
|
static |
Put this node into the taxonomy tree.
Definition at line 354 of file class.ilTaxonomyNode.php.
Referenced by ilObjTaxonomyGUI\saveTaxNode().
ilTaxonomyNode::getOrderNr | ( | ) |
Get order nr.
Definition at line 121 of file class.ilTaxonomyNode.php.
Referenced by copy(), create(), and update().
ilTaxonomyNode::getTaxonomyId | ( | ) |
Get taxonomy id.
Definition at line 141 of file class.ilTaxonomyNode.php.
Referenced by copy(), and create().
ilTaxonomyNode::getTitle | ( | ) |
ilTaxonomyNode::getType | ( | ) |
Get type.
Definition at line 81 of file class.ilTaxonomyNode.php.
References $type.
Referenced by copy(), and create().
|
static |
Put this node into the taxonomy tree.
Definition at line 279 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 149 of file class.ilTaxonomyNode.php.
References $db, $ilDB, $query, setOrderNr(), setTaxonomyId(), setTitle(), and setType().
Referenced by __construct().
ilTaxonomyNode::setId | ( | $a_id | ) |
Set Node ID.
int | Node ID |
Definition at line 91 of file class.ilTaxonomyNode.php.
Referenced by create().
ilTaxonomyNode::setOrderNr | ( | $a_val | ) |
Set order nr.
int | $a_val | order nr |
Definition at line 111 of file class.ilTaxonomyNode.php.
Referenced by read().
ilTaxonomyNode::setTaxonomyId | ( | $a_val | ) |
Set taxonomy id.
int | $a_val | taxonomy id |
Definition at line 131 of file class.ilTaxonomyNode.php.
Referenced by read().
ilTaxonomyNode::setTitle | ( | $a_title | ) |
Set title.
string | $a_title | title |
Definition at line 51 of file class.ilTaxonomyNode.php.
Referenced by read().
ilTaxonomyNode::setType | ( | $a_type | ) |
Set type.
string | Type |
Definition at line 71 of file class.ilTaxonomyNode.php.
References $a_type.
Referenced by __construct(), and read().
ilTaxonomyNode::update | ( | ) |
Update Node.
Definition at line 194 of file class.ilTaxonomyNode.php.
References $db, $ilDB, $query, getId(), getOrderNr(), and getTitle().
|
static |
Write order nr.
Definition at line 319 of file class.ilTaxonomyNode.php.
Referenced by ilObjTaxonomyGUI\saveSorting().
|
static |
Write title.
Definition at line 338 of file class.ilTaxonomyNode.php.
Referenced by ilObjTaxonomyGUI\saveSorting().
|
protected |
ilTaxonomyNode::$id |
Definition at line 22 of file class.ilTaxonomyNode.php.
ilTaxonomyNode::$title |
Definition at line 23 of file class.ilTaxonomyNode.php.
Referenced by getTitle().
ilTaxonomyNode::$type |
Definition at line 21 of file class.ilTaxonomyNode.php.
Referenced by getType().