HIGHLIGHT
in package
HIGHLIGHT class.
Highlight search terms for advsearch and qsearch
Table of Contents
- $patterns : mixed
- array
- $store : mixed
- object
- setHighlightPatterns() : mixed
- Set up highlighting of text if required (after a search operation).
Properties
$patterns
array
private
mixed
$patterns
= []
$store
object
private
mixed
$store
Methods
setHighlightPatterns()
Set up highlighting of text if required (after a search operation).
private
setHighlightPatterns([string $type = 'search' ]) : mixed
Creates array of regexp expressions for search terms
Parameters
- $type : string = 'search'
-
Default 'search' (alternative is 'ideas')