![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct (ContentObjectRenderer $cObj) | |
setContentDataProcessor ($contentDataProcessor) | |
render ($conf=array()) | |
![]() | |
__construct (ContentObjectRenderer $cObj) | |
render ($conf=array()) | |
getContentObject () | |
Protected Member Functions | |
initializeStandaloneViewInstance () | |
setLayoutRootPath (array $conf) | |
setPartialRootPath (array $conf) | |
setFormat (array $conf) | |
getContentObjectVariables (array $conf) | |
renderFluidView () | |
applyStandardWrapToRenderedContent ($content, array $conf) | |
applyStandardWrapToFluidPaths (array $paths) | |
![]() | |
getPageRenderer () | |
Protected Attributes | |
$view = null | |
$contentDataProcessor | |
![]() | |
$cObj | |
$pageRenderer = null | |
Contains FLUIDTEMPLATE class object
Definition at line 25 of file FluidTemplateContentObject.php.
__construct | ( | ContentObjectRenderer | $cObj | ) |
ContentObjectRenderer | $cObj |
Definition at line 40 of file FluidTemplateContentObject.php.
References GeneralUtility\makeInstance().
|
protected |
Applies stdWrap on Fluid path definitions
array | $paths |
Definition at line 325 of file FluidTemplateContentObject.php.
References elseif, StringUtility\endsWith(), and GeneralUtility\getFileAbsFileName().
Referenced by FluidTemplateContentObject\setLayoutRootPath(), and FluidTemplateContentObject\setPartialRootPath().
|
protected |
Apply standard wrap to content
string | $content | Rendered HTML content |
array | $conf | Configuration array |
Definition at line 310 of file FluidTemplateContentObject.php.
Referenced by FluidTemplateContentObject\render().
|
protected |
Compile rendered content objects in variables array ready to assign to the view
array | $conf | Configuration array |
\InvalidArgumentException |
Definition at line 252 of file FluidTemplateContentObject.php.
Referenced by FluidTemplateContentObject\render().
|
protected |
Creating standalone view instance must not be done in construct() as it can lead to a nasty cache issue since content object instances are not always re-created by the content object rendered for every usage, but can be re-used. Thus, we need a fresh instance of StandaloneView every time render() is called.
Definition at line 118 of file FluidTemplateContentObject.php.
References GeneralUtility\makeInstance().
Referenced by FluidTemplateContentObject\render().
render | ( | $conf = array() | ) |
Rendering the cObject, FLUIDTEMPLATE
Configuration properties:
Example: 10 = FLUIDTEMPLATE 10.templateName = MyTemplate 10.templateRootPaths.10 = EXT:site_configuration/Resources/Private/Templates/ 10.partialRootPaths.10 = EXT:site_configuration/Resources/Private/Patials/ 10.layoutRootPaths.10 = EXT:site_configuration/Resources/Private/Layouts/ 10.variables { mylabel = TEXT mylabel.value = Label from TypoScript coming }
array | $conf | Array of TypoScript properties |
Definition at line 82 of file FluidTemplateContentObject.php.
References FluidTemplateContentObject\$view, FluidTemplateContentObject\applyStandardWrapToRenderedContent(), FluidTemplateContentObject\getContentObjectVariables(), FluidTemplateContentObject\initializeStandaloneViewInstance(), FluidTemplateContentObject\renderFluidView(), FluidTemplateContentObject\setFormat(), FluidTemplateContentObject\setLayoutRootPath(), and FluidTemplateContentObject\setPartialRootPath().
|
protected |
Render fluid standalone view
Definition at line 298 of file FluidTemplateContentObject.php.
Referenced by FluidTemplateContentObject\render().
setContentDataProcessor | ( | $contentDataProcessor | ) |
ContentDataProcessor | $contentDataProcessor |
Definition at line 49 of file FluidTemplateContentObject.php.
References FluidTemplateContentObject\$contentDataProcessor.
|
protected |
Set different format if given in configuration
array | $conf | Configuration array |
Definition at line 210 of file FluidTemplateContentObject.php.
Referenced by FluidTemplateContentObject\render().
|
protected |
Set layout root path if given in configuration
array | $conf | Configuration array |
Definition at line 163 of file FluidTemplateContentObject.php.
References FluidTemplateContentObject\applyStandardWrapToFluidPaths(), and GeneralUtility\getFileAbsFileName().
Referenced by FluidTemplateContentObject\render().
|
protected |
Set partial root path if given in configuration
array | $conf | Configuration array |
Definition at line 187 of file FluidTemplateContentObject.php.
References FluidTemplateContentObject\applyStandardWrapToFluidPaths(), and GeneralUtility\getFileAbsFileName().
Referenced by FluidTemplateContentObject\render().
|
protected |
Definition at line 35 of file FluidTemplateContentObject.php.
Referenced by FluidTemplateContentObject\setContentDataProcessor().
|
protected |
Definition at line 30 of file FluidTemplateContentObject.php.
Referenced by FluidTemplateContentObject\render().