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