ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilLikeMediaCastSearch.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
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}
Class ilLikeMediaCastSearch.
$counter