IMP_Ftree_Iterator_Ancestors
extends IMP_Ftree_Iterator
in package
Iterator that returns all the ancestors (and their siblings) for an element.
Tags
Table of Contents
Properties
- $_elts : array<string|int, mixed>
- Sorted list of elements.
Methods
- __construct() : mixed
- Constructor.
- current() : mixed
- getChildren() : mixed
- hasChildren() : bool
- key() : mixed
- next() : void
- rewind() : void
- valid() : bool
Properties
$_elts
Sorted list of elements.
protected
array<string|int, mixed>
$_elts
= array()
Methods
__construct()
Constructor.
public
__construct(mixed $elt) : mixed
Parameters
- $elt : mixed
-
Either the parent element of the level (IMP_Ftree_Element object), or a flat list of Ftree elements to use as the base level.
current()
public
current() : mixed
getChildren()
public
getChildren() : mixed
hasChildren()
public
hasChildren() : bool
Return values
boolkey()
public
key() : mixed
next()
public
next() : void
rewind()
public
rewind() : void
valid()
public
valid() : bool