TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractTemplateView Class Reference
Inheritance diagram for AbstractTemplateView:
TemplateView ViewInterface StandaloneView FormView

Public Member Functions

 initializeView ()
 
 __construct (RenderingContextInterface $context=null)
 
 canRender (\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext)
 
 setControllerContext (\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext)
 
- Public Member Functions inherited from TemplateView
 initializeView ()
 
 setTemplate ($templateName)
 
 setTemplatePathAndFilename ($templatePathAndFilename)
 
 setLayoutPathAndFilename ($layoutPathAndFilename)
 
 getTemplateRootPaths ()
 
 setTemplateRootPaths (array $templateRootPaths)
 
 setPartialRootPaths (array $partialRootPaths)
 
 setLayoutRootPaths (array $layoutRootPaths)
 
 canRender (ControllerContext $controllerContext)
 
- Public Member Functions inherited from ViewInterface
 setControllerContext (\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext)
 
 assign ($key, $value)
 
 assignMultiple (array $values)
 
 canRender (\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext)
 
 render ()
 

Protected Attributes

 $controllerContext
 

Detailed Description

Abstract Fluid Template View.

Contains the fundamental methods which any Fluid based template view needs.

Definition at line 28 of file AbstractTemplateView.php.

Constructor & Destructor Documentation

__construct ( RenderingContextInterface  $context = null)
Parameters
RenderingContextInterface$context

Definition at line 48 of file AbstractTemplateView.php.

References GeneralUtility\makeInstance().

Member Function Documentation

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

Tells if the view implementation can render the view for the given context.

By default we assume that the view implementation can handle all kinds of contexts. Override this method if that is not the case.

Parameters
\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext$controllerContextController context which is available inside the view
Returns
bool TRUE if the view has something useful to display, otherwise FALSE

Definition at line 66 of file AbstractTemplateView.php.

initializeView ( )

Initializes this view.

Returns
void

Implements ViewInterface.

Definition at line 41 of file AbstractTemplateView.php.

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

Sets the current controller context

Parameters
\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext$controllerContext
Returns
void

Definition at line 77 of file AbstractTemplateView.php.

References AbstractTemplateView\$controllerContext.

Member Data Documentation

$controllerContext
protected

Definition at line 33 of file AbstractTemplateView.php.

Referenced by AbstractTemplateView\setControllerContext().