Definition at line 30 of file class.ilLikeForumSearch.php.
◆ __createPostAndCondition()
| ilLikeForumSearch::__createPostAndCondition |
( |
| ) |
|
Definition at line 32 of file class.ilLikeForumSearch.php.
32 : string
33 {
34
35
36
37
38
39 $concat = $this->db->concat(
40 array(
41 array('pos_subject','text'),
42 array('pos_message','text'))
43 );
44
45 $and = " AND ( ";
46 $counter = 0;
47 foreach ($this->query_parser->getQuotedWords() as $word) {
48 if ($counter++) {
49 $and .= " OR";
50 }
51 #$and .= $concat;
52 #$and .= ("LIKE ('%".$word."%')");
53 $and .= $this->db->like($concat, 'clob', '%' . $word . '%');
54 }
55 return $and . ") ";
56 }
◆ __createTopicAndCondition()
| ilLikeForumSearch::__createTopicAndCondition |
( |
| ) |
|
Definition at line 58 of file class.ilLikeForumSearch.php.
58 : string
59 {
60 $field = 'thr_subject ';
61 $and = " AND( ";
62
63 $counter = 0;
64 foreach ($this->query_parser->getQuotedWords() as $word) {
65 if ($counter++) {
66 $and .= " OR ";
67 }
68 #$and .= $field;
69 #$and .= ("LIKE ('%".$word."%')");
70 $and .= $this->db->like($field, 'text', '%' . $word . '%');
71 }
72 return $and . " ) ";
73 }
The documentation for this class was generated from the following file: