3 declare(strict_types=1);
42 $concat =
' keyword ';
45 foreach ($this->query_parser->getQuotedWords() as $word) {
49 $where .= $this->db->like($concat,
'text',
'%' . $word .
'%');
51 #$where .= (" LIKE ('%".$word."%')"); 61 foreach ($this->query_parser->getQuotedWords() as $word) {
66 #$where .= (" LIKE ('%".$word."%')"); 67 $where .= $this->db->like($concat,
'text',
'%' . $word .
'%');
80 $concat = $this->db->concat(
82 array(
'title',
'text'),
83 array(
'coverage',
'text'))
89 foreach ($this->query_parser->getQuotedWords() as $word) {
94 #$where .= (" LIKE ('%".$word."%')"); 95 $where .= $this->db->like($concat,
'text',
'%' . $word .
'%');
102 $concat =
' description ';
105 foreach ($this->query_parser->getQuotedWords() as $word) {
110 #$where .= (" LIKE ('%".$word."%')"); 111 $where .= $this->db->like($concat,
'text',
'%' . $word .
'%');
113 return $where .
') ';