Decide how to show a comcode page in the search results.
tempcode
decide_template
(ID_TEXT $zone, ID_TEXT $page, string $limit_to)
-
ID_TEXT
$zone: The zone for the page
-
ID_TEXT
$page: The page name
-
string
$limit_to: What search hooks the search is being limited to (blank: not limited)
Get a list of entries for the content covered by this search hook. In hierarchical list selection format.
tempcode
get_tree
(string $selected)
-
string
$selected: The default selected item
Standard modular info function.
?array
info
()
Standard modular run function for rendering a search result.
tempcode
render
(array $row)
-
array
$row: The data row stored when we retrieved the result
Standard modular run function for search results.
array
run
(array $content_explode, boolean $only_search_meta, ID_TEXT $direction, integer $max, integer $start, boolean $only_titles, string $content_where, SHORT_TEXT $author, ?MEMBER $author_id, TIME $cutoff, string $sort, integer $limit_to, string $boolean_operator, string $where_clause, string $search_under, BINARY $boolean_search)
-
array
$content_explode: A list of words for the boolean search
-
boolean
$only_search_meta: Whether to only do a META (tags) search
-
ID_TEXT
$direction: Order direction
-
integer
$max: Start position in total results
-
integer
$start: Maximum results to return in total
-
boolean
$only_titles: Whether only to search titles (as opposed to both titles and content)
-
string
$content_where: Where clause that selects the content according to the main search string (SQL query fragment) (blank: full-text search)
-
SHORT_TEXT
$author: Username/Author to match for
-
?MEMBER
$author_id: Member-ID to match for (NULL: unknown)
-
TIME
$cutoff: Cutoff date
-
string
$sort: The sort type (gets remapped to a field in this function)
-
integer
$limit_to: Limit to this number of results
-
string
$boolean_operator: What kind of boolean search to do
-
string
$where_clause: Where constraints known by the main search code (SQL query fragment)
-
string
$search_under: Comma-separated list of categories to search under
-
BINARY
$boolean_search: Whether it is a boolean search