Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
Method.GroupSearch.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5  * @package FDL
6 */
7 /**
8  * Grouped searches
9  *
10  * @author Anakeen 2004
11  * @version $Id: Method.GroupSearch.php,v 1.3 2005/06/28 08:37:46 eric Exp $
12  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13  * @package FDL
14  * @subpackage GED
15  */
16 /**
17  */
18 
19 var $defaultedit = "FDL:EDITBODYCARD";
20 var $defaultview = "FDL:VIEWBODYCARD";
21 
22 function ComputeQuery($keyword = "", $famid = - 1, $latest = "yes", $sensitive = false, $dirid = - 1, $subfolder = true)
23 {
24  $tidsearch = $this->getTValue("SEG_IDCOND");
25  $wsql = array();
26  $query[] = "select * from doc1 limit 0;"; // null query
27  foreach ($tidsearch as $k => $v) {
28  $doc = new_Doc($this->dbaccess, $v);
29 
30  if (method_exists($doc, "getQuery")) {
31  $doc->setValue("SE_IDCFLD", $this->getValue("SE_IDCFLD"));
32  $q = $doc->getQuery();
33 
34  $wsql[] = $q[0];
35  }
36  }
37  if (count($wsql) > 0) {
38  $query = $wsql;
39  }
40 
41  return $query;
42 }
43 /**
44  * return false : is never staticSql
45  * @return bool
46  */
47 function isStaticSql()
48 {
49  return false;
50 }
51 ?>
← centre documentaire © anakeen - published under CC License - Dynacase