ILIAS
eassessment Revision 61809
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
class.ilObjectSearchFactory.php
Go to the documentation of this file.
1
<?php
2
/*
3
+-----------------------------------------------------------------------------+
4
| ILIAS open source |
5
+-----------------------------------------------------------------------------+
6
| Copyright (c) 1998-2001 ILIAS open source, University of Cologne |
7
| |
8
| This program is free software; you can redistribute it and/or |
9
| modify it under the terms of the GNU General Public License |
10
| as published by the Free Software Foundation; either version 2 |
11
| of the License, or (at your option) any later version. |
12
| |
13
| This program is distributed in the hope that it will be useful, |
14
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
15
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16
| GNU General Public License for more details. |
17
| |
18
| You should have received a copy of the GNU General Public License |
19
| along with this program; if not, write to the Free Software |
20
| Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21
+-----------------------------------------------------------------------------+
22
*/
23
24
include_once
'Services/Search/classes/class.ilSearchSettings.php'
;
37
class
ilObjectSearchFactory
38
{
39
46
public
static
function
_getObjectSearchInstance
($query_parser)
47
{
48
include_once
'./Services/Search/classes/class.ilSearchSettings.php'
;
49
50
$search_settings =
new
ilSearchSettings
();
51
52
if
($search_settings->enabledIndex())
53
{
54
// FULLTEXT
55
include_once
'Services/Search/classes/Fulltext/class.ilFulltextObjectSearch.php'
;
56
return
new
ilFulltextObjectSearch
($query_parser);
57
}
58
else
59
{
60
// LIKE
61
include_once
'Services/Search/classes/Like/class.ilLikeObjectSearch.php'
;
62
return
new
ilLikeObjectSearch
($query_parser);
63
}
64
65
}
66
76
public
static
function
_getShopObjectSearchInstance
($query_parser)
77
{
78
include_once
'Services/Search/classes/Like/class.ilLikeShopObjectSearch.php'
;
79
return
new
ilLikeShopObjectSearch
($query_parser);
80
}
81
88
public
static
function
_getShopMetaDataSearchInstance
($query_parser)
89
{
90
include_once
'Services/Search/classes/Like/class.ilLikeShopMetaDataSearch.php'
;
91
return
new
ilLikeShopMetaDataSearch
($query_parser);
92
}
93
100
public
static
function
_getMetaDataSearchInstance
($query_parser)
101
{
102
if
(
ilSearchSettings::getInstance
()->enabledIndex())
103
{
104
include_once
'Services/Search/classes/Fulltext/class.ilFulltextMetaDataSearch.php'
;
105
return
new
ilFulltextMetaDataSearch
($query_parser);
106
}
107
else
108
{
109
include_once
'Services/Search/classes/Like/class.ilLikeMetaDataSearch.php'
;
110
return
new
ilLikeMetaDataSearch
($query_parser);
111
}
112
}
113
120
public
static
function
_getLMContentSearchInstance
($query_parser)
121
{
122
if
(
ilSearchSettings::getInstance
()->enabledIndex())
123
{
124
include_once
'Services/Search/classes/Fulltext/class.ilFulltextLMContentSearch.php'
;
125
return
new
ilFulltextLMContentSearch
($query_parser);
126
}
127
else
128
{
129
include_once
'./Services/Search/classes/Like/class.ilLikeLMContentSearch.php'
;
130
return
new
ilLikeLMContentSearch
($query_parser);
131
}
132
133
}
134
141
public
static
function
_getGlossaryDefinitionSearchInstance
($query_parser)
142
{
143
if
(
ilSearchSettings::getInstance
()->enabledIndex())
144
{
145
include_once
'Services/Search/classes/Fulltext/class.ilFulltextGlossaryDefinitionSearch.php'
;
146
return
new
ilFulltextGlossaryDefinitionSearch
($query_parser);
147
}
148
else
149
{
150
include_once
'Services/Search/classes/Like/class.ilLikeGlossaryDefinitionSearch.php'
;
151
return
new
ilLikeGlossaryDefinitionSearch
($query_parser);
152
}
153
}
154
161
public
static
function
_getExerciseSearchInstance
($query_parser)
162
{
163
if
(
ilSearchSettings::getInstance
()->enabledIndex())
164
{
165
include_once
'Services/Search/classes/Fulltext/class.ilFulltextExerciseSearch.php'
;
166
return
new
ilFulltextExerciseSearch
($query_parser);
167
}
168
else
169
{
170
include_once
'Services/Search/classes/Like/class.ilLikeExerciseSearch.php'
;
171
return
new
ilLikeExerciseSearch
($query_parser);
172
}
173
174
}
175
182
public
static
function
_getMediacastSearchInstance
($query_parser)
183
{
184
if
(
ilSearchSettings::getInstance
()->enabledIndex())
185
{
186
include_once
'Services/Search/classes/Fulltext/class.ilFulltextMediaCastSearch.php'
;
187
return
new
ilFulltextMediaCastSearch
($query_parser);
188
}
189
else
190
{
191
include_once
'Services/Search/classes/Like/class.ilLikeMediaCastSearch.php'
;
192
return
new
ilLikeMediaCastSearch
($query_parser);
193
}
194
195
}
196
203
public
static
function
_getTestSearchInstance
($query_parser)
204
{
205
if
(
ilSearchSettings::getInstance
()->enabledIndex())
206
{
207
include_once
'Services/Search/classes/Fulltext/class.ilFulltextTestSearch.php'
;
208
return
new
ilFulltextTestSearch
($query_parser);
209
}
210
else
211
{
212
include_once
'Services/Search/classes/Like/class.ilLikeTestSearch.php'
;
213
return
new
ilLikeTestSearch
($query_parser);
214
}
215
}
216
223
public
static
function
_getMediaPoolSearchInstance
($query_parser)
224
{
225
if
(
ilSearchSettings::getInstance
()->enabledIndex())
226
{
227
include_once
'Services/Search/classes/Fulltext/class.ilFulltextMediaPoolSearch.php'
;
228
return
new
ilFulltextMediaPoolSearch
($query_parser);
229
}
230
else
231
{
232
include_once
'Services/Search/classes/Like/class.ilLikeMediaPoolSearch.php'
;
233
return
new
ilLikeMediaPoolSearch
($query_parser);
234
}
235
}
236
243
public
static
function
_getAdvancedSearchInstance
($query_parser)
244
{
245
if
(
ilSearchSettings::getInstance
()->enabledIndex())
246
{
247
include_once
'Services/Search/classes/Fulltext/class.ilFulltextAdvancedSearch.php'
;
248
return
new
ilFulltextAdvancedSearch
($query_parser);
249
}
250
else
251
{
252
include_once
'./Services/Search/classes/Like/class.ilLikeAdvancedSearch.php'
;
253
return
new
ilLikeAdvancedSearch
($query_parser);
254
}
255
}
256
263
public
function
_getWebresourceSearchInstance
($query_parser)
264
{
265
if
(
ilSearchSettings::getInstance
()->enabledIndex())
266
{
267
include_once
'Services/Search/classes/Fulltext/class.ilFulltextWebresourceSearch.php'
;
268
return
new
ilFulltextWebresourceSearch
($query_parser);
269
}
270
else
271
{
272
include_once
'Services/Search/classes/Like/class.ilLikeWebresourceSearch.php'
;
273
return
new
ilLikeWebresourceSearch
($query_parser);
274
}
275
}
276
283
public
static
function
_getUserSearchInstance
($query_parser)
284
{
285
include_once
'Services/Search/classes/Like/class.ilLikeUserSearch.php'
;
286
return
new
ilLikeUserSearch
($query_parser);
287
}
288
295
public
static
function
_getUserDefinedFieldSearchInstance
($query_parser)
296
{
297
include_once
'Services/Search/classes/Like/class.ilLikeUserDefinedFieldSearch.php'
;
298
return
new
ilLikeUserDefinedFieldSearch
($query_parser);
299
}
300
309
public
static
function
_getAdvancedMDSearchInstance
($query_parser)
310
{
311
include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDLikeSearch.php'
);
312
return
new
ilAdvancedMDLikeSearch
($query_parser);
313
}
314
}
315
?>
Services
Search
classes
class.ilObjectSearchFactory.php
Generated on Mon Apr 25 2016 19:01:41 for ILIAS by
1.8.1.2 (using
Doxyfile
)