‪TYPO3CMS  11.5
TYPO3\CMS\Fluid\Core\Rendering\RenderingContext Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\Core\Rendering\RenderingContext:

Public Member Functions

 injectViewHelperVariableContainer (ViewHelperVariableContainer $viewHelperVariableContainer)
 
 __construct (ViewHelperResolver $viewHelperResolver, FluidCacheInterface $cache, array $templateProcessors, array $expressionNodeTypes)
 
Configuration getParserConfiguration ()
 
Configuration buildParserConfiguration ()
 
ControllerContext getControllerContext ()
 
 setControllerAction ($action)
 
 setControllerName ($controllerName)
 
string getControllerName ()
 
string getControllerAction ()
 
 setControllerContext (ControllerContext $controllerContext)
 
 setRequest (Request $request)
 
Request getRequest ()
 
UriBuilder getUriBuilder ()
 

Protected Member Functions

 addInterceptorsToParserConfiguration (iterable $interceptors, Configuration $parserConfiguration)
 

Protected Attributes

ControllerContext $controllerContext
 
Request $request
 
string $controllerName = 'Default'
 
string $controllerAction = 'Default'
 

Detailed Description

Class RenderingContext

Definition at line 36 of file RenderingContext.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::__construct ( ViewHelperResolver  $viewHelperResolver,
FluidCacheInterface  $cache,
array  $templateProcessors,
array  $expressionNodeTypes 
)

constructor, use RenderingContextFactory->create() instead

Definition at line 70 of file RenderingContext.php.

Member Function Documentation

◆ addInterceptorsToParserConfiguration()

TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::addInterceptorsToParserConfiguration ( iterable  $interceptors,
Configuration  $parserConfiguration 
)
protected

◆ buildParserConfiguration()

Configuration TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::buildParserConfiguration ( )

Build parser configuration

Returns
‪Configuration
Exceptions

Definition at line 110 of file RenderingContext.php.

References $GLOBALS, and TYPO3\CMS\Fluid\Core\Rendering\RenderingContext\addInterceptorsToParserConfiguration().

◆ getControllerAction()

string TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::getControllerAction ( )

◆ getControllerContext()

ControllerContext TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::getControllerContext ( )

Get the controller context which will be passed to the ViewHelper

Returns
‪ControllerContext The controller context to set
Deprecated:
‪since v11, will be removed in v12

Definition at line 134 of file RenderingContext.php.

References TYPO3\CMS\Fluid\Core\Rendering\RenderingContext\$controllerContext, and TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext\setRequest().

◆ getControllerName()

string TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::getControllerName ( )

◆ getParserConfiguration()

Configuration TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::getParserConfiguration ( )

Alternative to buildParserConfiguration, called only in Fluid 3.0

Returns
‪Configuration

Definition at line 97 of file RenderingContext.php.

References $GLOBALS, and TYPO3\CMS\Fluid\Core\Rendering\RenderingContext\addInterceptorsToParserConfiguration().

◆ getRequest()

Request TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::getRequest ( )
Returns
‪Request

this might change to use a PSR-7 compliant request

Definition at line 231 of file RenderingContext.php.

References TYPO3\CMS\Fluid\Core\Rendering\RenderingContext\$request.

◆ getUriBuilder()

UriBuilder TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::getUriBuilder ( )
Returns
‪UriBuilder

this is subject to change

Definition at line 240 of file RenderingContext.php.

◆ injectViewHelperVariableContainer()

TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::injectViewHelperVariableContainer ( ViewHelperVariableContainer  $viewHelperVariableContainer)
Parameters
ViewHelperVariableContainer$viewHelperVariableContainer

used by typo3/testing-framework only

Todo:
‪: Resolve this in ViewHelperBaseTestcase, then drop this method

Definition at line 62 of file RenderingContext.php.

◆ setControllerAction()

TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::setControllerAction (   $action)
Parameters
string$action

Definition at line 149 of file RenderingContext.php.

Referenced by TYPO3\CMS\Fluid\Core\Rendering\RenderingContext\setRequest().

◆ setControllerContext()

TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::setControllerContext ( ControllerContext  $controllerContext)

Set the controller context which will be passed to the ViewHelper

Parameters
ControllerContext$controllerContext‪The controller context to set
Deprecated:
‪since v11, will be removed with v12.

Definition at line 195 of file RenderingContext.php.

References TYPO3\CMS\Fluid\Core\Rendering\RenderingContext\$controllerContext, TYPO3\CMS\Fluid\Core\Rendering\RenderingContext\$request, TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext\getRequest(), and TYPO3\CMS\Fluid\Core\Rendering\RenderingContext\setRequest().

◆ setControllerName()

TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::setControllerName (   $controllerName)
Parameters
string$controllerName
Exceptions

Definition at line 165 of file RenderingContext.php.

References TYPO3\CMS\Fluid\Core\Rendering\RenderingContext\$controllerName.

Referenced by TYPO3\CMS\Fluid\Core\Rendering\RenderingContext\setRequest().

◆ setRequest()

Member Data Documentation

◆ $controllerAction

string TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::$controllerAction = 'Default'
protected

◆ $controllerContext

ControllerContext TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::$controllerContext
protected

Controller context being passed to the ViewHelper

Deprecated:
‪since v11, will be removed with v12.

Definition at line 43 of file RenderingContext.php.

Referenced by TYPO3\CMS\Fluid\Core\Rendering\RenderingContext\getControllerContext(), and TYPO3\CMS\Fluid\Core\Rendering\RenderingContext\setControllerContext().

◆ $controllerName

string TYPO3\CMS\Fluid\Core\Rendering\RenderingContext::$controllerName = 'Default'
protected

◆ $request