ILIAS  release_7 Revision v7.30-3-g800a261c036
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{
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 }
30 }
31}
An exception for terminatinating execution or to throw for unit testing.
__createLocateString()
build locate string in case of AND search
$query
foreach($_POST as $key=> $value) $res