ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ 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:31
ilLikeTestSearch\__createWhereCondition
__createWhereCondition()
Definition:
class.ilLikeTestSearch.php:32
ilTestSearch
Definition:
class.ilTestSearch.php:31
$counter
$counter
Definition:
shib_logout.php:170
components
ILIAS
Search
classes
Like
class.ilLikeTestSearch.php
Generated on Sat Oct 18 2025 23:03:39 for ILIAS by
1.9.4 (using
Doxyfile
)