‪TYPO3CMS  ‪main
TYPO3\CMS\Fluid\View\AbstractTemplateView Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\View\AbstractTemplateView:
TYPO3\CMS\Fluid\View\StandaloneView TYPO3\CMS\Fluid\View\TemplateView

Public Member Functions

 __construct (?RenderingContextInterface $context=null)
 
 setTemplate (string $templateName)
 
 setTemplatePathAndFilename ($templatePathAndFilename)
 
 setTemplateRootPaths (array $templateRootPaths)
 
string[] getTemplateRootPaths ()
 
 setPartialRootPaths (array $partialRootPaths)
 
string[] getPartialRootPaths ()
 
string[] getLayoutRootPaths ()
 
 setLayoutRootPaths (array $layoutRootPaths)
 

Detailed Description

Abstract Fluid Template View.

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

Definition at line 29 of file AbstractTemplateView.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Fluid\View\AbstractTemplateView::__construct ( ?RenderingContextInterface  $context = null)

Definition at line 34 of file AbstractTemplateView.php.

Member Function Documentation

◆ getLayoutRootPaths()

string [] TYPO3\CMS\Fluid\View\AbstractTemplateView::getLayoutRootPaths ( )

Resolves the layout root to be used inside other paths.

Returns
‪string[] Fluid layout root paths
Exceptions
InvalidTemplateResourceException

Definition at line 110 of file AbstractTemplateView.php.

◆ getPartialRootPaths()

string [] TYPO3\CMS\Fluid\View\AbstractTemplateView::getPartialRootPaths ( )

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

Returns
‪string[] Fluid partial root paths
Exceptions
InvalidTemplateResourceException

Definition at line 99 of file AbstractTemplateView.php.

◆ getTemplateRootPaths()

string [] TYPO3\CMS\Fluid\View\AbstractTemplateView::getTemplateRootPaths ( )

Resolves the template root to be used inside other paths.

Returns
‪string[] Path(s) to template root directory

Definition at line 77 of file AbstractTemplateView.php.

◆ setLayoutRootPaths()

TYPO3\CMS\Fluid\View\AbstractTemplateView::setLayoutRootPaths ( array  $layoutRootPaths)

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

Parameters
string[]$layoutRootPaths‪Root path to the layouts. If set, overrides the one determined from $this->layoutRootPathPattern

Definition at line 121 of file AbstractTemplateView.php.

◆ setPartialRootPaths()

TYPO3\CMS\Fluid\View\AbstractTemplateView::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

Definition at line 88 of file AbstractTemplateView.php.

◆ setTemplate()

◆ setTemplatePathAndFilename()

TYPO3\CMS\Fluid\View\AbstractTemplateView::setTemplatePathAndFilename (   $templatePathAndFilename)

Sets the path and name of of the template file. Effectively overrides the dynamic resolving of a template file.

Parameters
string$templatePathAndFilename‪Template file path

Definition at line 56 of file AbstractTemplateView.php.

◆ setTemplateRootPaths()

TYPO3\CMS\Fluid\View\AbstractTemplateView::setTemplateRootPaths ( array  $templateRootPaths)

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

Parameters
string[]$templateRootPaths‪Root path(s) to the templates. If set, overrides the one determined from $this->templateRootPathPattern

Definition at line 67 of file AbstractTemplateView.php.