TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AjaxWidgetContextHolder Class Reference
Inheritance diagram for AjaxWidgetContextHolder:
SingletonInterface

Public Member Functions

 __construct ()
 
 get ($ajaxWidgetId)
 
 store (\TYPO3\CMS\Fluid\Core\Widget\WidgetContext $widgetContext)
 

Protected Member Functions

 loadWidgetContexts ()
 
 storeWidgetContexts ()
 

Protected Attributes

 $widgetContexts = array()
 
 $widgetContextsStorageKey = 'TYPO3\\CMS\\Fluid\\Core\\Widget\\AjaxWidgetContextHolder_widgetContexts'
 

Detailed Description

This object stores the WidgetContext for the currently active widgets of the current user, to make sure the WidgetContext is available in Widget AJAX requests.

This class is only used internally by the widget framework.

Definition at line 30 of file AjaxWidgetContextHolder.php.

Constructor & Destructor Documentation

__construct ( )

Constructor

Definition at line 48 of file AjaxWidgetContextHolder.php.

References AjaxWidgetContextHolder\loadWidgetContexts().

Member Function Documentation

get (   $ajaxWidgetId)

Get the widget context for the given $ajaxWidgetId.

Parameters
string$ajaxWidgetId
Returns

Definition at line 74 of file AjaxWidgetContextHolder.php.

loadWidgetContexts ( )
protected

Loads the windget contexts from the TYPO3 user session

Returns
void

Definition at line 58 of file AjaxWidgetContextHolder.php.

References $GLOBALS.

Referenced by AjaxWidgetContextHolder\__construct().

store ( \TYPO3\CMS\Fluid\Core\Widget\WidgetContext  $widgetContext)

Stores the WidgetContext inside the Context, and sets the AjaxWidgetIdentifier inside the Widget Context correctly.

Parameters
\TYPO3\CMS\Fluid\Core\Widget\WidgetContext$widgetContext
Returns
void

Definition at line 89 of file AjaxWidgetContextHolder.php.

References AjaxWidgetContextHolder\storeWidgetContexts().

storeWidgetContexts ( )
protected

Persists the widget contexts in the TYPO3 user session

Returns
void

Definition at line 102 of file AjaxWidgetContextHolder.php.

References $GLOBALS, and AjaxWidgetContextHolder\$widgetContextsStorageKey.

Referenced by AjaxWidgetContextHolder\store().

Member Data Documentation

$widgetContexts = array()
protected

Definition at line 38 of file AjaxWidgetContextHolder.php.

$widgetContextsStorageKey = 'TYPO3\\CMS\\Fluid\\Core\\Widget\\AjaxWidgetContextHolder_widgetContexts'
protected