35 include_once
'Services/Search/classes/class.ilAbstractSearch.php';
56 $this->mode = $a_mode;
81 echo "ilMDSearch::performSearch() no mode given";
98 $type .= implode(
"','",$this->
getFilter());
101 $in =
" AND obj_type IN ".$type;
111 $where = $this->__createContributeWhereCondition();
114 $query =
"SELECT rbac_id,obj_id,obj_type ".
116 "FROM il_meta_entity ".
122 $this->search_result->addEntry(
$row->rbac_id,
$row->obj_type,$this->__prepareFound(
$row),
$row->obj_id);
134 $where = $this->__createKeywordWhereCondition();
137 $query =
"SELECT rbac_id,obj_id,obj_type ".
139 "FROM il_meta_keyword ".
145 $this->search_result->addEntry(
$row->rbac_id,
$row->obj_type,$this->__prepareFound(
$row),
$row->obj_id);
155 $where = $this->__createTitleWhereCondition();
158 $query =
"SELECT rbac_id,obj_id,obj_type ".
160 "FROM il_meta_general ".
166 $this->search_result->addEntry(
$row->rbac_id,
$row->obj_type,$this->__prepareFound(
$row),
$row->obj_id);
176 $where = $this->__createDescriptionWhereCondition();
179 $query =
"SELECT rbac_id,obj_id,obj_type ".
181 "FROM il_meta_description ".
187 $this->search_result->addEntry(
$row->rbac_id,
$row->obj_type,$this->__prepareFound(
$row),
$row->obj_id);
__createLocateString()
build locate string in case of AND search
setFields($a_fields)
Set fields to search.
getFilter()
get object type to search in
Create styles array
The data for the language used.
if(php_sapi_name() !='cli') $in