HIGHLIGHT
in package
HIGHLIGHT class.
Highlight search terms for advsearch and qsearch (type == 'search') and ideas (type == 'ideas')
Table of Contents
Methods
- __construct() : mixed
- process() : string
- Do pattern highlighting after a SEARCH operation
Methods
__construct()
public
__construct() : mixed
process()
Do pattern highlighting after a SEARCH operation
public
process(string $text[, string $type = 'qsearch' ]) : string
Parameters
- $text : string
- $type : string = 'qsearch'
-
Default 'qsearch' (alternatives are 'advsearch' and 'ideas')