ILIAS  release_8 Revision v8.24
ilLikeExerciseSearch Class Reference
+ Inheritance diagram for ilLikeExerciseSearch:
+ Collaboration diagram for ilLikeExerciseSearch:

Public Member Functions

 __createWhereCondition ()
 
- Public Member Functions inherited from ilExerciseSearch
 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

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

Member Function Documentation

◆ __createWhereCondition()

ilLikeExerciseSearch::__createWhereCondition ( )

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

39 : string
40 {
41 $concat = $this->db->concat(
42 array(
43 array('title','text'),
44 array('instruction','text'))
45 );
46
47 $and = " WHERE ( ";
48 $counter = 0;
49 foreach ($this->query_parser->getQuotedWords() as $word) {
50 if ($counter++) {
51 $and .= " OR ";
52 }
53 $and .= $this->db->like($concat, 'clob', '%' . $word . '%', false);
54 }
55 return $and . ") ";
56 }

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