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