ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilUserDefinedFieldSearch Class Reference
+ Inheritance diagram for ilUserDefinedFieldSearch:
+ Collaboration diagram for ilUserDefinedFieldSearch:

Public Member Functions

 ilUserDefinedFieldSearch (&$query_parser)
 Constructor public.
performSearch ()
- Public Member Functions inherited from ilAbstractSearch
 ilAbstractSearch (&$qp_obj)
 Constructor public.
 setFields ($a_fields)
 Set fields to search.
 getFields ()
 Get fields to search.
 setFilter ($a_filter)
 set object type to search in
 appendToFilter ($a_type)
 Append object type to filter.
 getFilter ()
 get object type to search in
 __createLocateString ()
 build locate string in case of AND search
 __prepareFound (&$row)

Additional Inherited Members

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

Detailed Description

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

Member Function Documentation

ilUserDefinedFieldSearch::ilUserDefinedFieldSearch ( $query_parser)

Constructor public.

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

References ilAbstractSearch\$query_parser, and ilAbstractSearch\ilAbstractSearch().

Referenced by ilLikeUserDefinedFieldSearch\ilLikeUserDefinedFieldSearch().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilUserDefinedFieldSearch::performSearch ( )

Reimplemented from ilAbstractSearch.

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

References $res, ilAbstractSearch\$search_result, ilAbstractSearch\__createLocateString(), and DB_FETCHMODE_OBJECT.

{
$where = $this->__createWhereCondition();
$locate = $this->__createLocateString();
$query = "SELECT usr_id ".
$locate.
"FROM usr_defined_data ".
$where;
$res = $this->db->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$this->search_result->addEntry($row->usr_id,'usr',$this->__prepareFound($row));
}
}

+ Here is the call graph for this function:


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