ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
4include_once 'Services/Search/classes/class.ilAbstractSearch.php';
5
15{
21 {
22 parent::ilAbstractSearch($query_parser);
23 }
24
25 function &performSearch()
26 {
27 $where = $this->__createWhereCondition();
28 $locate = $this->__createLocateString();
29
30 $query = "SELECT usr_id ".
31 $locate.
32 "FROM udf_text ".
33 $where;
34 $res = $this->db->query($query);
35 while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
36 {
37 $this->search_result->addEntry($row->usr_id,'usr',$this->__prepareFound($row));
38 }
40 }
41}
42?>
const DB_FETCHMODE_OBJECT
Definition: class.ilDB.php:11
__createLocateString()
build locate string in case of AND search
ilUserDefinedFieldSearch(&$query_parser)
Constructor @access public.