Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
Class.GroupSearch.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * Grouped searches
8  */
9 namespace Dcp\Core;
11 {
12  var $defaultedit = "FDL:EDITBODYCARD";
13  var $defaultview = "FDL:VIEWBODYCARD";
14 
15  function ComputeQuery($keyword = "", $famid = - 1, $latest = "yes", $sensitive = false, $dirid = - 1, $subfolder = true, $full = false)
16  {
17  $tidsearch = $this->getMultipleRawValues("SEG_IDCOND");
18 
19  $query = array();
20  foreach ($tidsearch as $k => $v) {
21  /**
22  * @var \Dcp\Family\Search $doc
23  */
24  $doc = new_Doc($this->dbaccess, $v);
25  $err = $doc->control("execute");
26 
27  if ($err == "" && method_exists($doc, "getQuery")) {
28 
29  $doc->setValue("SE_IDCFLD", $this->getRawValue("SE_IDCFLD"));
30  $q = $doc->getQuery();
31 
32  $query[] = $q[0];
33  }
34  }
35 
36  return $query;
37  }
38  /**
39  * return false : is never staticSql
40  * @return bool
41  */
42  function isStaticSql()
43  {
44  return false;
45  }
46 }
$full
$sensitive
getMultipleRawValues($idAttr, $def="", $index=-1)
Definition: Class.Doc.php:3240
ComputeQuery($keyword="", $famid=-1, $latest="yes", $sensitive=false, $dirid=-1, $subfolder=true, $full=false)
new_Doc($dbaccess, $id= '', $latest=false)
$keyword
if(($docid!==0)&&(!is_numeric($docid))) $query
if($file) if($subject==""&&$file) if($subject=="") $err
getRawValue($idAttr, $def="")
Definition: Class.Doc.php:3117
$latest
← centre documentaire © anakeen