ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
class.ilLikeMediaCastSearch.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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.