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