IncludeTreeConditionAggregatorVisitor implements IncludeTreeVisitorInterface

FinalYes

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.

Internal

This is a specific Backend implementation and is not considered part of the Public TYPO3 API.

Table of Contents

Interfaces

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

Methods

getConditions()  : array<string|int, mixed>
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<string|int, mixed>
Return values
array<string|int, mixed>

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

Search results