Get exclude nofollow links flag
static boolean
getExcludeNoFollowLinks
()
Load HTML document from a string
-
string
$data
-
boolean
$storeContent
-
string
$defaultEncoding: HTML encoding, is used if it's not specified using Content-type HTTP-EQUIV meta tag.
Load HTML document from a file
-
string
$file
-
boolean
$storeContent
-
string
$defaultEncoding: HTML encoding, is used if it's not specified using Content-type HTTP-EQUIV meta tag.
Set exclude nofollow links flag
static void
setExcludeNoFollowLinks
(boolean $newValue)
Standard callback method used to highlight words.
string
applyColour
(string $stringToHighlight, $colour)
-
string
$stringToHighlight
-
$colour
Get document header links
array
getHeaderLinks
()
Get HTML
string
getHTML
()
Get HTML body
string
getHtmlBody
()
Get document HREF links
array
getLinks
()
Highlight text with specified color
string
highlight
(string|array $words, [string $colour = '#66ffff'])
-
string|array
$words
-
string
$colour
Highlight text using specified View helper or callback function.
string
highlightExtended
(string|array $words, callback $callback, [array $params = array()])
-
string|array
$words: Words to highlight. Words could be organized using the array or string.
-
callback
$callback: Callback method, used to transform (highlighting) text.
-
array
$params: Array of additionall callback parameters passed through into it (first non-optional parameter is an HTML fragment for highlighting)
highlight words in content of the specified node
void
_highlightNodeRecursive
( $contextNode, array $wordsToHighlight, callback $callback, array $params)
-
DOMNode
$contextNode
-
array
$wordsToHighlight
-
callback
$callback: Callback method, used to transform (highlighting) text.
-
array
$params: Array of additionall callback parameters (first non-optional parameter is a text to transform)
Highlight text in text node
void
_highlightTextNode
( $node, array $wordsToHighlight, callback $callback, array $params)
-
DOMText
$node
-
array
$wordsToHighlight
-
callback
$callback: Callback method, used to transform (highlighting) text.
-
array
$params: Array of additionall callback parameters (first non-optional parameter is a text to transform)
Inherited Methods
Inherited From Zend_Search_Lucene_Document
Zend_Search_Lucene_Document::addField()
Zend_Search_Lucene_Document::getField()
Zend_Search_Lucene_Document::getFieldNames()
Zend_Search_Lucene_Document::getFieldUtf8Value()
Zend_Search_Lucene_Document::getFieldValue()
Zend_Search_Lucene_Document::__get()