Definition at line 37 of file class.ilLikeForumSearch.php.
◆ __createPostAndCondition()
ilLikeForumSearch::__createPostAndCondition |
( |
| ) |
|
Definition at line 39 of file class.ilLikeForumSearch.php.
40 {
42
43
44
45
46
47
48 $concat =
$ilDB->concat(
49 array(
50 array('pos_subject','text'),
51 array('pos_message','text'))
52 );
53
54 $and = " AND ( ";
56 foreach ($this->query_parser->getQuotedWords() as $word) {
58 $and .= " OR";
59 }
60 #$and .= $concat;
61 #$and .= ("LIKE ('%".$word."%')");
62 $and .=
$ilDB->like($concat,
'clob',
'%' . $word .
'%');
63 }
64 return $and . ") ";
65 }
References $counter, and $ilDB.
◆ __createTopicAndCondition()
ilLikeForumSearch::__createTopicAndCondition |
( |
| ) |
|
Definition at line 67 of file class.ilLikeForumSearch.php.
68 {
70
71 $field = 'thr_subject ';
72 $and = " AND( ";
73
75 foreach ($this->query_parser->getQuotedWords() as $word) {
77 $and .= " OR ";
78 }
79 #$and .= $field;
80 #$and .= ("LIKE ('%".$word."%')");
81 $and .=
$ilDB->like($field,
'text',
'%' . $word .
'%');
82 }
83 return $and . " ) ";
84 }
References $counter, and $ilDB.
The documentation for this class was generated from the following file: