PHP 클래스 Neos\FluidAdaptor\Core\Widget\AbstractWidgetViewHelper

상속: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper, implements Neos\FluidAdaptor\Core\ViewHelper\Facets\ChildNodeAccessInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$ajaxWidget boolean If set to TRUE, it is an AJAX widget.
$controller AbstractWidgetController 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 ( AjaxWidgetContextHolder $ajaxWidgetContextHolder ) : void
injectWidgetContext ( WidgetContext $widgetContext ) : void
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 lateron.

보호된 메소드들

메소드 설명
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 ( ) : Response 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 ( ActionRequest $subRequest ) : void Pass the arguments of the widget to the sub request.

메소드 상세

compile() 공개 메소드

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

getAjaxWidgetConfiguration() 보호된 메소드

By default, returns getWidgetConfiguration(). Should become API later.
protected getAjaxWidgetConfiguration ( ) : array
리턴 array

getNonAjaxWidgetConfiguration() 보호된 메소드

By default, returns getWidgetConfiguration(). Should become API later.
protected getNonAjaxWidgetConfiguration ( ) : array
리턴 array

getWidgetConfiguration() 보호된 메소드

Generate the configuration for this widget. Override to adjust.
protected getWidgetConfiguration ( ) : array
리턴 array

initializeArguments() 공개 메소드

Registers the widgetId viewhelper
public initializeArguments ( ) : void
리턴 void

initializeArgumentsAndRender() 공개 메소드

Initialize the arguments of the ViewHelper, and call the render() method of the ViewHelper.
public initializeArgumentsAndRender ( ) : string
리턴 string the rendered ViewHelper.

initiateSubRequest() 보호된 메소드

Initiate a sub request to $this->controller. Make sure to fill $this->controller via Dependency Injection.
protected initiateSubRequest ( ) : Response
리턴 Neos\Flow\Http\Response the response of this request.

injectAjaxWidgetContextHolder() 공개 메소드

public injectAjaxWidgetContextHolder ( AjaxWidgetContextHolder $ajaxWidgetContextHolder ) : void
$ajaxWidgetContextHolder AjaxWidgetContextHolder
리턴 void

injectWidgetContext() 공개 메소드

public injectWidgetContext ( WidgetContext $widgetContext ) : void
$widgetContext WidgetContext
리턴 void

resetState() 공개 메소드

Resets the ViewHelper state by creating a fresh WidgetContext
public resetState ( ) : void
리턴 void

setChildNodes() 공개 메소드

Stores the syntax tree child nodes in the Widget Context, so they can be rendered with lateron.
public setChildNodes ( array $childNodes ) : void
$childNodes array The SyntaxTree Child nodes of this ViewHelper.
리턴 void

프로퍼티 상세

$ajaxWidget 보호되어 있는 프로퍼티

If set to TRUE, it is an AJAX widget.
protected bool $ajaxWidget
리턴 boolean

$controller 보호되어 있는 프로퍼티

This needs to be filled by the individual subclass using property injection.
protected AbstractWidgetController,Neos\FluidAdaptor\Core\Widget $controller
리턴 AbstractWidgetController

$escapeOutput 보호되어 있는 프로퍼티

protected bool $escapeOutput
리턴 boolean

$storeConfigurationInSession 보호되어 있는 프로퍼티

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.
protected bool $storeConfigurationInSession
리턴 boolean