ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilUserDefinedFieldSearch.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once 'Services/Search/classes/class.ilAbstractSearch.php';
5 
15 {
16  public function performSearch()
17  {
18  $where = $this->__createWhereCondition();
19  $locate = $this->__createLocateString();
20 
21  $query = "SELECT usr_id " .
22  $locate .
23  "FROM udf_text " .
24  $where;
25  $res = $this->db->query($query);
26  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
27  $this->search_result->addEntry($row->usr_id, 'usr', $this->__prepareFound($row));
28  }
29  return $this->search_result;
30  }
31 }
__createLocateString()
build locate string in case of AND search
foreach($_POST as $key=> $value) $res
$query
$row