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.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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() публичный Метод

public getAjaxWidgetIdentifier ( ) : integer
Результат integer

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