ILIAS
Release_4_4_x_branch Revision 61816
|
Taxonomy node. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor public. | |
setTitle ($a_title) | |
Set title. | |
getTitle () | |
Get title. | |
setType ($a_type) | |
Set type. | |
getType () | |
Get type. | |
setId ($a_id) | |
Set Node ID. | |
getId () | |
Get Node ID. | |
setOrderNr ($a_val) | |
Set order nr. | |
getOrderNr () | |
Get order nr. | |
setTaxonomyId ($a_val) | |
Set taxonomy id. | |
getTaxonomyId () | |
Get taxonomy id. | |
read () | |
Read data from database. | |
create () | |
Create taxonomy node. | |
update () | |
Update Node. | |
delete () | |
Delete taxonomy node. | |
copy ($a_tax_id=0) | |
Copy taxonomy node. |
Static Public Member Functions | |
static | _lookupTitle ($a_obj_id) |
Lookup Title. | |
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. | |
static | writeOrderNr ($a_node_id, $a_order_nr) |
Write order nr. | |
static | writeTitle ($a_node_id, $a_title) |
Write title. | |
static | getNextOrderNr ($a_tax_id, $a_parent_id) |
Put this node into the taxonomy tree. | |
static | fixOrderNumbers ($a_tax_id, $a_parent_id) |
Fix order numbers. |
Data Fields | |
$type | |
$id | |
$title |
Static Protected Member Functions | |
static | _lookup ($a_obj_id, $a_field) |
Lookup. |
ilTaxonomyNode::__construct | ( | $a_id = 0 | ) |
Constructor public.
Definition at line 24 of file class.ilTaxonomyNode.php.
References read(), and setType().
|
staticprotected |
Lookup.
int | Node ID |
Definition at line 246 of file class.ilTaxonomyNode.php.
References $query.
Referenced by _lookupTitle().
|
static |
Lookup Title.
int | node ID |
Definition at line 264 of file class.ilTaxonomyNode.php.
References _lookup().
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 $id, $query, getOrderNr(), getTaxonomyId(), getTitle(), getType(), and setId().
ilTaxonomyNode::delete | ( | ) |
Delete taxonomy node.
Definition at line 205 of file class.ilTaxonomyNode.php.
References $query, ilTaxNodeAssignment\deleteAllAssignmentsOfNode(), and getId().
|
static |
Fix order numbers.
@return |
Definition at line 374 of file class.ilTaxonomyNode.php.
References ilUtil\sortArray(), and writeOrderNr().
Referenced by ilObjTaxonomyGUI\confirmedDelete(), ilObjTaxonomyGUI\pasteItems(), ilObjTaxonomyGUI\saveSorting(), and ilObjTaxonomyGUI\saveTaxNode().
ilTaxonomyNode::getId | ( | ) |
|
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 IL_FIRST_NODE.
Referenced by ilTaxonomyDataSet\importRecord(), and ilObjTaxonomyGUI\saveTaxNode().
ilTaxonomyNode::read | ( | ) |
Read data from database.
Definition at line 142 of file class.ilTaxonomyNode.php.
References $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.
Referenced by __construct(), and read().
ilTaxonomyNode::update | ( | ) |
Update Node.
Definition at line 190 of file class.ilTaxonomyNode.php.
References $query, getId(), getOrderNr(), and getTitle().
|
static |
Write order nr.
@return |
Definition at line 317 of file class.ilTaxonomyNode.php.
Referenced by fixOrderNumbers(), and ilObjTaxonomyGUI\saveSorting().
|
static |
Write title.
@return |
Definition at line 333 of file class.ilTaxonomyNode.php.
Referenced by ilObjTaxonomyGUI\saveSorting().
ilTaxonomyNode::$id |
Definition at line 17 of file class.ilTaxonomyNode.php.
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().