Public Member Functions | |
__construct ($data, $idFeild, $tree, $parent=null) | |
getId () | |
setIdField ($idField) | |
getIdField () | |
setTree (Varien_Data_Tree $tree) | |
getTree () | |
setParent ($parent) | |
getParent () | |
hasChildren () | |
setLevel ($level) | |
setPathId ($path) | |
isChildOf ($node) | |
loadChildren ($recursionLevel=0) | |
getChildren () | |
getAllChildNodes (&$nodes=array()) | |
getLastChild () | |
addChild ($node) | |
appendChild ($prevNode=null) | |
moveTo ($parentNode, $prevNode=null) | |
copyTo ($parentNode, $prevNode=null) | |
removeChild ($childNode) | |
getPath (&$prevNodes=array()) | |
getIsActive () | |
getName () | |
Protected Attributes | |
$_parent | |
$_tree | |
$_childNodes | |
$_idField |
Definition at line 34 of file Node.php.
__construct | ( | $ | data, | |
$ | idFeild, | |||
$ | tree, | |||
$ | parent = null | |||
) |
Data tree node constructor
array | $data | |
string | $idFeild | |
Varien_Data_Tree | $tree | |
Varien_Data_Tree_Node | $parent |
Definition at line 72 of file Node.php.
00073 { 00074 $this->setTree($tree); 00075 $this->setParent($parent); 00076 $this->setIdField($idFeild); 00077 $this->setData($data); 00078 $this->_childNodes = new Varien_Data_Tree_Node_Collection($this); 00079 }
addChild | ( | $ | node | ) |
Add child node
Varien_Data_Tree_Node | $node |
Definition at line 226 of file Node.php.
appendChild | ( | $ | prevNode = null |
) |
copyTo | ( | $ | parentNode, | |
$ | prevNode = null | |||
) |
getAllChildNodes | ( | &$ | nodes = array() |
) |
getChildren | ( | ) |
Retrieve node children collection
Definition at line 201 of file Node.php.
getId | ( | ) |
Retrieve node id
Reimplemented from Varien_Object.
Definition at line 86 of file Node.php.
00087 { 00088 return $this->getData($this->getIdField()); 00089 }
getIdField | ( | ) |
getIsActive | ( | ) |
getLastChild | ( | ) |
getName | ( | ) |
getParent | ( | ) |
getPath | ( | &$ | prevNodes = array() |
) |
getTree | ( | ) |
hasChildren | ( | ) |
loadChildren | ( | $ | recursionLevel = 0 |
) |
Load node children
int | $recursionLevel |
Definition at line 190 of file Node.php.
moveTo | ( | $ | parentNode, | |
$ | prevNode = null | |||
) |
removeChild | ( | $ | childNode | ) |
setIdField | ( | $ | idField | ) |
setLevel | ( | $ | level | ) |
setParent | ( | $ | parent | ) |
Set node parent
Varien_Data_Tree_Node | $parent |
Definition at line 141 of file Node.php.
setPathId | ( | $ | path | ) |
setTree | ( | Varien_Data_Tree $ | tree | ) |
Set node tree object
Varien_Data_Tree | $tree |
Definition at line 119 of file Node.php.