Core  3.2
PHP API documentation
 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 ?>
getHighlight(&$doc, $keys)
simpleQuery($dbaccess, $query, &$result=array(), $singlecolumn=false, $singleresult=false, $useStrict=null)
Definition: Lib.Common.php:484
← centre documentaire © anakeen