Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Search_Lucene_Search_Highlighter_Default Class Reference

Public Member Functions

 setDocument (Zend_Search_Lucene_Document_Html $document)
 Set document for highlighting.
 
 getDocument ()
 Get document for highlighting.
 
 highlight ($words)
 Highlight specified words.
 

Protected Attributes

 $_highlightColors
 
 $_currentColorIndex = 0
 
 $_doc
 

Member Function Documentation

getDocument ( )

Get document for highlighting.

Returns
Zend_Search_Lucene_Document_Html $document

Implements Zend_Search_Lucene_Search_Highlighter_Interface.

highlight (   $words)

Highlight specified words.

Parameters
string | array$wordsWords to highlight. They could be organized using the array or string.

Implements Zend_Search_Lucene_Search_Highlighter_Interface.

setDocument ( Zend_Search_Lucene_Document_Html  $document)

Set document for highlighting.

Parameters
Zend_Search_Lucene_Document_Html$document

Implements Zend_Search_Lucene_Search_Highlighter_Interface.

Member Data Documentation

$_currentColorIndex = 0
protected
$_doc
protected
$_highlightColors
protected
Initial value:
= array('#66ffff', '#ff66ff', '#ffff66',
'#ff8888', '#88ff88', '#8888ff',
'#88dddd', '#dd88dd', '#dddd88',
'#aaddff', '#aaffdd', '#ddaaff',
'#ddffaa', '#ffaadd', '#ffddaa')