2007-07-09 21:12:16 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Global Search Engine for Moodle
|
|
|
|
*
|
2008-03-31 22:22:20 +00:00
|
|
|
* @package search
|
|
|
|
* @category core
|
|
|
|
* @subpackage document_wrappers
|
|
|
|
* @author Valery Fremaux [valery.fremaux@club-internet.fr] > 1.8
|
|
|
|
* @date 2008/03/31
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
|
|
|
*
|
|
|
|
* this is a format handler for getting text out of a standard html format
|
2007-07-09 21:12:16 +00:00
|
|
|
* so it can be indexed by Lucene search engine
|
|
|
|
*/
|
|
|
|
|
2008-03-31 22:22:20 +00:00
|
|
|
/**
|
|
|
|
* @param object $resource
|
|
|
|
*/
|
2008-06-25 17:31:23 +00:00
|
|
|
function get_text_for_indexing_html(&$resource, $directfile = ''){
|
2007-07-09 21:12:16 +00:00
|
|
|
|
|
|
|
// wraps to htm handler
|
|
|
|
include_once 'physical_htm.php';
|
2008-06-25 17:31:23 +00:00
|
|
|
return get_text_for_indexing_htm($resource, $directfile);
|
2007-07-09 21:12:16 +00:00
|
|
|
}
|
|
|
|
?>
|