AutocompleteViewHelper
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 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
No description
Injects the (system) logger based on PSR-3.
Register a new argument. Call this method from your ViewHelper subclass inside the initializeArguments() method.
Overrides a registered argument. Call this method from your ViewHelper subclass inside the initializeArguments() method if you want to override a previously registered argument.
Initialize the arguments.
Initialize the arguments of the ViewHelper, and call the render() method of the ViewHelper.
Stores the syntax tree child nodes in the Widget Context, so they can be
rendered with
Generate the configuration for this widget. Override to adjust.
Generate the configuration for this widget in AJAX context.
Generate the configuration for this widget in non-AJAX context.
Initiate a sub request to $this->controller. Make sure to fill $this->controller via Dependency Injection.
Resets the ViewHelper state by creating a fresh WidgetContext
No description
No description
Details
void
setRenderingContext(RenderingContextInterface $renderingContext)
No description
void
injectObjectManager(ObjectManagerInterface $objectManager)
No description
void
injectLogger(LoggerInterface $logger)
Injects the (system) logger based on PSR-3.
protected AbstractViewHelper
registerArgument(string $name, string $type, string $description, bool $required = false, mixed $defaultValue = null, bool|null $escape = null)
Register a new argument. Call this method from your ViewHelper subclass inside the initializeArguments() method.
This exists only to throw our own exception!
protected AbstractViewHelper
overrideArgument(string $name, string $type, string $description, bool $required = false, mixed $defaultValue = null, bool|null $escape = null)
Overrides a registered argument. Call this method from your ViewHelper subclass inside the initializeArguments() method if you want to override a previously registered argument.
This exists only to throw our own exception!
bool
isEscapingInterceptorEnabled()
No description
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
protected array
getWidgetConfiguration()
Generate the configuration for this widget. Override to adjust.
protected array
getAjaxWidgetConfiguration()
Generate the configuration for this widget in AJAX context.
By default, returns getWidgetConfiguration(). Should become API later.
protected array
getNonAjaxWidgetConfiguration()
Generate the configuration for this widget in non-AJAX context.
By default, returns getWidgetConfiguration(). Should become API later.
protected 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