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