‪TYPO3CMS  ‪main
TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\AbstractConditionInclude Class Reference
Inheritance diagram for TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\AbstractConditionInclude:
TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\AbstractInclude TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\IncludeConditionInterface TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\IncludeInterface 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 ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\AbstractInclude
 __serialize ()
 
 getType ()
 
 setIdentifier (string $identifier)
 
 getIdentifier ()
 
 setName (string $name)
 
 getName ()
 
 setPath (string $path)
 
 getPath ()
 
 addChild (IncludeInterface $node)
 
 hasChildren ()
 
 getNextChild ()
 
 isSysTemplateRecord ()
 
 setLineStream (?LineStream $lineStream)
 
 getLineStream ()
 
 setOriginalLine (LineInterface $line)
 
 getOriginalLine ()
 
 setSplit ()
 
 isSplit ()
 
 setRoot (bool $root)
 
 isRoot ()
 
 setClear (bool $clear)
 
 isClear ()
 
 setPid (int $pid)
 
 getPid ()
 

Protected Member Functions

 serialize ()
 

Protected Attributes

Token $conditionValueToken
 
Token $originalConditionValueToken = null
 
bool $verdict
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\AbstractInclude
string $name = ''
 
string $path = ''
 
array $children = []
 
LineStream $lineStream = null
 
LineInterface $originalTokenLine = null
 
bool $isSplit = false
 
bool $root = false
 
bool $clear = false
 
int $pid = null
 

Detailed Description

Base implementation of condition nodes.

: Internal tree structure.

Definition at line 28 of file AbstractConditionInclude.php.

Member Function Documentation

◆ getConditionToken()

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

◆ getConditionVerdict()

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

◆ getOriginalConditionToken()

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

◆ isConditionNegated()

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

◆ serialize()

TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\AbstractConditionInclude::serialize ( )
protected

◆ setConditionToken()

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

◆ setConditionVerdict()

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

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

Implements TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\IncludeConditionInterface.

Definition at line 75 of file AbstractConditionInclude.php.

References TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\AbstractConditionInclude\$verdict.

◆ setOriginalConditionToken()

TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\AbstractConditionInclude::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().

Implements TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\IncludeConditionInterface.

Definition at line 57 of file AbstractConditionInclude.php.

References TYPO3\CMS\Core\TypoScript\Tokenizer\Token\AbstractToken\getType().

Member Data Documentation

◆ $conditionValueToken

Token TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\AbstractConditionInclude::$conditionValueToken
protected

◆ $originalConditionValueToken

Token TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\AbstractConditionInclude::$originalConditionValueToken = null
protected

◆ $verdict

bool TYPO3\CMS\Core\TypoScript\IncludeTree\IncludeNode\AbstractConditionInclude::$verdict
protected