Documentation

TreenodeMatcher

Interface for matching nodes in the treenode

Table of Contents

Methods

ascend()  : mixed
Called after children have been processed. No return value.
descend()  : bool
Returns true if the children of the specified node should be searched, false otherwise.
match()  : bool
Returns true if this node matches the matcher, false if the node does not match.

Methods

ascend()

Called after children have been processed. No return value.

public ascend(Treenode $node) : mixed
Parameters
$node : Treenode

The treenode which has just ascended.

descend()

Returns true if the children of the specified node should be searched, false otherwise.

public descend(Treenode $node) : bool
Parameters
$node : Treenode

The treenode which is about to be descended into

Return values
bool —

True descending should proceed, false otherwise

match()

Returns true if this node matches the matcher, false if the node does not match.

public match(Treenode $node) : bool
Parameters
$node : Treenode

The treenode to do matching against

Return values
bool —

True if the node matches, false otherwise

On this page

Search results