StringTreeBuilder

FinalYes

Parse a single TypoScript string, supporting imports and conditions.

This is a relatively simple "tree" builder: It gets a single TypoScript string snippet, tokenizes it and creates a RootInclude "tree". The string is scanned for imports and conditions: Those create sub includes, just like the other TreeBuilder classes do.

Internal
Attributes
#[Autoconfigure]
$public: true

Table of Contents

Methods

__construct()  : mixed
getTreeFromString()  : RootInclude
Create tree, ready to be traversed. Will cache if $cache is not null.

Methods

getTreeFromString()

Create tree, ready to be traversed. Will cache if $cache is not null.

public getTreeFromString(non-empty-string $name, string $typoScriptString, TokenizerInterface $tokenizer[, PhpFrontend|null $cache = null ]) : RootInclude
Parameters
$name : non-empty-string

A name used as cache identifier, [a-z,A-Z,-] only

$typoScriptString : string
$tokenizer : TokenizerInterface
$cache : PhpFrontend|null = null
Return values
RootInclude

        
On this page

Search results