ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
class.ilLikeExerciseSearch.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
30
class
ilLikeExerciseSearch
extends
ilExerciseSearch
31
{
32
public
function
__createWhereCondition
(): string
33
{
34
$concat = $this->db->concat(
35
array(
36
array(
'title'
,
'text'
),
37
array(
'instruction'
,
'text'
))
38
);
39
40
$and =
" WHERE ( "
;
41
$counter = 0;
42
foreach
($this->query_parser->getQuotedWords() as $word) {
43
if
($counter++) {
44
$and .=
" OR "
;
45
}
46
$and .= $this->db->like($concat,
'clob'
,
'%'
. $word .
'%'
,
false
);
47
}
48
return
$and .
") "
;
49
}
50
}
ilLikeExerciseSearch
Definition:
class.ilLikeExerciseSearch.php:30
ilLikeExerciseSearch\__createWhereCondition
__createWhereCondition()
Definition:
class.ilLikeExerciseSearch.php:32
ilExerciseSearch
Definition:
class.ilExerciseSearch.php:30
components
ILIAS
Search
classes
Like
class.ilLikeExerciseSearch.php
Generated on Wed Sep 3 2025 23:03:45 for ILIAS by
1.8.13 (using
Doxyfile
)