ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilUserDefinedFieldSearch Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 performSearch ()
 
- Public Member Functions inherited from ilAbstractSearch
 __construct (ilQueryParser $qp_obj)
 
 setFields (array $a_fields)
 
 getFields ()
 
 setFilter (array $a_filter)
 
 setIdFilter (array $a_id_filter)
 
 getIdFilter ()
 
 appendToFilter (string $a_type)
 
 getFilter ()
 
 __createLocateString ()
 
 __prepareFound (object $row)
 
 performSearch ()
 

Additional Inherited Members

- Protected Attributes inherited from ilAbstractSearch
ilDBInterface $db
 
ilQueryParser $query_parser
 
ilSearchResult $search_result
 
array $object_types
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilUserSearch

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

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

Member Function Documentation

◆ performSearch()

ilUserDefinedFieldSearch::performSearch ( )

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

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

32  {
33  $where = $this->__createWhereCondition();
34  $locate = $this->__createLocateString();
35 
36  $query = "SELECT usr_id " .
37  $locate .
38  "FROM udf_text " .
39  $where;
40  $res = $this->db->query($query);
41  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
42  $this->search_result->addEntry((int) $row->usr_id, 'usr', $this->__prepareFound($row));
43  }
44  return $this->search_result;
45  }
$res
Definition: ltiservices.php:69
$query
ilSearchResult $search_result
+ Here is the call graph for this function:

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