WIKINDX API trunk

HIGHLIGHT
in package

HIGHLIGHT class.

Highlight search terms for advsearch and qsearch

Table of Contents

Properties

$patterns  : mixed
array

Methods

setHighlightPatterns()  : mixed
Set up highlighting of text if required (after a search operation).

Properties

$patterns

array

private mixed $patterns = []

Methods

setHighlightPatterns()

Set up highlighting of text if required (after a search operation).

private setHighlightPatterns([string $type = 'qsearch' ]) : mixed

Creates array of regexp expressions for search terms

Parameters
$type : string = 'qsearch'

Default 'qsearch' (alternative is 'ideas')


        
On this page

Search results