ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLikeExerciseSearch Class Reference
+ Inheritance diagram for ilLikeExerciseSearch:
+ Collaboration diagram for ilLikeExerciseSearch:

Public Member Functions

 ilExerciseSearch (&$qp_obj)
 Constructor public.
 __createWhereCondition ()
- Public Member Functions inherited from ilExerciseSearch
 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
 setIdFilter ($a_id_filter)
 Set id filter Filters search by given object id.
 getIdFilter ()
 Get Id filter.
 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 37 of file class.ilLikeExerciseSearch.php.

Member Function Documentation

ilLikeExerciseSearch::__createWhereCondition ( )

Definition at line 50 of file class.ilLikeExerciseSearch.php.

References $ilDB.

{
global $ilDB;
$concat = $ilDB->concat(
array(
array('title','text'),
array('instruction','text')));
$and = " WHERE ( ";
$counter = 0;
foreach($this->query_parser->getQuotedWords() as $word)
{
if($counter++)
{
$and .= " OR ";
}
$and .= $ilDB->like($concat,'clob','%'.$word.'%',false);
}
return $and.") ";
}
ilLikeExerciseSearch::ilExerciseSearch ( $qp_obj)

Constructor public.

Reimplemented from ilExerciseSearch.

Definition at line 44 of file class.ilLikeExerciseSearch.php.

{
}

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