TYPO3
7.6
|
Protected Attributes | |
$templateSource = null | |
$templatePathAndFilename = null | |
$templateRootPaths = null | |
$partialRootPaths = null | |
$layoutRootPaths = null | |
Protected Attributes inherited from AbstractTemplateView | |
$controllerContext | |
$objectManager | |
$templateParser | |
$templateCompiler | |
$baseRenderingContext | |
$renderingStack = array() | |
$partialIdentifierCache = array() | |
Additional Inherited Members | |
Public Attributes inherited from AbstractTemplateView | |
const | RENDERING_TEMPLATE = 1 |
const | RENDERING_PARTIAL = 2 |
const | RENDERING_LAYOUT = 3 |
A standalone template view. Should be used as view if you want to use Fluid without Extbase extensions
Definition at line 43 of file fluid/Classes/View/StandaloneView.php.
|
protected |
Builds a list of possible candidates for a given template name
string | $templateName | Name of the template to search for |
array | $paths | Paths to search in |
string | $format | The file format to use. e.g 'html' or 'txt' |
Definition at line 525 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\resolveFileNamePath(), ArrayUtility\sortArrayWithIntegerKeys(), and AbstractTemplateView\ucFileNameInPath().
Referenced by StandaloneView\getLayoutPathAndFilename(), StandaloneView\getPartialPathAndFilename(), and StandaloneView\setTemplate().
|
protected |
Returns a unique identifier for the given file in the format Standalone_<prefix>_<SHA1> The SH1 hash is a checksum that is based on the file path and last modification date
string | $pathAndFilename | |
string | $prefix |
Definition at line 551 of file fluid/Classes/View/StandaloneView.php.
Referenced by StandaloneView\getLayoutIdentifier(), StandaloneView\getPartialIdentifier(), and StandaloneView\getTemplateIdentifier().
getFormat | ( | ) |
Returns the format of the current request (defaults is "html")
Definition at line 134 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\getRequest().
Referenced by StandaloneView\getLayoutPathAndFilename(), and StandaloneView\getPartialPathAndFilename().
|
protected |
Returns a unique identifier for the resolved layout file. This identifier is based on the template path and last modification date
string | $layoutName | The name of the layout |
InvalidTemplateResourceException |
Definition at line 417 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\createIdentifierForFile(), and StandaloneView\getLayoutPathAndFilename().
|
protected |
Resolve the path and file name of the layout file, based on $this->getLayoutRootPaths() and request format
In case a layout has already been set with setLayoutPathAndFilename(), this method returns that path, otherwise a path and filename will be resolved using the layoutPathAndFilenamePattern.
string | $layoutName | Name of the layout to use. If none given, use "Default" |
InvalidTemplateResourceException |
Definition at line 454 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\buildListOfTemplateCandidates(), StandaloneView\getFormat(), StandaloneView\getLayoutRootPaths(), StandaloneView\getRequest(), and AbstractTemplateView\testFileExistence().
Referenced by StandaloneView\getLayoutIdentifier(), and StandaloneView\getLayoutSource().
getLayoutRootPath | ( | ) |
Returns the first found entry in $this->layoutRootPaths. Don't use, this might not be the desired result.
InvalidTemplateResourceException |
Definition at line 261 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\$layoutRootPaths, StandaloneView\getLayoutRootPaths(), and GeneralUtility\logDeprecatedFunction().
getLayoutRootPaths | ( | ) |
Resolves the layout root to be used inside other paths.
InvalidTemplateResourceException |
Definition at line 275 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\$layoutRootPaths.
Referenced by StandaloneView\getLayoutPathAndFilename(), and StandaloneView\getLayoutRootPath().
|
protected |
Resolves the path and file name of the layout file, based on $this->getLayoutRootPaths() and request format and returns the file contents
string | $layoutName | Name of the layout to use. If none given, use "Default" |
InvalidTemplateResourceException |
Definition at line 432 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\getLayoutPathAndFilename().
|
protected |
Returns a unique identifier for the resolved partial file. This identifier is based on the template path and last modification date
string | $partialName | The name of the partial |
InvalidTemplateResourceException |
Definition at line 474 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\createIdentifierForFile(), and StandaloneView\getPartialPathAndFilename().
|
protected |
Resolve the partial path and filename based on $this->getPartialRootPaths() and request format
string | $partialName | The name of the partial |
InvalidTemplateResourceException |
Definition at line 506 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\buildListOfTemplateCandidates(), StandaloneView\getFormat(), StandaloneView\getPartialRootPaths(), StandaloneView\getRequest(), and AbstractTemplateView\testFileExistence().
Referenced by StandaloneView\getPartialIdentifier(), and StandaloneView\getPartialSource().
getPartialRootPath | ( | ) |
Returns the first found entry in $this->partialRootPaths Don't use, this might not be the desired result.
InvalidTemplateResourceException |
Definition at line 310 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\$partialRootPaths, StandaloneView\getPartialRootPaths(), and GeneralUtility\logDeprecatedFunction().
getPartialRootPaths | ( | ) |
Returns the absolute path to the folder that contains Fluid partial files
InvalidTemplateResourceException |
Definition at line 337 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\$partialRootPaths.
Referenced by StandaloneView\getPartialPathAndFilename(), and StandaloneView\getPartialRootPath().
|
protected |
Resolves the path and file name of the partial file, based on $this->getPartialRootPath() and request format and returns the file contents
string | $partialName | The name of the partial |
InvalidTemplateResourceException |
Definition at line 489 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\getPartialPathAndFilename().
getRequest | ( | ) |
Returns the current request object
Definition at line 144 of file fluid/Classes/View/StandaloneView.php.
Referenced by StandaloneView\getFormat(), StandaloneView\getLayoutPathAndFilename(), StandaloneView\getPartialPathAndFilename(), StandaloneView\setFormat(), and StandaloneView\setTemplate().
|
protected |
Returns a unique identifier for the resolved template file This identifier is based on the template path and last modification date
string | $actionName | Name of the action. This argument is not used in this view! |
InvalidTemplateResourceException |
Definition at line 372 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\$templatePathAndFilename, StandaloneView\$templateSource, StandaloneView\createIdentifierForFile(), StandaloneView\getTemplatePathAndFilename(), and StandaloneView\getTemplateSource().
getTemplatePathAndFilename | ( | ) |
Returns the absolute path to a Fluid template file if it was specified with setTemplatePathAndFilename() before
Definition at line 167 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\$templatePathAndFilename.
Referenced by StandaloneView\getTemplateIdentifier().
|
protected |
Returns the Fluid template source code
string | $actionName | Name of the action. This argument is not used in this view! |
InvalidTemplateResourceException |
Definition at line 395 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\$templateSource, and AbstractTemplateView\testFileExistence().
Referenced by StandaloneView\getTemplateIdentifier(), and StandaloneView\hasTemplate().
hasTemplate | ( | ) |
Checks whether a template can be resolved for the current request
Definition at line 354 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\getTemplateSource().
|
protected |
Wrapper method to make the static call to GeneralUtility mockable in tests
string | $pathAndFilename |
Definition at line 565 of file fluid/Classes/View/StandaloneView.php.
References GeneralUtility\fixWindowsFilePath(), and GeneralUtility\getFileAbsFileName().
Referenced by StandaloneView\buildListOfTemplateCandidates().
setFormat | ( | $format | ) |
Sets the format of the current request (default format is "html")
string | $format |
Definition at line 123 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\getRequest().
setLayoutRootPath | ( | $layoutRootPath | ) |
Set the root path to the layouts.
string | $layoutRootPath | Root path to the layouts. |
Definition at line 235 of file fluid/Classes/View/StandaloneView.php.
References GeneralUtility\logDeprecatedFunction(), and StandaloneView\setLayoutRootPaths().
setLayoutRootPaths | ( | array | $layoutRootPaths | ) |
Set the root path(s) to the layouts.
string[] | $layoutRootPaths Root path to the layouts |
Definition at line 248 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\$layoutRootPaths.
Referenced by StandaloneView\setLayoutRootPath().
setPartialRootPath | ( | $partialRootPath | ) |
Set the root path to the partials. If set, overrides the one determined from $this->partialRootPathPattern
string | $partialRootPath | Root path to the partials. If set, overrides the one determined from $this->partialRootPathPattern |
Definition at line 296 of file fluid/Classes/View/StandaloneView.php.
References GeneralUtility\logDeprecatedFunction(), and StandaloneView\setPartialRootPaths().
setPartialRootPaths | ( | array | $partialRootPaths | ) |
Set the root path(s) to the partials. If set, overrides the one determined from $this->partialRootPathPattern
string[] | $partialRootPaths Root paths to the partials. If set, overrides the one determined from $this->partialRootPathPattern |
Definition at line 325 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\$partialRootPaths.
Referenced by StandaloneView\setPartialRootPath().
setTemplate | ( | $templateName | ) |
Set template by name All set templateRootPaths are checked to find template by given name
string | $templateName | Name of the template |
InvalidTemplateResourceException |
Definition at line 205 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\$templatePathAndFilename, StandaloneView\buildListOfTemplateCandidates(), StandaloneView\getRequest(), StandaloneView\setTemplatePathAndFilename(), and AbstractTemplateView\testFileExistence().
setTemplatePathAndFilename | ( | $templatePathAndFilename | ) |
Sets the absolute path to a Fluid template file
string | $templatePathAndFilename | Fluid template path |
Definition at line 156 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\$templatePathAndFilename.
Referenced by UsernamePasswordLoginProvider\render(), and StandaloneView\setTemplate().
setTemplateRootPaths | ( | array | $templateRootPaths | ) |
Set the root path(s) to the templates.
string[] | $templateRootPaths Root paths to the templates. |
Definition at line 192 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\$templateRootPaths.
setTemplateSource | ( | $templateSource | ) |
Sets the Fluid template source You can use setTemplatePathAndFilename() alternatively if you only want to specify the template path
string | $templateSource | Fluid template source code |
Definition at line 180 of file fluid/Classes/View/StandaloneView.php.
References StandaloneView\$templateSource.
|
protected |
Definition at line 78 of file fluid/Classes/View/StandaloneView.php.
Referenced by StandaloneView\getLayoutRootPath(), StandaloneView\getLayoutRootPaths(), and StandaloneView\setLayoutRootPaths().
|
protected |
Definition at line 71 of file fluid/Classes/View/StandaloneView.php.
Referenced by StandaloneView\getPartialRootPath(), StandaloneView\getPartialRootPaths(), and StandaloneView\setPartialRootPaths().
|
protected |
Definition at line 57 of file fluid/Classes/View/StandaloneView.php.
Referenced by StandaloneView\getTemplateIdentifier(), StandaloneView\getTemplatePathAndFilename(), StandaloneView\setTemplate(), and StandaloneView\setTemplatePathAndFilename().
|
protected |
Definition at line 64 of file fluid/Classes/View/StandaloneView.php.
Referenced by StandaloneView\setTemplateRootPaths().
|
protected |
Definition at line 50 of file fluid/Classes/View/StandaloneView.php.
Referenced by StandaloneView\getTemplateIdentifier(), StandaloneView\getTemplateSource(), and StandaloneView\setTemplateSource().