Documentation

NodeWalker
in package

Table of Contents

$current  : Node|null
$entering  : bool
$root  : Node
__construct()  : mixed
next()  : NodeWalkerEvent|null
Returns an event which contains node and entering flag (entering is true when we enter a Node from a parent or sibling, and false when we reenter it from child)
resumeAt()  : void
Resets the iterator to resume at the specified node

Properties

Methods

__construct()

public __construct(Node $root) : mixed
Parameters
$root : Node
Return values
mixed

next()

Returns an event which contains node and entering flag (entering is true when we enter a Node from a parent or sibling, and false when we reenter it from child)

public next() : NodeWalkerEvent|null
Return values
NodeWalkerEvent|null

resumeAt()

Resets the iterator to resume at the specified node

public resumeAt(Node $node[, bool $entering = true ]) : void
Parameters
$node : Node
$entering : bool = true
Return values
void

Search results