Search model class for the Finder package.
- Depuis
- 2.5
Method to get the results for the search query.
- Renvoie
- array An array of result data objects.
- Depuis
- 2.5
- Exceptions
-
Exception | on database error. |
Références $base, $direction, $i, $items, $limit, $ordering, $query, $required, $results, $return, $start, $suffix, elseif, et null.
Method to get the total number of results for the search query.
- Renvoie
- integer The results total.
- Depuis
- 2.5
- Exceptions
-
Exception | on database error. |
Références $base, $i, $items, $limit, $query, $required, $results, $start, $suffix, $total, elseif, et null.
populateState |
( |
|
$ordering = null , |
|
|
|
$direction = null |
|
) |
| |
|
protected |
Method to auto-populate the model state. Calling getState in this method will result in recursion.
- Paramètres
-
string | $ordering | An optional ordering field. [optional] |
string | $direction | An optional direction. [optional] |
- Renvoie
- void
- Depuis
- 2.5
Load the sort ordering. Currently this is 'hard' coded via menu item parameter but may not satisfy a users need. More flexibility was way more user friendly. So we allow the user to pass a custom value from the pool of fields that are indexed like the 'title' field. Also, we allow this parameter to be passed in either case (lower/upper).
Load the sort direction. Currently this is 'hard' coded via menu item parameter but may not satisfy a users need. More flexibility was way more user friendly. So we allow to be inverted. Also, we allow this parameter to be passed in either case (lower/upper).
Références $app, $input, $options, $params, FinderIndexerHelper\$stemmer, $user, et FinderIndexerStemmer\getInstance().