프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$ajaxWidget | boolean | If set to TRUE, it is an AJAX widget. | |
$controller | This needs to be filled by the individual subclass using property injection. | ||
$escapeOutput | boolean | ||
$storeConfigurationInSession | boolean | You then need to manually add the serialized configuration data to your links, by setting "includeWidgetContext" to TRUE in the widget link and URI ViewHelpers. |
메소드 | 설명 | |
---|---|---|
compile ( string $argumentsName, string $closureName, string &$initializationPhpCode, TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode $node, TYPO3Fluid\Fluid\Core\Compiler\TemplateCompiler $compiler ) : string | ||
initializeArguments ( ) : void | Registers the widgetId viewhelper | |
initializeArgumentsAndRender ( ) : string | Initialize the arguments of the ViewHelper, and call the render() method of the ViewHelper. | |
injectAjaxWidgetContextHolder ( |
||
injectWidgetContext ( |
||
resetState ( ) : void | Resets the ViewHelper state by creating a fresh WidgetContext | |
setChildNodes ( array $childNodes ) : void |
Stores the syntax tree child nodes in the Widget Context, so they can be
rendered with |
메소드 | 설명 | |
---|---|---|
getAjaxWidgetConfiguration ( ) : array | Generate the configuration for this widget in AJAX context. | |
getNonAjaxWidgetConfiguration ( ) : array | Generate the configuration for this widget in non-AJAX context. | |
getWidgetConfiguration ( ) : array | Generate the configuration for this widget. Override to adjust. | |
initiateSubRequest ( ) : |
Initiate a sub request to $this->controller. Make sure to fill $this->controller via Dependency Injection. |
메소드 | 설명 | |
---|---|---|
initializeWidgetContext ( ) : void | Initialize the Widget Context, before the Render method is called. | |
initializeWidgetIdentifier ( ) : void | The widget identifier is unique on the current page, and is used in the URI as a namespace for the widget's arguments. | |
passArgumentsToSubRequest ( |
Pass the arguments of the widget to the sub request. |
public compile ( string $argumentsName, string $closureName, string &$initializationPhpCode, TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode $node, TYPO3Fluid\Fluid\Core\Compiler\TemplateCompiler $compiler ) : string | ||
$argumentsName | string | |
$closureName | string | |
$initializationPhpCode | string | |
$node | TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode | |
$compiler | TYPO3Fluid\Fluid\Core\Compiler\TemplateCompiler | |
리턴 | string |
protected getAjaxWidgetConfiguration ( ) : array | ||
리턴 | array |
protected getNonAjaxWidgetConfiguration ( ) : array | ||
리턴 | array |
protected getWidgetConfiguration ( ) : array | ||
리턴 | array |
public initializeArguments ( ) : void | ||
리턴 | void |
public initializeArgumentsAndRender ( ) : string | ||
리턴 | string | the rendered ViewHelper. |
protected initiateSubRequest ( ) : |
||
리턴 | the response of this request. |
public injectAjaxWidgetContextHolder ( |
||
$ajaxWidgetContextHolder | ||
리턴 | void |
public injectWidgetContext ( |
||
$widgetContext | ||
리턴 | void |
public resetState ( ) : void | ||
리턴 | void |
public setChildNodes ( array $childNodes ) : void | ||
$childNodes | array | The SyntaxTree Child nodes of this ViewHelper. |
리턴 | void |
protected bool $ajaxWidget | ||
리턴 | boolean |
protected AbstractWidgetController,Neos\FluidAdaptor\Core\Widget $controller | ||
리턴 |
protected bool $storeConfigurationInSession | ||
리턴 | boolean |