TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Fluid\Core\Parser\InterceptorInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Fluid\Core\Parser\InterceptorInterface:
TYPO3\CMS\Fluid\Core\Parser\Interceptor\Escape

Public Member Functions

 process (\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NodeInterface $node, $interceptorPosition, \TYPO3\CMS\Fluid\Core\Parser\ParsingState $parsingState)
 
 getInterceptionPoints ()
 

Public Attributes

const INTERCEPT_OPENING_VIEWHELPER = 1
 
const INTERCEPT_CLOSING_VIEWHELPER = 2
 
const INTERCEPT_TEXT = 3
 
const INTERCEPT_OBJECTACCESSOR = 4
 

Detailed Description

An interceptor interface. Interceptors are used in the parsing stage to change the syntax tree of a template, e.g. by adding viewhelper nodes.

Definition at line 18 of file InterceptorInterface.php.

Member Function Documentation

◆ getInterceptionPoints()

TYPO3\CMS\Fluid\Core\Parser\InterceptorInterface::getInterceptionPoints ( )

The interceptor should define at which interception positions it wants to be called.

Returns
array Array of INTERCEPT_* constants

Implemented in TYPO3\CMS\Fluid\Core\Parser\Interceptor\Escape.

◆ process()

TYPO3\CMS\Fluid\Core\Parser\InterceptorInterface::process ( \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NodeInterface  $node,
  $interceptorPosition,
\TYPO3\CMS\Fluid\Core\Parser\ParsingState  $parsingState 
)

The interceptor can process the given node at will and must return a node that will be used in place of the given node.

Parameters
\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NodeInterface$node
int$interceptorPositionOne of the INTERCEPT_* constants for the current interception point
\TYPO3\CMS\Fluid\Core\Parser\ParsingState$parsingStatethe parsing state
Returns

Implemented in TYPO3\CMS\Fluid\Core\Parser\Interceptor\Escape.

Member Data Documentation

◆ INTERCEPT_CLOSING_VIEWHELPER

◆ INTERCEPT_OBJECTACCESSOR

◆ INTERCEPT_OPENING_VIEWHELPER

◆ INTERCEPT_TEXT

const TYPO3\CMS\Fluid\Core\Parser\InterceptorInterface::INTERCEPT_TEXT = 3