IncludeTreeConditionAggregatorVisitor

final class \TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeConditionAggregatorVisitor

Implements
IncludeTreeVisitorInterface

Gather conditions in an IncludeTree.

This visitor is used in ext:tstemplate TypoScript modules and ext:backend page TSconfig backend modules to find available conditions and make them toggleable.

Table of Contents

Interfaces

IncludeTreeVisitorInterface
A visitor that can be attached to IncludeTreeTraverser's.

Methods

getConditions()  : array
Get accumulated conditions gathered by visit().
visit()  : void
If the given include is an IncludeConditionInterface, grab it's original (unchanged by constants) condition token.
visitBeforeChildren()  : void
Gets called by the traversers *before* children are traversed. Useful for instance for the IncludeTreeConditionMatcherVisitor to evaluate a condition verdict *before* children are traversed (or not).

Methods

getConditions()

Get accumulated conditions gathered by visit().

public getConditions() : array

Return values

array

visit()

If the given include is an IncludeConditionInterface, grab it's original (unchanged by constants) condition token.

public visit(IncludeInterface $include, int $currentDepth) : void

Parameters

$include : IncludeInterface
$currentDepth : int

visitBeforeChildren()

Gets called by the traversers *before* children are traversed. Useful for instance for the IncludeTreeConditionMatcherVisitor to evaluate a condition verdict *before* children are traversed (or not).

public visitBeforeChildren(IncludeInterface $include, int $currentDepth) : void

Parameters

$include : IncludeInterface
$currentDepth : int
On this page