lizmapFts
in package
Table of Contents
Methods
- getData() : array<int, mixed>
- Method called by the autocomplete input field for place search.
- generateSql() : string
- Generate the SQL for lizmap_search according to the given project.
Methods
getData()
Method called by the autocomplete input field for place search.
public
static getData(Project $project, string $searchedString, bool $debug[, int $limit = 40 ]) : array<int, mixed>
Parameters
- $project : Project
- $searchedString : string
-
Searched string
- $debug : bool
-
If the debug mode is ON
- $limit : int = 40
-
default 40
Return values
array<int, mixed> —of matching places
generateSql()
Generate the SQL for lizmap_search according to the given project.
protected
static generateSql(Project $project, int $termsCount) : string
Parameters
- $project : Project
-
The QGIS project
- $termsCount : int
-
How many terms are in the searched string
Return values
string —The SQL query