![]() |
TYPO3
7.6
|
Public Member Functions | |
injectConfigurationManager (\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager) | |
![]() | |
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 () | |
![]() | |
registerArgument ($name, $type, $description, $required=false, $defaultValue=null) | |
overrideArgument ($name, $type, $description, $required=false, $defaultValue=null) | |
callRenderMethod () | |
getLogger () | |
buildRenderChildrenClosure () | |
hasArgument ($argumentName) | |
Protected Attributes | |
$escapingInterceptorEnabled = false | |
$typoScriptSetup | |
$tsfeBackup | |
$configurationManager | |
![]() | |
$arguments | |
$templateVariableContainer | |
$controllerContext | |
$renderingContext | |
$renderChildrenClosure = null | |
$viewHelperVariableContainer | |
$objectManager | |
$escapingInterceptorEnabled = true | |
Additional Inherited Members | |
![]() | |
static | renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) |
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}" current="{article.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.
injectConfigurationManager | ( | \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface | $configurationManager | ) |
\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface | $configurationManager |
Definition at line 71 of file CObjectViewHelper.php.
References CObjectViewHelper\$configurationManager.
|
protected |
Resets $GLOBALS['TSFE'] if it was previously changed by simulateFrontendEnvironment()
Definition at line 145 of file CObjectViewHelper.php.
References $GLOBALS, and CObjectViewHelper\$tsfeBackup.
|
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
Definition at line 132 of file CObjectViewHelper.php.
References $GLOBALS.
|
protected |
Definition at line 65 of file CObjectViewHelper.php.
Referenced by CObjectViewHelper\injectConfigurationManager().
|
protected |
Definition at line 50 of file CObjectViewHelper.php.
|
protected |
Definition at line 60 of file CObjectViewHelper.php.
Referenced by CObjectViewHelper\resetFrontendEnvironment().
|
protected |
Definition at line 55 of file CObjectViewHelper.php.