55 var
$object_types = array(
'cat',
'dbk',
'crs',
'fold',
'frm',
'grp',
'lm',
'sahs',
'glo',
'mep',
'htlm',
'exc',
'file',
'qpl',
'tst',
'svy',
'spl',
56 'chat',
'icrs',
'icla',
'webr',
'mcst',
'sess',
'pg',
'st',
'wiki');
67 $this->query_parser =& $qp_obj;
70 include_once
'Services/Search/classes/class.ilSearchResult.php';
82 $this->fields = $a_fields;
92 return $this->fields ? $this->fields : array();
102 if(is_array($a_filter))
104 $this->object_types = $a_filter;
115 if(is_array($this->object_types))
117 if(in_array($a_type,$this->object_types))
122 $this->object_types[] = $a_type;
135 return $this->object_types ? $this->object_types : array();
145 if($this->query_parser->getCombination() ==
'or')
149 if(count($this->fields) > 1)
151 $complete_str =
'CONCAT(';
152 $complete_str .= implode(
',',$this->fields);
153 $complete_str .=
')';
157 $complete_str = $this->fields[0];
161 foreach($this->query_parser->getQuotedWords() as $word)
163 $locate .= (
", LOCATE('".$word.
"',".$complete_str.
") ");
164 $locate .= (
"as found".$counter++.
" ");
172 if($this->query_parser->getCombination() ==
'or')
177 foreach($this->query_parser->getQuotedWords() as $word)
179 $res_found =
"found".$counter++;
180 $found[] = $row->$res_found;
182 return $found ? $found : array();
187 echo
"Should be overwritten.";