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

Public Member Functions

 setTemplate ($templateName)
 
 setFormat ($format)
 
 getFormat ()
 
 getRequest ()
 
 setTemplatePathAndFilename ($templatePathAndFilename)
 
 getTemplatePathAndFilename ()
 
 setTemplateSource ($templateSource)
 
 setTemplateRootPaths (array $templateRootPaths)
 
 setLayoutRootPaths (array $layoutRootPaths)
 
 getLayoutRootPaths ()
 
 setPartialRootPaths (array $partialRootPaths)
 
 getPartialRootPaths ()
 
 hasTemplate ()
 
- Public Member Functions inherited from AbstractTemplateView
 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 ()
 

Additional Inherited Members

- Protected Attributes inherited from AbstractTemplateView
 $controllerContext
 

Detailed Description

A standalone template view. Should be used as view if you want to use Fluid without Extbase extensions

Definition at line 33 of file StandaloneView.php.

Member Function Documentation

getFormat ( )

Returns the format of the current request (defaults is "html")

Returns
string $format

Definition at line 96 of file StandaloneView.php.

getLayoutRootPaths ( )

Resolves the layout root to be used inside other paths.

Returns
string Fluid layout root path
Exceptions
InvalidTemplateResourceException

Definition at line 178 of file StandaloneView.php.

getPartialRootPaths ( )

Returns the absolute path to the folder that contains Fluid partial files

Returns
string Fluid partial root path
Exceptions
InvalidTemplateResourceException

Definition at line 203 of file StandaloneView.php.

getRequest ( )

Returns the current request object

Returns
WebRequest

Definition at line 106 of file StandaloneView.php.

getTemplatePathAndFilename ( )

Returns the absolute path to a Fluid template file if it was specified with setTemplatePathAndFilename() before

Returns
string Fluid template path

Definition at line 129 of file StandaloneView.php.

hasTemplate ( )

Checks whether a template can be resolved for the current request

Returns
bool

Definition at line 214 of file StandaloneView.php.

setFormat (   $format)

Sets the format of the current request (default format is "html")

Parameters
string$format
Returns
void

Definition at line 85 of file StandaloneView.php.

setLayoutRootPaths ( array  $layoutRootPaths)

Set the root path(s) to the layouts.

Parameters
string[]$layoutRootPaths Root path to the layouts
Returns
void

Definition at line 166 of file StandaloneView.php.

setPartialRootPaths ( array  $partialRootPaths)

Set the root path(s) to the partials. If set, overrides the one determined from $this->partialRootPathPattern

Parameters
string[]$partialRootPaths Root paths to the partials. If set, overrides the one determined from $this->partialRootPathPattern
Returns
void

Definition at line 191 of file StandaloneView.php.

setTemplate (   $templateName)
Parameters
string$templateName

Definition at line 73 of file StandaloneView.php.

setTemplatePathAndFilename (   $templatePathAndFilename)

Sets the absolute path to a Fluid template file

Parameters
string$templatePathAndFilenameFluid template path
Returns
void

Definition at line 118 of file StandaloneView.php.

Referenced by UsernamePasswordLoginProvider\render().

setTemplateRootPaths ( array  $templateRootPaths)

Set the root path(s) to the templates.

Parameters
string[]$templateRootPaths Root paths to the templates.
Returns
void

Definition at line 154 of file StandaloneView.php.

setTemplateSource (   $templateSource)

Sets the Fluid template source You can use setTemplatePathAndFilename() alternatively if you only want to specify the template path

Parameters
string$templateSourceFluid template source code
Returns
void

Definition at line 142 of file StandaloneView.php.