ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
class.ilLikeGlossaryDefinitionSearch.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
30
class
ilLikeGlossaryDefinitionSearch
extends
ilGlossaryDefinitionSearch
31
{
32
public
function
__createWhereCondition
(): string
33
{
34
$concat =
" term "
;
35
36
$and =
" WHERE ( "
;
37
$counter
= 0;
38
foreach
($this->query_parser->getQuotedWords() as $word) {
39
if
(
$counter
++) {
40
$and .=
" OR"
;
41
}
42
$and .= $this->db->like($concat,
'text'
,
'%'
. $word .
'%'
);
43
#$and .= $concat;
44
#$and .= ("LIKE ('%"
.$word."%')");
45
}
46
return
$and .
") "
;
47
}
48
}
ilGlossaryDefinitionSearch
Definition:
class.ilGlossaryDefinitionSearch.php:31
ilLikeGlossaryDefinitionSearch
Definition:
class.ilLikeGlossaryDefinitionSearch.php:31
ilLikeGlossaryDefinitionSearch\__createWhereCondition
__createWhereCondition()
Definition:
class.ilLikeGlossaryDefinitionSearch.php:32
$counter
$counter
Definition:
shib_logout.php:170
components
ILIAS
Search
classes
Like
class.ilLikeGlossaryDefinitionSearch.php
Generated on Sat Oct 18 2025 23:03:39 for ILIAS by
1.9.4 (using
Doxyfile
)