HTML document.
category | Zend |
---|---|
package | Zend_Search_Lucene |
subpackage | Document |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Search_Lucene_Document |
__get(string $offset) : string
string
string
addField(\Zend_Search_Lucene_Field $field) : \Zend_Search_Lucene_Document
\Zend_Search_Lucene_Field
\Zend_Search_Lucene_Document
getExcludeNoFollowLinks() : boolean
boolean
getField(string $fieldName) : \Zend_Search_Lucene_Field
string
\Zend_Search_Lucene_Field
getFieldNames() : array
array
getFieldUtf8Value($fieldName) : string
getFieldValue($fieldName) : string
getHTML() : string
string
getHeaderLinks() : array
array
getHtmlBody() : string
string
getLinks() : array
array
highlight(string|array $words, string $colour = '#66ffff'
) : string
string
array
string
string
highlightExtended(string|array $words, callback $callback, array $params = array()
) : string
string
array
Words to highlight. Words could be organized using the array or string.
callback
Callback method, used to transform (highlighting) text.
array
Array of additionall callback parameters passed through into it (first non-optional parameter is an HTML fragment for highlighting)
\Zend_Search_Lucene_Exception |
---|
string
loadHTML(string $data, boolean $storeContent= false
, string $defaultEncoding= ''
) : \Zend_Search_Lucene_Document_Html
string
boolean
string
HTML encoding, is used if it's not specified using Content-type HTTP-EQUIV meta tag.
\Zend_Search_Lucene_Document_Html
loadHTMLFile(string $file, boolean $storeContent= false
, string $defaultEncoding= ''
) : \Zend_Search_Lucene_Document_Html
string
boolean
string
HTML encoding, is used if it's not specified using Content-type HTTP-EQUIV meta tag.
\Zend_Search_Lucene_Document_Html
setExcludeNoFollowLinks(boolean $newValue)
boolean
_highlightNodeRecursive(\DOMNode $contextNode, array $wordsToHighlight, callback $callback, array $params)
\DOMNode
array
callback
Callback method, used to transform (highlighting) text.
array
Array of additionall callback parameters (first non-optional parameter is a text to transform)
_highlightTextNode(\DOMText $node, array $wordsToHighlight, callback $callback, array $params)
\DOMText
array
callback
Callback method, used to transform (highlighting) text.
array
Array of additionall callback parameters (first non-optional parameter is a text to transform)
\Zend_Search_Lucene_Exception |
---|
__construct(string $data, boolean $isFile, boolean $storeContent, string $defaultEncoding = ''
)
string
HTML string (may be HTML fragment, )
boolean
boolean
string
HTML encoding, is used if it's not specified using Content-type HTTP-EQUIV meta tag.
_retrieveNodeText(\DOMNode $node, $text)
We should exclude scripts, which may be not included into comment tags, CDATA sections,
\DOMNode
$boost : float
1.0
$_fields : array
array()
$_doc : \DOMDocument
$_excludeNoFollowLinks : boolean
false
If true then links with rel='nofollow' attribute are not included into document links.
$_headerLinks : array
array()
$_inlineTags : array
array('a', 'abbr', 'acronym', 'dfn', 'em', 'strong', 'code', 'samp', 'kbd', 'var', 'b', 'i', 'big', 'small', 'strike', 'tt', 'u', 'font', 'span', 'bdo', 'cite', 'del', 'ins', 'q', 'sub', 'sup')
$_links : array
array()