19declare(strict_types=1);
35 public function setMode(
string $a_mode): void
37 $this->mode = $a_mode;
60 throw new InvalidArgumentException(
'ilMDSearch: no mode given');
72 $type .= implode(
"','", $this->
getFilter());
74 return " AND obj_type IN " . $type;
82 $where = $this->__createContributeWhereCondition();
85 $query =
"SELECT rbac_id,obj_id,obj_type " .
87 "FROM il_meta_entity " .
88 $where .
" " . $in .
' ';
90 $res = $this->db->query($query);
92 $this->search_result->addEntry(
94 (
string) $row->obj_type,
95 $this->__prepareFound($row),
97 (
string) $row->obj_type
110 $where = $this->__createKeywordWhereCondition();
113 $query =
"SELECT rbac_id,obj_id,obj_type " .
115 "FROM il_meta_keyword " .
116 $where .
" " . $in .
' ';
118 $res = $this->db->query($query);
120 $this->search_result->addEntry(
122 (
string) $row->obj_type,
123 $this->__prepareFound($row),
125 (
string) $row->obj_type
135 $where = $this->__createTitleWhereCondition();
138 $query =
"SELECT rbac_id,obj_id,obj_type " .
140 "FROM il_meta_general " .
141 $where .
" " . $in .
' ';
143 $res = $this->db->query($query);
145 $this->search_result->addEntry(
147 (
string) $row->obj_type,
148 $this->__prepareFound($row),
150 (
string) $row->obj_type
160 $where = $this->__createDescriptionWhereCondition();
163 $query =
"SELECT rbac_id,obj_id,obj_type " .
165 "FROM il_meta_description " .
166 $where .
" " . $in .
' ';
168 $res = $this->db->query($query);
170 $this->search_result->addEntry(
172 (
string) $row->obj_type,
173 $this->__prepareFound($row),
175 (
string) $row->obj_type
setFields(array $a_fields)
ilSearchResult $search_result
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...