‪TYPO3CMS  ‪main
TYPO3\CMS\Core\TypoScript\Tokenizer\Line\LineInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\TypoScript\Tokenizer\Line\LineInterface:
TYPO3\CMS\Core\TypoScript\Tokenizer\Line\AbstractLine TYPO3\CMS\Core\TypoScript\Tokenizer\Line\BlockCloseLine TYPO3\CMS\Core\TypoScript\Tokenizer\Line\CommentLine TYPO3\CMS\Core\TypoScript\Tokenizer\Line\ConditionElseLine TYPO3\CMS\Core\TypoScript\Tokenizer\Line\ConditionLine TYPO3\CMS\Core\TypoScript\Tokenizer\Line\ConditionStopLine TYPO3\CMS\Core\TypoScript\Tokenizer\Line\EmptyLine TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierAssignmentLine TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierBlockOpenLine TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierCopyLine TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierFunctionLine TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierReferenceLine TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierUnsetLine TYPO3\CMS\Core\TypoScript\Tokenizer\Line\ImportLine TYPO3\CMS\Core\TypoScript\Tokenizer\Line\ImportOldLine TYPO3\CMS\Core\TypoScript\Tokenizer\Line\InvalidLine

Public Member Functions

 setTokenStream (TokenStreamInterface $tokenStream)
 
 getTokenStream ()
 

Detailed Description

The TypoScript tokenizers deliver streams of lines. This is the main line interface.

Each line is represented by a specific line type. For instance, "foo.bar {" creates an IdentifierBlockOpenLine and has the additional method getIdentifierTokenStream() to retrieve the "foo" and "bar" identifier tokens.

: Internal tokenizer structure.

Definition at line 31 of file LineInterface.php.

Member Function Documentation

◆ getTokenStream()

TYPO3\CMS\Core\TypoScript\Tokenizer\Line\LineInterface::getTokenStream ( )

◆ setTokenStream()

TYPO3\CMS\Core\TypoScript\Tokenizer\Line\LineInterface::setTokenStream ( TokenStreamInterface  $tokenStream)

Set and get the token stream that represents the full line. This is mostly used in backend to for instance create a TypoScript string back from tokenized lines.

Note: Only the LosslessTokenizer fills this 'full line' stream, LossyTokenizer does not for performance reasons.

Implemented in TYPO3\CMS\Core\TypoScript\Tokenizer\Line\AbstractLine.