Zend Framework
1.12
|
Public Member Functions | |
getLinks () | |
Get document HREF links. | |
getHeaderLinks () | |
Get document header links. | |
applyColour ($stringToHighlight, $colour) | |
Standard callback method used to highlight words. | |
highlight ($words, $colour= '#66ffff') | |
Highlight text with specified color. | |
highlightExtended ($words, $callback, $params=array()) | |
Highlight text using specified View helper or callback function. | |
getHTML () | |
Get HTML. | |
getHtmlBody () | |
Get HTML body. | |
![]() | |
__get ($offset) | |
Proxy method for getFieldValue(), provides more convenient access to the string value of a field. | |
addField (Zend_Search_Lucene_Field $field) | |
Add a field object to this document. | |
getFieldNames () | |
Return an array with the names of the fields in this document. | |
getField ($fieldName) | |
Returns Zend_Search_Lucene_Field object for a named field in this document. | |
getFieldValue ($fieldName) | |
Returns the string value of a named field in this document. | |
getFieldUtf8Value ($fieldName) | |
Returns the string value of a named field in UTF-8 encoding. | |
Static Public Member Functions | |
static | setExcludeNoFollowLinks ($newValue) |
Set exclude nofollow links flag. | |
static | getExcludeNoFollowLinks () |
Get exclude nofollow links flag. | |
static | loadHTML ($data, $storeContent=false, $defaultEncoding= '') |
Load HTML document from a string. | |
static | loadHTMLFile ($file, $storeContent=false, $defaultEncoding= '') |
Load HTML document from a file. | |
Protected Member Functions | |
_highlightTextNode (DOMText $node, $wordsToHighlight, $callback, $params) | |
Highlight text in text node. | |
_highlightNodeRecursive (DOMNode $contextNode, $wordsToHighlight, $callback, $params) | |
highlight words in content of the specified node | |
Additional Inherited Members | |
![]() | |
$boost = 1.0 | |
![]() | |
$_fields = array() | |
|
protected |
highlight words in content of the specified node
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) |
|
protected |
Highlight text in text node.
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) |
Zend_Search_Lucene_Exception |
applyColour | ( | $stringToHighlight, | |
$colour | |||
) |
Standard callback method used to highlight words.
string | $stringToHighlight |
|
static |
Get exclude nofollow links flag.
getHeaderLinks | ( | ) |
Get document header links.
getHTML | ( | ) |
Get HTML.
getHtmlBody | ( | ) |
Get HTML body.
getLinks | ( | ) |
Get document HREF links.
highlight | ( | $words, | |
$colour = '#66ffff' |
|||
) |
Highlight text with specified color.
string | array | $words | |
string | $colour |
highlightExtended | ( | $words, | |
$callback, | |||
$params = array() |
|||
) |
Highlight text using specified View helper or callback function.
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) |
Zend_Search_Lucene_Exception |
|
static |
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. |
|
static |
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. |
|
static |
Set exclude nofollow links flag.
boolean | $newValue |