Core
3.2
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
•
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
Lib.FullSearch.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @package FDL
5
*/
6
/**
7
* Full Text Search document
8
*
9
* @author Anakeen
10
* @version $Id: $
11
* @package FDL
12
*/
13
/**
14
*/
15
16
function
getHighlight
(&
$doc
, $keys)
17
{
18
static
$oh = null;
19
if
(!$oh) {
20
$oh =
new
SearchHighlight
();
21
}
22
23
simpleQuery
(
$doc
->dbaccess, sprintf(
"select svalues from docread where id=%d"
,
$doc
->id) , $text,
true
,
true
);
24
$h = $oh->highlight($text, $keys);
25
$htext = nl2br($h);
26
27
return
$htext;
28
}
29
?>
SearchHighlight
Definition:
Class.SearchHighlight.php:22
getHighlight
getHighlight(&$doc, $keys)
Definition:
Lib.FullSearch.php:16
simpleQuery
simpleQuery($dbaccess, $query, &$result=array(), $singlecolumn=false, $singleresult=false, $useStrict=null)
Definition:
Lib.Common.php:484
$doc
$doc
Definition:
SetDocVaultIndex.php:39
← centre documentaire
© anakeen