TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
Escape Class Reference
Inheritance diagram for Escape:
InterceptorInterface

Public Member Functions

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

Protected Attributes

 $interceptorEnabled = true
 
 $viewHelperNodesWhichDisableTheInterceptor = array()
 
 $objectManager
 

Additional Inherited Members

- Public Attributes inherited from InterceptorInterface
const INTERCEPT_OPENING_VIEWHELPER = 1
 
const INTERCEPT_CLOSING_VIEWHELPER = 2
 
const INTERCEPT_TEXT = 3
 
const INTERCEPT_OBJECTACCESSOR = 4
 

Detailed Description

An interceptor adding the escape viewhelper to the suitable places.

Definition at line 17 of file Escape.php.

Member Function Documentation

getInterceptionPoints ( )

This interceptor wants to hook into object accessor creation, and opening / closing ViewHelpers.

Returns
array Array of INTERCEPT_* constants

Implements InterceptorInterface.

Definition at line 79 of file Escape.php.

References InterceptorInterface\INTERCEPT_CLOSING_VIEWHELPER, InterceptorInterface\INTERCEPT_OBJECTACCESSOR, and InterceptorInterface\INTERCEPT_OPENING_VIEWHELPER.

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

Adds a ViewHelper node using the Format to the given node. If "escapingInterceptorEnabled" in the ViewHelper is FALSE, will disable itself inside the ViewHelpers body.

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 current parsing state. Not needed in this interceptor.
Returns

Implements InterceptorInterface.

Definition at line 49 of file Escape.php.

References elseif, InterceptorInterface\INTERCEPT_CLOSING_VIEWHELPER, and InterceptorInterface\INTERCEPT_OPENING_VIEWHELPER.

Member Data Documentation

$interceptorEnabled = true
protected

Definition at line 24 of file Escape.php.

$objectManager
protected

Definition at line 38 of file Escape.php.

$viewHelperNodesWhichDisableTheInterceptor = array()
protected

Definition at line 32 of file Escape.php.