‪TYPO3CMS  ‪main
TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeConditionAggregatorVisitor Class Reference
Inheritance diagram for TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeConditionAggregatorVisitor:
TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeVisitorInterface

Public Member Functions

 getConditions ()
 
 visitBeforeChildren (IncludeInterface $include, int $currentDepth)
 
 visit (IncludeInterface $include, int $currentDepth)
 

Private Attributes

array $conditions = []
 

Detailed Description

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.

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

Definition at line 31 of file IncludeTreeConditionAggregatorVisitor.php.

Member Function Documentation

◆ getConditions()

TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeConditionAggregatorVisitor::getConditions ( )

◆ visit()

TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeConditionAggregatorVisitor::visit ( IncludeInterface  $include,
int  $currentDepth 
)

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

Implements TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeVisitorInterface.

Definition at line 55 of file IncludeTreeConditionAggregatorVisitor.php.

◆ visitBeforeChildren()

TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeConditionAggregatorVisitor::visitBeforeChildren ( IncludeInterface  $include,
int  $currentDepth 
)

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).

Implements TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeVisitorInterface.

Definition at line 46 of file IncludeTreeConditionAggregatorVisitor.php.

Member Data Documentation

◆ $conditions

array TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeConditionAggregatorVisitor::$conditions = []
private