◆ disable()
Disables fulltext (MATCH AGAINST) search by removing the corresponding indices.
Implements GlobalSearchFulltext.
◆ enable()
Enables fulltext (MATCH AGAINST) search by creating the corresponding indices.
Implements GlobalSearchFulltext.
◆ filter()
static filter |
( |
|
$data, |
|
|
|
$search |
|
) |
| |
|
static |
Returns an array of information for the found element. Following informations (key: description) are necessary
- name: The name of the object
- url: The url to send the user to when he clicks the link
Additional informations are:
- additional: Subtitle for the hit
- expand: Url if the user further expands the search
- img: Avatar for the
- Parameters
-
- Returns
- mixed
◆ getFulltextSearch()
static getFulltextSearch |
( |
|
$search | ) |
|
|
static |
Executes a fulltext (MATCH AGAINST) search in database for the given search term.
- Parameters
-
string | $search | the term to search for. |
- Returns
- string SQL query.
Implements GlobalSearchFulltext.
◆ getName()
Returns the displayname for this module
- Returns
- string
◆ getSQL()
Transforms the search request into an sql statement, that provides the id (same as getId) as type and the object id, that is later passed to the filter.
This function is required to make use of the mysql union parallelism
- Parameters
-
$search | the input query string |
- Returns
- String SQL Query to discover elements for the search
The documentation for this class was generated from the following file: