PHP Class Neos\FluidAdaptor\Core\Widget\AjaxWidgetContextHolder

This class is only used internally by the widget framework.
Show file Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$nextFreeAjaxWidgetId integer Counter which points to the next free Ajax Widget ID which can be used.
$widgetContexts array An array $ajaxWidgetIdentifier => $widgetContext which stores the widget context.

Public Methods

Method Description
get ( integer $ajaxWidgetId ) : WidgetContext Get the widget context for the given $ajaxWidgetId.
store ( WidgetContext $widgetContext ) : void Stores the WidgetContext inside the Context, and sets the AjaxWidgetIdentifier inside the Widget Context correctly.

Method Details

get() public method

Get the widget context for the given $ajaxWidgetId.
public get ( integer $ajaxWidgetId ) : WidgetContext
$ajaxWidgetId integer
return WidgetContext

store() public method

Stores the WidgetContext inside the Context, and sets the AjaxWidgetIdentifier inside the Widget Context correctly.
public store ( WidgetContext $widgetContext ) : void
$widgetContext WidgetContext
return void

Property Details

$nextFreeAjaxWidgetId protected property

Counter which points to the next free Ajax Widget ID which can be used.
protected int $nextFreeAjaxWidgetId
return integer

$widgetContexts protected property

An array $ajaxWidgetIdentifier => $widgetContext which stores the widget context.
protected array $widgetContexts
return array