PHP Class 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.
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
__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

Method Details

__sleep() public méthode

Serialize everything *except* the viewHelperChildNodes, viewHelperChildNodeRenderingContext and nonAjaxWidgetConfiguration
public __sleep ( ) : array
Résultat array

getAjaxWidgetIdentifier() public méthode

public getAjaxWidgetIdentifier ( ) : integer
Résultat integer

getControllerObjectName() public méthode

public getControllerObjectName ( ) : string
Résultat string

getViewHelperChildNodeRenderingContext() public méthode

public getViewHelperChildNodeRenderingContext ( ) : TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface
Résultat TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface

getViewHelperChildNodes() public méthode

public getViewHelperChildNodes ( ) : TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\RootNode
Résultat TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\RootNode

getWidgetConfiguration() public méthode

public getWidgetConfiguration ( ) : array
Résultat array

getWidgetIdentifier() public méthode

public getWidgetIdentifier ( ) : string
Résultat string

setAjaxWidgetConfiguration() public méthode

public setAjaxWidgetConfiguration ( array $ajaxWidgetConfiguration ) : void
$ajaxWidgetConfiguration array
Résultat void

setAjaxWidgetIdentifier() public méthode

public setAjaxWidgetIdentifier ( integer $ajaxWidgetIdentifier ) : void
$ajaxWidgetIdentifier integer
Résultat void

setControllerObjectName() public méthode

public setControllerObjectName ( string $controllerObjectName ) : void
$controllerObjectName string
Résultat void

setNonAjaxWidgetConfiguration() public méthode

public setNonAjaxWidgetConfiguration ( array $nonAjaxWidgetConfiguration ) : void
$nonAjaxWidgetConfiguration array
Résultat void

setViewHelperChildNodes() public méthode

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
Résultat void

setWidgetIdentifier() public méthode

public setWidgetIdentifier ( string $widgetIdentifier ) : void
$widgetIdentifier string
Résultat void

Property Details

$ajaxWidgetConfiguration protected_oe property

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

$ajaxWidgetIdentifier protected_oe property

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

$controllerObjectName protected_oe property

The fully qualified object name of the Controller which this widget uses.
protected string $controllerObjectName
Résultat string

$nonAjaxWidgetConfiguration protected_oe property

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

$viewHelperChildNodeRenderingContext protected_oe property

Only available inside non-AJAX requests.
protected RenderingContextInterface,TYPO3Fluid\Fluid\Core\Rendering $viewHelperChildNodeRenderingContext
Résultat TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface

$viewHelperChildNodes protected_oe property

Only available inside non-AJAX requests.
protected RootNode,TYPO3Fluid\Fluid\Core\Parser\SyntaxTree $viewHelperChildNodes
Résultat TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\RootNode

$widgetIdentifier protected_oe property

Uniquely idenfies a Widget Instance on a certain page.
protected string $widgetIdentifier
Résultat string