silverorange Code


Swat.SwatDataTreeNode
/Swat/SwatDataTreeNode.php at line 14

Class SwatDataTreeNode

SwatObject
└─SwatTreeNode
└─SwatDataTreeNode

public class SwatDataTreeNode
extends SwatTreeNode

A tree node containing a value and a title

Copyright:
2005-2006 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1

Field Summary
string

$title

The title of this node.

mixed

$value

The value of this node.

Fields inherited from Swat.SwatTreeNode
children
Constructor Summary

SwatDataTreeNode(mixed value, string title)

Creates a new data node.

Methods inherited from Swat.SwatTreeNode
addChild, addTree, count, current, getChildren, getIndex, getParent, getPath, hasChildren, key, next, rewind, valid

Field Detail

/Swat/SwatDataTreeNode.php at line 34

title

public string $title

The title of this node

The title is used for display.


/Swat/SwatDataTreeNode.php at line 25

value

public mixed $value

The value of this node

The value is used for processing. It is either a string or an integer.


Constructor Detail

/Swat/SwatDataTreeNode.php at line 46

SwatDataTreeNode

public SwatDataTreeNode(mixed value, string title)

Creates a new data node

Parameters:
value - the value of the node. It is either a string or an integer.
title - the title of the node.

silverorange Code