class AutocompleteViewHelper extends AbstractWidgetViewHelper (View source)

Usage: <f:input id="name" ... />

Make sure to include jQuery and jQuery UI in the HTML, like that:

Properties

protected RenderingContextInterface $renderingContext from  AbstractViewHelper
protected ControllerContext $controllerContext

Controller Context to use

from  AbstractViewHelper
protected ObjectManagerInterface $objectManager from  AbstractViewHelper
protected LoggerInterface $logger from  AbstractViewHelper
protected bool $escapeOutput from  AbstractWidgetViewHelper
protected AutocompleteController $controller
protected bool $ajaxWidget
protected bool $storeConfigurationInSession

If set to false, this widget won't create a session (only relevant for AJAX widgets).

from  AbstractWidgetViewHelper

Methods

void
setRenderingContext(RenderingContextInterface $renderingContext)

No description

void
injectObjectManager(ObjectManagerInterface $objectManager)

No description

void
injectLogger(LoggerInterface $logger)

Injects the (system) logger based on PSR-3.

void
injectAjaxWidgetContextHolder(AjaxWidgetContextHolder $ajaxWidgetContextHolder)

No description

void
injectWidgetContext(WidgetContext $widgetContext)

No description

void
initializeArguments()

Initialize the arguments.

string
initializeArgumentsAndRender()

Initialize the arguments of the ViewHelper, and call the render() method of the ViewHelper.

void
setChildNodes(array $childNodes)

Stores the syntax tree child nodes in the Widget Context, so they can be rendered with lateron.

array
getWidgetConfiguration()

Generate the configuration for this widget. Override to adjust.

array
getAjaxWidgetConfiguration()

Generate the configuration for this widget in AJAX context.

array
getNonAjaxWidgetConfiguration()

Generate the configuration for this widget in non-AJAX context.

string
initiateSubRequest()

Initiate a sub request to $this->controller. Make sure to fill $this->controller via Dependency Injection.

void
resetState()

Resets the ViewHelper state by creating a fresh WidgetContext

string
compile(string $argumentsName, string $closureName, string $initializationPhpCode, ViewHelperNode $node, TemplateCompiler $compiler)

No description

string
render()

No description

Details

void setRenderingContext(RenderingContextInterface $renderingContext)

No description

Parameters

RenderingContextInterface $renderingContext

Return Value

void

void injectObjectManager(ObjectManagerInterface $objectManager)

No description

Parameters

ObjectManagerInterface $objectManager

Return Value

void

void injectLogger(LoggerInterface $logger)

Injects the (system) logger based on PSR-3.

Parameters

LoggerInterface $logger

Return Value

void

bool isEscapingInterceptorEnabled()

No description

Return Value

bool

void injectAjaxWidgetContextHolder(AjaxWidgetContextHolder $ajaxWidgetContextHolder)

No description

Parameters

AjaxWidgetContextHolder $ajaxWidgetContextHolder

Return Value

void

void injectWidgetContext(WidgetContext $widgetContext)

No description

Parameters

WidgetContext $widgetContext

Return Value

void

void initializeArguments()

Initialize the arguments.

Return Value

void

Exceptions

Exception

string initializeArgumentsAndRender()

Initialize the arguments of the ViewHelper, and call the render() method of the ViewHelper.

Return Value

string

the rendered ViewHelper.

void setChildNodes(array $childNodes)

Stores the syntax tree child nodes in the Widget Context, so they can be rendered with lateron.

Parameters

array $childNodes

Return Value

void

protected array getWidgetConfiguration()

Generate the configuration for this widget. Override to adjust.

Return Value

array

protected array getAjaxWidgetConfiguration()

Generate the configuration for this widget in AJAX context.

By default, returns getWidgetConfiguration(). Should become API later.

Return Value

array

protected array getNonAjaxWidgetConfiguration()

Generate the configuration for this widget in non-AJAX context.

By default, returns getWidgetConfiguration(). Should become API later.

Return Value

array

protected string initiateSubRequest()

Initiate a sub request to $this->controller. Make sure to fill $this->controller via Dependency Injection.

Return Value

string

the response content of this request.

Exceptions

InvalidControllerException
MissingControllerException
InfiniteLoopException
StopActionException

void resetState()

Resets the ViewHelper state by creating a fresh WidgetContext

Return Value

void

string compile(string $argumentsName, string $closureName, string $initializationPhpCode, ViewHelperNode $node, TemplateCompiler $compiler)

No description

Parameters

string $argumentsName
string $closureName
string $initializationPhpCode
ViewHelperNode $node
TemplateCompiler $compiler

Return Value

string

string render()

No description