Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
fulldsearch.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: fulldsearch.php,v 1.2 2007/12/06 10:51:35 eric Exp $
11  * @package FDL
12  * @subpackage GED
13  */
14 /**
15  */
16 
17 include_once ("FGSEARCH/fullsearchresult.php");
18 include_once ("FDL/modcard.php");
19 /**
20  * Fulltext Search document
21  * @param Action &$action current action
22  * @global keyword string Http var : word to search in any values
23  * @global famid int Http var : restrict to this family identioficator
24  * @global start int Http var : page number
25  * @global dirid int Http var : search identifier
26  */
28 {
29 
30  $famid = GetHttpVars("famid", 0);
31 
32  $dbaccess = $action->dbaccess;
33 
34  if ($famid > 0) {
35  $fdoc = new_doc($dbaccess, $famid);
36  if (!$fdoc->isAffected()) $action->exitError(sprintf(_("Family %s not exist") , $famid));
38  $search->setValue("se_famid", $famid);
39  $search->setValue("se_latest", "yes");
40 
42 
43  $err = $search->Add();
44 
45  if ($err != "") $action->exitError($err);
46  $search->preRefresh();
47 
48  setHttpVar("dirid", $search->id);
49  fullsearchresult($action);
50  }
51 }
global $action
fullsearchresult(Action &$action)
fulldsearch(Action &$action)
Definition: fulldsearch.php:27
setPostVars(Doc &$doc, &$info=array())
Definition: modcard.php:259
exitError($texterr, $exit=true, $code="")
$search
$dbaccess
Definition: checkVault.php:17
createTmpDoc($dbaccess, $fromid, $defaultvalue=true)
if($file) if($subject==""&&$file) if($subject=="") $err
← centre documentaire © anakeen