Tree Item Class. More...
Public Member Functions | |
| setValue ($v) | |
| Value setter. | |
| getValue () | |
| Valxue getter. | |
| __isset ($k) | |
| Tells if a child exists. | |
| __get ($k) | |
| Child getter. | |
| __set ($k, $v) | |
| Child setter. | |
| __unset ($k) | |
| Unset a child. | |
| offsetExists ($k) | |
| offsetExist implementation, alias of axTreeItem::__isset() | |
| offsetGet ($k) | |
| offsetGet implementation, alias of axTreeItem::__get() | |
| offsetSet ($k, $v) | |
| offsetSet implementation, alias of axTreeItem::__set() | |
| offsetUnset ($k) | |
| offsetUnset implementation, alias of axTreeItem::__unset() | |
| current () | |
| current implementation, returns the current child | |
| key () | |
| key implementation, returns the current key | |
| next () | |
| next implementation | |
| rewind () | |
| rewind implementation | |
| valid () | |
| valid implementation | |
| __toString () | |
| __toString implementation | |
Static Public Member Functions | |
| static | __set_state ($props) |
| __set_state implementation | |
Protected Attributes | |
| $_v | |
| Value. | |
| $_c | |
| Children. | |
Tree Item Class.
This class implements a tree on which branches can also have a value.
Definition at line 18 of file axTreeItem.class.php.
| axTreeItem::__get | ( | $ | k | ) |
Child getter.
| string | $k | The branche/leaf key |
Definition at line 68 of file axTreeItem.class.php.
| axTreeItem::__isset | ( | $ | k | ) |
Tells if a child exists.
| scalar | $k |
Definition at line 55 of file axTreeItem.class.php.
| axTreeItem::__set | ( | $ | k, |
| $ | v | ||
| ) |
Child setter.
| string | $k | |
| mixed | $v |
Definition at line 80 of file axTreeItem.class.php.
| static axTreeItem::__set_state | ( | $ | props | ) | [static] |
__set_state implementation
| array | $props |
Definition at line 197 of file axTreeItem.class.php.
__toString implementation
Get the string representation of current instance's value.
Definition at line 186 of file axTreeItem.class.php.
| axTreeItem::__unset | ( | $ | k | ) |
Unset a child.
| scalar | $k |
Definition at line 89 of file axTreeItem.class.php.
current implementation, returns the current child
Definition at line 139 of file axTreeItem.class.php.
| axTreeItem::key | ( | ) |
key implementation, returns the current key
Definition at line 148 of file axTreeItem.class.php.
| axTreeItem::next | ( | ) |
next implementation
Definition at line 157 of file axTreeItem.class.php.
| axTreeItem::offsetExists | ( | $ | k | ) |
offsetExist implementation, alias of axTreeItem::__isset()
| scalar | $k | The offset |
Definition at line 99 of file axTreeItem.class.php.
| axTreeItem::offsetGet | ( | $ | k | ) |
offsetGet implementation, alias of axTreeItem::__get()
| scalar | $k | The offset |
Definition at line 109 of file axTreeItem.class.php.
| axTreeItem::offsetSet | ( | $ | k, |
| $ | v | ||
| ) |
offsetSet implementation, alias of axTreeItem::__set()
| scalar | $k | The offset |
| mixed | $v | The value void |
Definition at line 120 of file axTreeItem.class.php.
| axTreeItem::offsetUnset | ( | $ | k | ) |
offsetUnset implementation, alias of axTreeItem::__unset()
| scalar | $k | The offset |
Definition at line 130 of file axTreeItem.class.php.
rewind implementation
Definition at line 166 of file axTreeItem.class.php.
| axTreeItem::setValue | ( | $ | v | ) |
Value setter.
| mixed | $v |
Definition at line 37 of file axTreeItem.class.php.
valid implementation
Definition at line 175 of file axTreeItem.class.php.
array axTreeItem::$_c [protected] |
Children.
Definition at line 30 of file axTreeItem.class.php.
mixed axTreeItem::$_v [protected] |
Value.
Definition at line 24 of file axTreeItem.class.php.