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