IncludeTreeSyntaxScannerVisitor

final class \TYPO3\CMS\Core\TypoScript\IncludeTree\Visitor\IncludeTreeSyntaxScannerVisitor

Implements
IncludeTreeVisitorInterface

This implements a simple TypoScript syntax scanner. It is used in page TSconfig and TypoScript "include" submodules to find and show broken syntax.

Table of Contents

Interfaces

IncludeTreeVisitorInterface
A visitor that can be attached to IncludeTreeTraverser's.

Methods

getErrors()  : array<int, array{type: string, include: IncludeInterface, line: LineInterface, lineNumber: int}>
visit()  : void
Main visit method called for each node.
visitBeforeChildren()  : void
Gets called by the traversers *before* children are traversed. Useful for instance for the IncludeTreeConditionMatcherVisitor to evaluate a condition verdict *before* children are traversed (or not).

Methods

getErrors()

public getErrors() : array<int, array{type: string, include: IncludeInterface, line: LineInterface, lineNumber: int}>

Return values

array<int, array{type: string, include: IncludeInterface, line: LineInterface, lineNumber: int}>

visitBeforeChildren()

Gets called by the traversers *before* children are traversed. Useful for instance for the IncludeTreeConditionMatcherVisitor to evaluate a condition verdict *before* children are traversed (or not).

public visitBeforeChildren(IncludeInterface $include, int $currentDepth) : void

Parameters

$include : IncludeInterface
$currentDepth : int
On this page