TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper:
TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper Tx_Fluid_ViewHelpers_CObjectViewHelper

Public Member Functions

 injectConfigurationManager (\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager)
 
- Public Member Functions inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
 setArguments (array $arguments)
 
 setRenderingContext (\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 isEscapingInterceptorEnabled ()
 
 setViewHelperNode (\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode $node)
 
 setRenderChildrenClosure (\Closure $renderChildrenClosure)
 
 initializeArgumentsAndRender ()
 
 initialize ()
 
 renderChildren ()
 
 prepareArguments ()
 
 validateArguments ()
 
 initializeArguments ()
 
 compile ($argumentsVariableName, $renderChildrenClosureVariableName, &$initializationPhpCode, \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode $syntaxTreeNode, \TYPO3\CMS\Fluid\Core\Compiler\TemplateCompiler $templateCompiler)
 
 resetState ()
 

Protected Member Functions

 simulateFrontendEnvironment ()
 
 resetFrontendEnvironment ()
 
- Protected Member Functions inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
 registerArgument ($name, $type, $description, $required=FALSE, $defaultValue=NULL)
 
 overrideArgument ($name, $type, $description, $required=FALSE, $defaultValue=NULL)
 
 callRenderMethod ()
 
 buildRenderChildrenClosure ()
 
 hasArgument ($argumentName)
 

Protected Attributes

 $escapingInterceptorEnabled = FALSE
 
 $typoScriptSetup
 
 $tsfeBackup
 
 $configurationManager
 
- Protected Attributes inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
 $arguments
 
 $templateVariableContainer
 
 $controllerContext
 
 $renderingContext
 
 $renderChildrenClosure = NULL
 
 $viewHelperVariableContainer
 
 $objectManager
 
 $escapingInterceptorEnabled = TRUE
 

Additional Inherited Members

- Static Public Member Functions inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
static renderStatic (array $arguments, \Closure $renderChildrenClosure, \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 

Detailed Description

This ViewHelper renders CObjects from the global TypoScript configuration.

= Examples =

<f:cObject typoscriptObjectPath="lib.someLibObject" /> <output> rendered lib.someLibObject </output>

<f:cObject typoscriptObjectPath="lib.customHeader" data="{article}" currentValueKey="title" /> <output> rendered lib.customHeader. data and current value will be available in TypoScript </output>

{article -> f:cObject(typoscriptObjectPath: 'lib.customHeader')} <output> rendered lib.customHeader. data will be available in TypoScript </output>

Definition at line 42 of file CObjectViewHelper.php.

Member Function Documentation

◆ injectConfigurationManager()

◆ resetFrontendEnvironment()

TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper::resetFrontendEnvironment ( )
protected

◆ simulateFrontendEnvironment()

TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper::simulateFrontendEnvironment ( )
protected

Sets the $TSFE->cObjectDepthCounter in Backend mode This somewhat hacky work around is currently needed because the cObjGetSingle() function of relies on this setting

Returns
void

Definition at line 130 of file CObjectViewHelper.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper\injectConfigurationManager().

Member Data Documentation

◆ $configurationManager

TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper::$configurationManager
protected

◆ $escapingInterceptorEnabled

TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper::$escapingInterceptorEnabled = FALSE
protected

Definition at line 50 of file CObjectViewHelper.php.

◆ $tsfeBackup

TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper::$tsfeBackup
protected

◆ $typoScriptSetup

TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper::$typoScriptSetup
protected