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

The WidgetContext can be fetched from the current request as internal argument __widgetContext, and is thus available throughout the whole sub-request of the widget. It is used internally by various ViewHelpers (like , , ), to get knowledge over the current widget's configuration. It is a purely internal class which should not be used outside of Fluid.
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$ajaxWidgetConfiguration array User-supplied widget configuration, available inside the widget controller as $this->widgetConfiguration, if being inside an AJAX request
$ajaxWidgetIdentifier integer Per-User unique identifier of the widget, if it is an AJAX widget.
$controllerObjectName string The fully qualified object name of the Controller which this widget uses.
$nonAjaxWidgetConfiguration array User-supplied widget configuration, available inside the widget controller as $this->widgetConfiguration, if being inside a non-AJAX request
$viewHelperChildNodeRenderingContext TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface Only available inside non-AJAX requests.
$viewHelperChildNodes TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\RootNode Only available inside non-AJAX requests.
$widgetIdentifier string Uniquely idenfies a Widget Instance on a certain page.

공개 메소드들

메소드 설명
__sleep ( ) : array Serialize everything *except* the viewHelperChildNodes, viewHelperChildNodeRenderingContext and nonAjaxWidgetConfiguration
getAjaxWidgetIdentifier ( ) : integer
getControllerObjectName ( ) : string
getViewHelperChildNodeRenderingContext ( ) : TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface
getViewHelperChildNodes ( ) : TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\RootNode
getWidgetConfiguration ( ) : array
getWidgetIdentifier ( ) : string
setAjaxWidgetConfiguration ( array $ajaxWidgetConfiguration ) : void
setAjaxWidgetIdentifier ( integer $ajaxWidgetIdentifier ) : void
setControllerObjectName ( string $controllerObjectName ) : void
setNonAjaxWidgetConfiguration ( array $nonAjaxWidgetConfiguration ) : void
setViewHelperChildNodes ( TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\RootNode $viewHelperChildNodes, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $viewHelperChildNodeRenderingContext ) : void
setWidgetIdentifier ( string $widgetIdentifier ) : void

메소드 상세

__sleep() 공개 메소드

Serialize everything *except* the viewHelperChildNodes, viewHelperChildNodeRenderingContext and nonAjaxWidgetConfiguration
public __sleep ( ) : array
리턴 array

getAjaxWidgetIdentifier() 공개 메소드

getControllerObjectName() 공개 메소드

public getControllerObjectName ( ) : string
리턴 string

getViewHelperChildNodeRenderingContext() 공개 메소드

public getViewHelperChildNodeRenderingContext ( ) : TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface
리턴 TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface

getViewHelperChildNodes() 공개 메소드

public getViewHelperChildNodes ( ) : TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\RootNode
리턴 TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\RootNode

getWidgetConfiguration() 공개 메소드

public getWidgetConfiguration ( ) : array
리턴 array

getWidgetIdentifier() 공개 메소드

public getWidgetIdentifier ( ) : string
리턴 string

setAjaxWidgetConfiguration() 공개 메소드

public setAjaxWidgetConfiguration ( array $ajaxWidgetConfiguration ) : void
$ajaxWidgetConfiguration array
리턴 void

setAjaxWidgetIdentifier() 공개 메소드

public setAjaxWidgetIdentifier ( integer $ajaxWidgetIdentifier ) : void
$ajaxWidgetIdentifier integer
리턴 void

setControllerObjectName() 공개 메소드

public setControllerObjectName ( string $controllerObjectName ) : void
$controllerObjectName string
리턴 void

setNonAjaxWidgetConfiguration() 공개 메소드

public setNonAjaxWidgetConfiguration ( array $nonAjaxWidgetConfiguration ) : void
$nonAjaxWidgetConfiguration array
리턴 void

setViewHelperChildNodes() 공개 메소드

public setViewHelperChildNodes ( TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\RootNode $viewHelperChildNodes, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $viewHelperChildNodeRenderingContext ) : void
$viewHelperChildNodes TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\RootNode
$viewHelperChildNodeRenderingContext TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface
리턴 void

setWidgetIdentifier() 공개 메소드

public setWidgetIdentifier ( string $widgetIdentifier ) : void
$widgetIdentifier string
리턴 void

프로퍼티 상세

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

User-supplied widget configuration, available inside the widget controller as $this->widgetConfiguration, if being inside an AJAX request
protected array $ajaxWidgetConfiguration
리턴 array

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

Per-User unique identifier of the widget, if it is an AJAX widget.
protected int $ajaxWidgetIdentifier
리턴 integer

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

The fully qualified object name of the Controller which this widget uses.
protected string $controllerObjectName
리턴 string

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

User-supplied widget configuration, available inside the widget controller as $this->widgetConfiguration, if being inside a non-AJAX request
protected array $nonAjaxWidgetConfiguration
리턴 array

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

Only available inside non-AJAX requests.
protected RenderingContextInterface,TYPO3Fluid\Fluid\Core\Rendering $viewHelperChildNodeRenderingContext
리턴 TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface

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

Only available inside non-AJAX requests.
protected RootNode,TYPO3Fluid\Fluid\Core\Parser\SyntaxTree $viewHelperChildNodes
리턴 TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\RootNode

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

Uniquely idenfies a Widget Instance on a certain page.
protected string $widgetIdentifier
리턴 string