◆ __createWhereCondition()
ilLikeExerciseSearch::__createWhereCondition |
( |
| ) |
|
Definition at line 39 of file class.ilLikeExerciseSearch.php.
40 {
42
44
45 $concat =
$ilDB->concat(
46 array(
47 array('title','text'),
48 array('instruction','text'))
49 );
50
51 $and = " WHERE ( ";
52 $counter = 0;
53 foreach ($this->query_parser->getQuotedWords() as $word) {
54 if ($counter++) {
55 $and .= " OR ";
56 }
57 $and .=
$ilDB->like($concat,
'clob',
'%' . $word .
'%',
false);
58 }
59 return $and . ") ";
60 }
References $DIC, and $ilDB.
The documentation for this class was generated from the following file: