‪TYPO3CMS  ‪main
TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\IncludeConditionInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\IncludeConditionInterface:
TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\AbstractConditionInclude TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\ConditionElseInclude TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\ConditionInclude TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\ConditionIncludeTyposcriptInclude

Public Member Functions

 setConditionToken (Token $token)
 
 getConditionToken ()
 
 setOriginalConditionToken (Token $token)
 
 getOriginalConditionToken ()
 
 isConditionNegated ()
 
 setConditionVerdict (bool $verdict)
 
 getConditionVerdict ()
 

Detailed Description

Source streams that contain conditions are split smaller parts and each condition creates a Condition node.

This interface is implemented by all conditions nodes. It allows "parking" the main condition token to be evaluated during AST building.

: Internal tree structure.

Definition at line 31 of file IncludeConditionInterface.php.

Member Function Documentation

◆ getConditionToken()

TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\IncludeConditionInterface::getConditionToken ( )

◆ getConditionVerdict()

TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\IncludeConditionInterface::getConditionVerdict ( )

◆ getOriginalConditionToken()

TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\IncludeConditionInterface::getOriginalConditionToken ( )

◆ isConditionNegated()

TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\IncludeConditionInterface::isConditionNegated ( )

◆ setConditionToken()

TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\IncludeConditionInterface::setConditionToken ( Token  $token)

Set and get the condition token: "[foo = bar]"

Implemented in TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\AbstractConditionInclude.

◆ setConditionVerdict()

TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\IncludeConditionInterface::setConditionVerdict ( bool  $verdict)

When a condition is evaluated, this is set to true of false depending on the condition result.

Implemented in TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\AbstractConditionInclude.

◆ setOriginalConditionToken()

TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\IncludeConditionInterface::setOriginalConditionToken ( Token  $token)

Conditions may use constants: "[foo = {$bar}]". This getter/setter allows storing the original condition token string. This is set in backend only in case a constant substitution has taken place. Otherwise, the "vanilla" condition token is identical, getOriginalConditionToken() returns null and the condition token should be fetched from getConditionToken().

Implemented in TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\AbstractConditionInclude.