HighlighterInterface
in
Tags
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
getDocument()
Get document for highlighting.
public
getDocument() : HTML
Return values
HTML —$document
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.
setDocument()
Set document for highlighting.
public
setDocument(HTML $document) : mixed
Parameters
- $document : HTML