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