HumHub Documentation (unofficial)

HighlighterInterface

Tags
category

Zend

subpackage

Search

Table of Contents

Methods

getDocument()  : HTML
Get document for highlighting.
highlight()  : mixed
Highlight specified words (method is invoked once per subquery)
setDocument()  : mixed
Set document for highlighting.

Methods

highlight()

Highlight specified words (method is invoked once per subquery)

public highlight(string|array<string|int, mixed> $words) : mixed
Parameters
$words : string|array<string|int, mixed>

Words to highlight. They could be organized using the array or string.


        
On this page

Search results