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