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