Property | Type | Description | |
---|---|---|---|
$configurationOnPathRuntimeCache | array | ||
$controllerContext | |||
$debugMode | boolean | ||
$defaultContextVariables | array | Default context with helper definitions | |
$eelEvaluator | |||
$lastEvaluationStatus | string | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | ||
$renderingStack | array | Contains list of contexts | |
$runtimeContentCache | |||
$settings | array | ||
$simpleTypeToArrayClosure | Closure | ||
$typoScriptConfiguration | array |
Method | Description | |
---|---|---|
__construct ( array $typoScriptConfiguration, |
Constructor for the TypoScript Runtime | |
addCacheTag ( string $key, string $value ) : void | Add a tag to the current cache segment | |
canRender ( string $typoScriptPath ) : boolean | Determine if the given TypoScript path is renderable, which means it exists and has an implementation. | |
evaluate ( string $typoScriptPath, object $contextObject = null ) : mixed | Evaluate an absolute TypoScript path and return the result | |
getControllerContext ( ) : |
Returns the context which has been passed by the currently active MVC Controller | |
getCurrentContext ( ) : array | Get the current context array | |
getLastEvaluationStatus ( ) : string | ||
handleRenderingException ( array $typoScriptPath, Exception $exception, boolean $useInnerExceptionHandler = false ) : string | Handle an Exception thrown while rendering TypoScript according to settings specified in Neos.Fusion.rendering.exceptionHandler | |
injectSettings ( array $settings ) : void | Inject settings of this package | |
isDebugMode ( ) : boolean | ||
popContext ( ) : array | Remove the topmost context objects and return them | |
pushContext ( string $key, mixed $context ) : void | Push a new context object to the rendering stack | |
pushContextArray ( array $contextArray ) : void | Completely replace the context array with the new $contextArray. | |
render ( string $typoScriptPath ) : string | Render an absolute TypoScript path and return the result. | |
setDebugMode ( boolean $debugMode ) : void | ||
setEnableContentCache ( boolean $flag ) : void | If the TypoScript content cache should be enabled at all |
Method | Description | |
---|---|---|
canRenderWithConfiguration ( array $typoScriptConfiguration ) : boolean | Internal evaluation if given configuration is renderable. | |
evaluateEelExpression ( string $expression, |
Evaluate an Eel expression | |
evaluateEelExpressionOrSimpleValueWithProcessor ( string $typoScriptPath, array $valueConfiguration, |
Evaluate a simple value or eel expression with processors | |
evaluateIfCondition ( array $configurationWithEventualIf, string $configurationPath, |
Evaluate eventually existing meta "@if" conditionals inside the given configuration and path. | |
evaluateInternal ( string $typoScriptPath, string $behaviorIfPathNotFound, mixed $contextObject = null ) : mixed | Internal evaluation method of absolute $typoScriptPath | |
evaluateObjectOrRetrieveFromCache ( |
Does the evaluation of a TypoScript instance, first checking the cache and if conditions and afterwards applying processors. | |
evaluateProcessors ( mixed $valueToProcess, array $configurationWithEventualProcessors, string $typoScriptPath, |
Evaluate processors on given value. | |
evaluteExpressionOrValueInternal ( string $typoScriptPath, array $typoScriptConfiguration, array $cacheContext, mixed $contextObject ) : mixed | Evaluates an EEL expression or value, checking if conditions first and applying processors. | |
finalizePathEvaluation ( array $cacheContext, boolean $needToPopContext = false ) : void | Ends the evaluation of a typoscript path by popping the context stack if needed and leaving the cache context. | |
getConfigurationForPath ( string $typoScriptPath ) : array | Get the TypoScript Configuration for the given TypoScript path | |
getDefaultContextVariables ( ) : array | Get variables from configuration that should be set in the context by default. | |
hasExpressionOrValue ( array $typoScriptConfiguration ) : boolean | Does the given TypoScript configuration array hold an EEL expression or simple value. | |
instantiateTypoScriptObject ( string $typoScriptPath, array $typoScriptConfiguration ) : |
Instantiates a TypoScript object specified by the given path and configuration | |
isArrayTypoScriptObject ( |
Check if the given object is an array like object that should get all properties set to iterate or process internally. | |
matchCurrentPathPart ( string $pathPart, array $previousConfiguration, array &$currentPrototypeDefinitions ) : array | Matches the current path segment and prepares the configuration. | |
mergePrototypesWithConfigurationForPathSegment ( array $configuration, array &$currentPrototypeDefinitions ) : array | Merges the prototype chain into the configuration. | |
prepareContextForTypoScriptObject ( |
Possibly prepares a new context for the current TypoScriptObject and cache context and pushes it to the stack. | |
setPropertiesOnTypoScriptObject ( |
Set options on the given (AbstractArray)TypoScript object | |
throwExceptionForUnrenderablePathIfNeeded ( string $typoScriptPath, array $typoScriptConfiguration, string $behaviorIfPathNotFound ) | Checks and throws an exception for an unrenderable path. |
public __construct ( array $typoScriptConfiguration, |
||
$typoScriptConfiguration | array | |
$controllerContext |
protected canRenderWithConfiguration ( array $typoScriptConfiguration ) : boolean | ||
$typoScriptConfiguration | array | |
return | boolean |
protected evaluateEelExpression ( string $expression, |
||
$expression | string | The Eel expression to evaluate |
$contextObject | An optional object for the "this" value inside the context | |
return | mixed | The result of the evaluated Eel expression |
protected evaluateEelExpressionOrSimpleValueWithProcessor ( string $typoScriptPath, array $valueConfiguration, |
||
$typoScriptPath | string | the TypoScript path up to now |
$valueConfiguration | array | TypoScript configuration for the value |
$contextObject | An optional object for the "this" value inside the context | |
return | mixed | The result of the evaluation |
protected evaluateInternal ( string $typoScriptPath, string $behaviorIfPathNotFound, mixed $contextObject = null ) : mixed | ||
$typoScriptPath | string | |
$behaviorIfPathNotFound | string | one of BEHAVIOR_EXCEPTION or BEHAVIOR_RETURNNULL |
$contextObject | mixed | the object which will be "this" in Eel expressions, if any |
return | mixed |
protected evaluateObjectOrRetrieveFromCache ( |
||
$typoScriptObject | ||
$typoScriptPath | string | |
$typoScriptConfiguration | array | |
$cacheContext | array | |
return | mixed |
protected evaluateProcessors ( mixed $valueToProcess, array $configurationWithEventualProcessors, string $typoScriptPath, |
||
$valueToProcess | mixed | |
$configurationWithEventualProcessors | array | |
$typoScriptPath | string | |
$contextObject | ||
return | mixed |
protected getConfigurationForPath ( string $typoScriptPath ) : array | ||
$typoScriptPath | string | |
return | array |
public getControllerContext ( ) : |
||
return |
public getCurrentContext ( ) : array | ||
return | array | the array of current context objects |
protected getDefaultContextVariables ( ) : array | ||
return | array | Array with default context variable objects. |
protected hasExpressionOrValue ( array $typoScriptConfiguration ) : boolean | ||
$typoScriptConfiguration | array | |
return | boolean |
public injectSettings ( array $settings ) : void | ||
$settings | array | The settings |
return | void |
protected instantiateTypoScriptObject ( string $typoScriptPath, array $typoScriptConfiguration ) : |
||
$typoScriptPath | string | Path to the configuration for this object instance |
$typoScriptConfiguration | array | Configuration at the given path |
return |
protected isArrayTypoScriptObject ( |
||
$typoScriptObject | ||
return | boolean |
public popContext ( ) : array | ||
return | array | the topmost context objects as associative array |
protected prepareContextForTypoScriptObject ( |
||
$typoScriptObject | ||
$typoScriptPath | string | |
$typoScriptConfiguration | array | |
$cacheContext | array | |
return | boolean |
public pushContextArray ( array $contextArray ) : void | ||
$contextArray | array | |
return | void |
public setDebugMode ( boolean $debugMode ) : void | ||
$debugMode | boolean | |
return | void |
public setEnableContentCache ( boolean $flag ) : void | ||
$flag | boolean | |
return | void |
protected setPropertiesOnTypoScriptObject ( |
||
$typoScriptObject | ||
$typoScriptConfiguration | array | |
return | void |
protected throwExceptionForUnrenderablePathIfNeeded ( string $typoScriptPath, array $typoScriptConfiguration, string $behaviorIfPathNotFound ) | ||
$typoScriptPath | string | The TypoScript path that cannot be rendered |
$typoScriptConfiguration | array | |
$behaviorIfPathNotFound | string | One of the BEHAVIOR_* constants |
protected array $configurationOnPathRuntimeCache | ||
return | array |
protected ControllerContext,Neos\Flow\Mvc\Controller $controllerContext | ||
return |
protected array $defaultContextVariables | ||
return | array |
protected CompilingEvaluator,Neos\Eel $eelEvaluator | ||
return |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
return | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected array $renderingStack | ||
return | array |
protected RuntimeContentCache,Neos\Fusion\Core\Cache $runtimeContentCache | ||
return |
protected Closure $simpleTypeToArrayClosure | ||
return | Closure |
protected array $typoScriptConfiguration | ||
return | array |