Eds
in package
implements
AutocompleteInterface
EDS Autocomplete Module
This class provides popular terms provided by EDS.
Tags
Interfaces, Classes, Traits and Enums
- AutocompleteInterface
- Autocomplete Plug-In Interface
Table of Contents
- $domain : string
- Eds domain
- $searchClassId : string
- Search object family to use
- $searchService : Service
- Search service
- __construct() : mixed
- Constructor
- getSuggestions() : array<string|int, mixed>
- This method returns an array of strings matching the user's query for display in the autocomplete box.
- setConfig() : void
- Set parameters that affect the behavior of the autocomplete handler.
Properties
$domain
Eds domain
protected
string
$domain
= 'rawqueries'
$searchClassId
Search object family to use
protected
string
$searchClassId
= 'EDS'
$searchService
Search service
protected
Service
$searchService
Methods
__construct()
Constructor
public
__construct(Service $ss) : mixed
Parameters
- $ss : Service
-
Search service
Return values
mixed —getSuggestions()
This method returns an array of strings matching the user's query for display in the autocomplete box.
public
getSuggestions(string $query) : array<string|int, mixed>
Parameters
- $query : string
-
The user query
Return values
array<string|int, mixed> —The suggestions for the provided query
setConfig()
Set parameters that affect the behavior of the autocomplete handler.
public
setConfig(string $params) : void
These values normally come from the EDS configuration file.
Parameters
- $params : string
-
Parameters to set