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