LineInterface

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.

Tags
internal:

Internal tokenizer structure.

Table of Contents

Methods

getTokenStream()  : TokenStreamInterface
setTokenStream()  : static
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.

Methods

setTokenStream()

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.

public setTokenStream(TokenStreamInterface $tokenStream) : static

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

Parameters
$tokenStream : TokenStreamInterface
Return values
static

        
On this page

Search results