‪TYPO3CMS  ‪main
TYPO3\CMS\Core\TypoScript\AST\Node\ReferenceChildNode Class Reference
Inheritance diagram for TYPO3\CMS\Core\TypoScript\AST\Node\ReferenceChildNode:
TYPO3\CMS\Core\TypoScript\AST\Node\AbstractChildNode TYPO3\CMS\Core\TypoScript\AST\Node\AbstractNode TYPO3\CMS\Core\TypoScript\AST\Node\ChildNodeInterface TYPO3\CMS\Core\TypoScript\AST\Node\NodeInterface TYPO3\CMS\Core\TypoScript\AST\Node\NodeInterface

Public Member Functions

 setReferenceSourceStream (?IdentifierTokenStream $referenceSourceStream)
 
 getReferenceSourceStream ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\TypoScript\AST\Node\AbstractChildNode
 __construct (protected string $name)
 
 __clone ()
 
 getName ()
 
 toArray ()
 
 flatten (string $prefix='')
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\TypoScript\AST\Node\AbstractNode
 __serialize ()
 
 setIdentifier (string $identifier)
 
 updateName (string $name)
 
 getIdentifier ()
 
 addChild (ChildNodeInterface $node)
 
 getChildByName (string $name)
 
 removeChildByName (string $name)
 
 hasChildren ()
 
 getNextChild ()
 
 sortChildren ()
 
 setValue (?string $value)
 
 appendValue (string $value)
 
 getValue ()
 
 isValueNull ()
 
 setPreviousValue (?string $value)
 
 getPreviousValue ()
 
 setOriginalValueTokenStream (?TokenStreamInterface $tokenStream)
 
 getOriginalValueTokenStream ()
 
 addComment (TokenStreamInterface $tokenStream)
 
TokenStreamInterface[] getComments ()
 

Protected Member Functions

 serialize ()
 

Private Attributes

IdentifierTokenStream $referenceSourceStream
 

Additional Inherited Members

- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\TypoScript\AST\Node\AbstractNode
string $name
 
array $children = []
 

Detailed Description

A node object created for LineIdentifierReference lines which use the T_OPERATOR_REFERENCE operator and have a TokenStreamIdentifier stream for "the right side" of the expression.

The reference operator is nasty, since it's no "true" reference / pointer: foo.bar = barValue1 baz =< foo baz.bar = barValue2 This ends up with "barValue1" for "foo.bar", and "barValue2" for "baz.bar". "barValue1" for "foo.bar" is kept!

Note the reference operator only works for TS "setup" code, not for "constants", and it is only resolved in these cases. See ContentObjectRenderer->cObjGetSingle() for details.

: Internal AST structure.

Definition at line 38 of file ReferenceChildNode.php.

Member Function Documentation

◆ getReferenceSourceStream()

TYPO3\CMS\Core\TypoScript\AST\Node\ReferenceChildNode::getReferenceSourceStream ( )

◆ serialize()

TYPO3\CMS\Core\TypoScript\AST\Node\ReferenceChildNode::serialize ( )
protected

◆ setReferenceSourceStream()

TYPO3\CMS\Core\TypoScript\AST\Node\ReferenceChildNode::setReferenceSourceStream ( ?IdentifierTokenStream  $referenceSourceStream)

Member Data Documentation

◆ $referenceSourceStream