Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
onContentSearchAreas () | |
onContentSearch ($text, $phrase='', $ordering='', $areas=null) | |
Content search plugin.
onContentSearch | ( | $text, | |
$phrase = '' , |
|||
$ordering = '' , |
|||
$areas = null |
|||
) |
Search content (articles). The SQL must return the following fields that are used in a common display routine: href, title, section, created, text, browsernav.
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 it to be restricted to areas or null to search all areas. |
Références $app, $article, $date, $db, $groups, $item, $key, $limit, $list, $now, $ordering, $query, $results, $row, $rows, $text, $user, SearchHelper\checkNoHtml(), ContentHelperRoute\getArticleRoute(), JPATH_ADMINISTRATOR, JPATH_SITE, et JLoader\register().
onContentSearchAreas | ( | ) |
Determine areas searchable by this plugin.