[ Index ]

PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008]

title

Body

[close]

/search/Zend/Search/Lucene/Document/ -> Html.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
File Size: 310 lines (9 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

Zend_Search_Lucene_Document_Html:: (10 methods):
  __construct()
  _retrieveNodeText()
  getLinks()
  getHeaderLinks()
  loadHTML()
  loadHTMLFile()
  _highlightTextNode()
  _highlightNode()
  highlight()
  getHTML()


Class: Zend_Search_Lucene_Document_Html  - X-Ref

HTML document.

__construct($data, $isFile, $storeContent)   X-Ref
Object constructor

param: string  $data
param: boolean $isFile
param: boolean $storeContent

_retrieveNodeText(DOMNode $node, &$text)   X-Ref
Get node text

We should exclude scripts, which may be not included into comment tags, CDATA sections,

param: DOMNode $node
param: string &$text

getLinks()   X-Ref
Get document HREF links

return: array

getHeaderLinks()   X-Ref
Get document header links

return: array

loadHTML($data, $storeContent = false)   X-Ref
Load HTML document from a string

param: string $data
param: boolean $storeContent
return: Zend_Search_Lucene_Document_Html

loadHTMLFile($file, $storeContent = false)   X-Ref
Load HTML document from a file

param: string $file
param: boolean $storeContent
return: Zend_Search_Lucene_Document_Html

_highlightTextNode(DOMText $node, $wordsToHighlight, $color)   X-Ref
Highlight text in text node

param: DOMText $node
param: array   $wordsToHighlight
param: string  $color

_highlightNode(DOMNode $contextNode, $wordsToHighlight, $color)   X-Ref
highlight words in content of the specified node

param: DOMNode $contextNode
param: array $wordsToHighlight
param: string $color

highlight($words, $color = ')   X-Ref
Highlight text with specified color

param: string|array $words
param: string $color
return: string

getHTML()   X-Ref
Get HTML

return: string



Generated: Wed Jan 14 11:33:29 2009 Cross-referenced by PHPXref 0.7