Class Varien_Data_Tree_Node

Description

Data tree node

Located in /Data/Tree/Node.php (line 34)

Varien_Object
   |
   --Varien_Data_Tree_Node
Variable Summary
Method Summary
Varien_Data_Tree_Node __construct (array $data, string $idFeild, Varien_Data_Tree $tree, [Varien_Data_Tree_Node $parent = null])
void appendChild ([ $prevNode = null])
void copyTo ( $parentNode, [ $prevNode = null])
void getAllChildNodes ([ &$nodes = array()])
mixed getId ()
string getIdField ()
void getIsActive ()
void getLastChild ()
void getName ()
void getPath ([ &$prevNodes = array()])
bool hasChildren ()
void isChildOf ( $node)
Varien_Data_Tree_Node loadChildren ([int $recursionLevel = 0])
void moveTo ( $parentNode, [ $prevNode = null])
void removeChild ( $childNode)
this setIdField (string $idField)
void setLevel ( $level)
void setPathId ( $path)
this setTree (Varien_Data_Tree $tree)
Variables
Varien_Data_Tree_Node_Collection $_childNodes (line 55)

Child nodes

  • access: protected
string $_idField (line 62)

Node ID field name

  • access: protected
Varien_Data_Tree_Node $_parent (line 41)

Parent node

  • access: protected
Varien_Data_Tree $_tree (line 48)

Main tree object

  • access: protected

Inherited Variables

Inherited from Varien_Object

Varien_Object::$_data
Varien_Object::$_hasDataChanges
Varien_Object::$_idFieldName
Varien_Object::$_isDeleted
Varien_Object::$_origData
Varien_Object::$_underscoreCache
Methods
Constructor __construct (line 72)

Data tree node constructor

  • access: public
Varien_Data_Tree_Node __construct (array $data, string $idFeild, Varien_Data_Tree $tree, [Varien_Data_Tree_Node $parent = null])

Redefinition of:
Varien_Object::__construct()
Constructor
addChild (line 226)

Add child node

  • access: public
appendChild (line 232)
  • access: public
void appendChild ([ $prevNode = null])
  • $prevNode
copyTo (line 244)
  • access: public
void copyTo ( $parentNode, [ $prevNode = null])
  • $parentNode
  • $prevNode
getAllChildNodes (line 206)
  • access: public
void getAllChildNodes ([ &$nodes = array()])
  • &$nodes
getChildren (line 201)

Retrieve node children collection

  • access: public
getId (line 86)

Retrieve node id

  • access: public
mixed getId ()

Redefinition of:
Varien_Object::getId()
Retrieve object id
getIdField (line 108)

Retrieve node id field name

  • access: public
string getIdField ()
getIsActive (line 265)
  • access: public
void getIsActive ()
getLastChild (line 215)
  • access: public
void getLastChild ()
getName (line 270)
  • access: public
void getName ()
getParent (line 152)

Retrieve node parent

  • access: public
Varien_Data_Tree getParent ()
getPath (line 256)
  • access: public
void getPath ([ &$prevNodes = array()])
  • &$prevNodes
getTree (line 130)

Retrieve node tree object

  • access: public
Varien_Data_Tree getTree ()
hasChildren (line 162)

Check node children

  • access: public
bool hasChildren ()
isChildOf (line 179)
  • access: public
void isChildOf ( $node)
  • $node
loadChildren (line 190)

Load node children

  • access: public
Varien_Data_Tree_Node loadChildren ([int $recursionLevel = 0])
  • int $recursionLevel
moveTo (line 238)
  • access: public
void moveTo ( $parentNode, [ $prevNode = null])
  • $parentNode
  • $prevNode
removeChild (line 250)
  • access: public
void removeChild ( $childNode)
  • $childNode
setIdField (line 97)

Set node id field name

  • access: public
this setIdField (string $idField)
  • string $idField
setLevel (line 167)
  • access: public
void setLevel ( $level)
  • $level
setParent (line 141)

Set node parent

  • access: public
setPathId (line 173)
  • access: public
void setPathId ( $path)
  • $path
setTree (line 119)

Set node tree object

  • access: public
this setTree (Varien_Data_Tree $tree)

Inherited Methods

Inherited From Varien_Object

Varien_Object::__construct()
Varien_Object::addData()
Varien_Object::dataHasChangedFor()
Varien_Object::debug()
Varien_Object::flagDirty()
Varien_Object::getData()
Varien_Object::getDataSetDefault()
Varien_Object::getDataUsingMethod()
Varien_Object::getId()
Varien_Object::getIdFieldName()
Varien_Object::getOrigData()
Varien_Object::hasData()
Varien_Object::hasDataChanges()
Varien_Object::isDeleted()
Varien_Object::isDirty()
Varien_Object::isEmpty()
Varien_Object::offsetExists()
Varien_Object::offsetGet()
Varien_Object::offsetSet()
Varien_Object::offsetUnset()
Varien_Object::serialize()
Varien_Object::setData()
Varien_Object::setDataChanges()
Varien_Object::setDataUsingMethod()
Varien_Object::setId()
Varien_Object::setIdFieldName()
Varien_Object::setOrigData()
Varien_Object::toArray()
Varien_Object::toJson()
Varien_Object::toString()
Varien_Object::toXml()
Varien_Object::unsetData()
Varien_Object::_camelize()
Varien_Object::_construct()
Varien_Object::_getData()
Varien_Object::_prepareArray()
Varien_Object::_underscore()
Varien_Object::__call()
Varien_Object::__get()
Varien_Object::__set()
Varien_Object::__toArray()
Varien_Object::__toJson()
Varien_Object::__toXml()

Documentation generated on Fri, 11 Feb 2011 16:53:21 +0200 by phpDocumentor 1.4.3