◆ __createWhereCondition()
ilLikeObjectSearch::__createWhereCondition |
( |
| ) |
|
Definition at line 39 of file class.ilLikeObjectSearch.php.
40 {
42
44
45
46
47
48
49
50
51 $concat =
$ilDB->concat(
52 array(
53 array('title','text'),
54 array('description','text'))
55 );
56
57
58 $where = "WHERE (";
59 $counter = 0;
60 foreach ($this->query_parser->getQuotedWords() as $word) {
61 if ($counter++) {
62 $where .= "OR";
63 }
64
65 $where .=
$ilDB->like($concat,
'text',
'%' . $word .
'%');
66
67 #$where .= $concat;
68 #$where .= ("LIKE ('%".$word."%') ");
69 }
70 $where .= ') ';
71 return $where;
72 }
References $DIC, and $ilDB.
The documentation for this class was generated from the following file: