ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
17  function &performSearch()
18  {
19  $where = $this->__createWhereCondition();
20  $locate = $this->__createLocateString();
21 
22  $query = "SELECT usr_id ".
23  $locate.
24  "FROM udf_text ".
25  $where;
26  $res = $this->db->query($query);
27  while($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT))
28  {
29  $this->search_result->addEntry($row->usr_id,'usr',$this->__prepareFound($row));
30  }
31  return $this->search_result;
32  }
33 }
34 ?>
__createLocateString()
build locate string in case of AND search