ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilLikeExerciseSearch.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
31{
32 public function __createWhereCondition(): string
33 {
34 $concat = $this->db->concat(
35 array(
36 array('title','text'),
37 array('instruction','text'))
38 );
39
40 $and = " WHERE ( ";
41 $counter = 0;
42 foreach ($this->query_parser->getQuotedWords() as $word) {
43 if ($counter++) {
44 $and .= " OR ";
45 }
46 $and .= $this->db->like($concat, 'clob', '%' . $word . '%', false);
47 }
48 return $and . ") ";
49 }
50}
$counter