TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
RenderingContext Class Reference
Inheritance diagram for RenderingContext:
RenderingContextFixture

Public Member Functions

 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 injectViewHelperVariableContainer (\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperVariableContainer $viewHelperVariableContainer)
 
 buildParserConfiguration ()
 
 setLegacyMode ($legacyMode)
 
 getExpressionNodeTypes ()
 
 getObjectManager ()
 
 getTemplateVariableContainer ()
 
 getControllerContext ()
 
 setControllerAction ($action)
 
 setControllerName ($controllerName)
 
 setControllerContext (\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext)
 
 getViewHelperVariableContainer ()
 

Protected Attributes

 $templateVariableContainer
 
 $objectManager
 
 $controllerContext
 
 $viewHelperVariableContainer
 
 $legacyMode = false
 
 $expressionNodeTypes
 
 $legacyExpressionNodeTypes
 

Detailed Description

Class RenderingContext

Definition at line 40 of file RenderingContext.php.

Member Function Documentation

buildParserConfiguration ( )

Build parser configuration

Returns
Configuration
Exceptions
InvalidArgumentException if a class not implementing InterceptorInterface was registered

Definition at line 162 of file RenderingContext.php.

References $GLOBALS, and GeneralUtility\makeInstance().

getControllerContext ( )

Get the controller context which will be passed to the ViewHelper

Returns
The controller context to set

Definition at line 230 of file RenderingContext.php.

References RenderingContext\$controllerContext.

getExpressionNodeTypes ( )
Returns
string

Definition at line 194 of file RenderingContext.php.

References RenderingContext\$expressionNodeTypes.

getObjectManager ( )

Returns the object manager. Only the ViewHelperNode should do this.

Returns

Definition at line 204 of file RenderingContext.php.

References RenderingContext\$objectManager.

getTemplateVariableContainer ( )

Get the template variable container (DEPRECATED; use getVariableProvider instead)

Deprecated:
since TYPO3 CMS 8, will be removed in TYPO3 CMS 9 - use getVariableProvider instead
See also
getVariableProvider
Returns
The Template Variable Container

Definition at line 216 of file RenderingContext.php.

References GeneralUtility\deprecationLog().

getViewHelperVariableContainer ( )

Get the ViewHelperVariableContainer

Returns

Definition at line 281 of file RenderingContext.php.

References RenderingContext\$viewHelperVariableContainer.

injectObjectManager ( \TYPO3\CMS\Extbase\Object\ObjectManagerInterface  $objectManager)
Parameters
\TYPO3\CMS\Extbase\Object\ObjectManagerInterface$objectManager

Definition at line 105 of file RenderingContext.php.

References RenderingContext\$objectManager.

injectViewHelperVariableContainer ( \TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperVariableContainer  $viewHelperVariableContainer)
Parameters
\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperVariableContainer$viewHelperVariableContainer

Definition at line 113 of file RenderingContext.php.

References RenderingContext\$viewHelperVariableContainer.

setControllerAction (   $action)
Parameters
string$action
Returns
void

Definition at line 239 of file RenderingContext.php.

Referenced by RenderingContext\setControllerContext().

setControllerContext ( \TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext  $controllerContext)

Set the controller context which will be passed to the ViewHelper

Parameters
\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext$controllerContextThe controller context to set

Definition at line 261 of file RenderingContext.php.

References RenderingContext\$controllerContext, RenderingContext\setControllerAction(), and RenderingContext\setControllerName().

setControllerName (   $controllerName)
Parameters
string$controllerName
Exceptions
TYPO3

Definition at line 250 of file RenderingContext.php.

Referenced by RenderingContext\setControllerContext().

setLegacyMode (   $legacyMode)

Set legacy compatibility mode on/off by boolean. If set to FALSE, the ViewHelperResolver will only load a limited sub-set of ExpressionNodes, making Fluid behave like the legacy version of the CMS core extension.

Parameters
bool$legacyMode
Returns
void

Definition at line 186 of file RenderingContext.php.

References RenderingContext\$legacyMode.

Member Data Documentation

$controllerContext
protected
$expressionNodeTypes
protected
Initial value:
= [
LegacyNamespaceExpressionNode::class,
CastingExpressionNode::class,
MathExpressionNode::class,
TernaryExpressionNode::class
]

Definition at line 85 of file RenderingContext.php.

Referenced by RenderingContext\getExpressionNodeTypes().

$legacyExpressionNodeTypes
protected
Initial value:
= [
LegacyNamespaceExpressionNode::class
]

Definition at line 98 of file RenderingContext.php.

$legacyMode = false
protected

Definition at line 76 of file RenderingContext.php.

Referenced by RenderingContext\setLegacyMode().

$objectManager
protected
$templateVariableContainer
protected

Definition at line 47 of file RenderingContext.php.

$viewHelperVariableContainer
protected