Categories search plugin.
- Depuis
- 1.6
onContentSearch |
( |
|
$text, |
|
|
|
$phrase = '' , |
|
|
|
$ordering = '' , |
|
|
|
$areas = null |
|
) |
| |
Search content (categories).
The SQL must return the following fields that are used in a common display routine: href, title, section, created, text, browsernav.
- Paramètres
-
string | $text | Target search string. |
string | $phrase | Matching option (possible values: exact|any|all). Default is "any". |
string | $ordering | Ordering option (possible values: newest|oldest|popular|alpha|category). Default is "newest". |
mixed | $areas | An array if the search is to be restricted to areas or null to search all areas. |
- Renvoie
- array Search results.
- Depuis
- 1.6
Références $app, $db, $groups, $i, $limit, $ordering, $query, $return, $row, $rows, $state, $text, $user, et ContentHelperRoute\getCategoryRoute().