ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilUserDefinedFieldSearch Class Reference

Class ilUserSearch. More...

+ Inheritance diagram for ilUserDefinedFieldSearch:
+ Collaboration diagram for ilUserDefinedFieldSearch:

Public Member Functions

 performSearch ()
 
- Public Member Functions inherited from ilAbstractSearch
 __construct ($qp_obj)
 Constructor public. More...
 
 setFields ($a_fields)
 Set fields to search. More...
 
 getFields ()
 Get fields to search. More...
 
 setFilter ($a_filter)
 set object type to search in More...
 
 setIdFilter ($a_id_filter)
 Set id filter Filters search by given object id. More...
 
 getIdFilter ()
 Get Id filter. More...
 
 appendToFilter ($a_type)
 Append object type to filter. More...
 
 getFilter ()
 get object type to search in More...
 
 __createLocateString ()
 build locate string in case of AND search More...
 
 __prepareFound (&$row)
 
 performSearch ()
 

Additional Inherited Members

- Data Fields inherited from ilAbstractSearch
 $db = null
 
 $query_parser = null
 
 $search_result = null
 
 $object_types
 

Detailed Description

Class ilUserSearch.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 14 of file class.ilUserDefinedFieldSearch.php.

Member Function Documentation

◆ performSearch()

ilUserDefinedFieldSearch::performSearch ( )

Definition at line 16 of file class.ilUserDefinedFieldSearch.php.

References $query, $res, $row, ilAbstractSearch\$search_result, ilAbstractSearch\__createLocateString(), and ilDBConstants\FETCHMODE_OBJECT.

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  }
__createLocateString()
build locate string in case of AND search
foreach($_POST as $key=> $value) $res
$query
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: