ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilObjectSearchFactory Class Reference
+ Collaboration diagram for ilObjectSearchFactory:

Static Public Member Functions

static _getObjectSearchInstance ($query_parser)
 get reference of ilFulltext/LikeObjectSearch. More...
 
static getByTypeSearchInstance ($a_object_type, $a_query_parser)
 
static _getMetaDataSearchInstance ($query_parser)
 get reference of ilFulltext/LikeMetaDataSearch. More...
 
static _getLMContentSearchInstance ($query_parser)
 get reference of ilFulltextLMContentSearch More...
 
static _getForumSearchInstance ($query_parser)
 get reference of ilFulltextForumSearch More...
 
static _getGlossaryDefinitionSearchInstance ($query_parser)
 get reference of ilFulltextGlossaryDefinitionSearch More...
 
static _getExerciseSearchInstance ($query_parser)
 get reference of ilFulltextExerciseSearch More...
 
static _getMediacastSearchInstance ($query_parser)
 get reference of ilFulltextMediacastSearch More...
 
static _getTestSearchInstance ($query_parser)
 get reference of ilFulltextTestSearch More...
 
static _getMediaPoolSearchInstance ($query_parser)
 get reference of ilFulltextMediapoolSearch More...
 
static _getAdvancedSearchInstance ($query_parser)
 get reference of ilFulltextAdvancedSearch More...
 
static _getWebresourceSearchInstance ($query_parser)
 get reference of ilFulltextWebresourceSearch More...
 
static _getUserSearchInstance ($query_parser)
 get reference of ilLikeUserSearch More...
 
static _getUserDefinedFieldSearchInstance ($query_parser)
 get reference of ilLikeUserDefinedFieldSearch More...
 
static getUserMultiFieldSearchInstance ($query_parser)
 
static _getWikiContentSearchInstance ($query_parser)
 get reference of ilFulltextWikiContentSearch More...
 
static _getAdvancedMDSearchInstance ($query_parser)
 get advanced meta data search instance More...
 
static getUserOrgUnitAssignmentInstance ($query_parser)
 get orgunit search instance More...
 

Detailed Description

Definition at line 37 of file class.ilObjectSearchFactory.php.

Member Function Documentation

◆ _getAdvancedMDSearchInstance()

static ilObjectSearchFactory::_getAdvancedMDSearchInstance (   $query_parser)
static

get advanced meta data search instance

public

Parameters
objectquery parser

Definition at line 308 of file class.ilObjectSearchFactory.php.

Referenced by ilAdvancedSearchGUI\searchAdvancedMD().

309  {
310  include_once('Services/AdvancedMetaData/classes/class.ilAdvancedMDLikeSearch.php');
311  return new ilAdvancedMDLikeSearch($query_parser);
312  }
+ Here is the caller graph for this function:

◆ _getAdvancedSearchInstance()

static ilObjectSearchFactory::_getAdvancedSearchInstance (   $query_parser)
static

get reference of ilFulltextAdvancedSearch

Parameters
objectquery parser object
Returns
object reference of ilFulltextAdvancedSearch

Definition at line 225 of file class.ilObjectSearchFactory.php.

References ilSearchSettings\getInstance().

Referenced by ilAdvancedSearchGUI\__performClassificationSearch(), ilAdvancedSearchGUI\__performContributeSearch(), ilAdvancedSearchGUI\__performEducationalSearch(), ilAdvancedSearchGUI\__performEntitySearch(), ilAdvancedSearchGUI\__performFormatSearch(), ilAdvancedSearchGUI\__performGeneralSearch(), ilAdvancedSearchGUI\__performKeywordSearch(), ilAdvancedSearchGUI\__performLanguageSearch(), ilAdvancedSearchGUI\__performLifecycleSearch(), ilAdvancedSearchGUI\__performRequirementSearch(), ilAdvancedSearchGUI\__performRightsSearch(), ilAdvancedSearchGUI\__performTaxonSearch(), ilAdvancedSearchGUI\__performTitleSearch(), and ilAdvancedSearchGUI\__performTypicalAgeRangeSearch().

226  {
227  if (ilSearchSettings::getInstance()->enabledIndex()) {
228  include_once 'Services/Search/classes/Fulltext/class.ilFulltextAdvancedSearch.php';
229  return new ilFulltextAdvancedSearch($query_parser);
230  } else {
231  include_once './Services/Search/classes/Like/class.ilLikeAdvancedSearch.php';
232  return new ilLikeAdvancedSearch($query_parser);
233  }
234  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getExerciseSearchInstance()

static ilObjectSearchFactory::_getExerciseSearchInstance (   $query_parser)
static

get reference of ilFulltextExerciseSearch

Parameters
objectquery parser object
Returns
object reference of ilFulltextExerciseSearch

Definition at line 157 of file class.ilObjectSearchFactory.php.

References ilSearchSettings\getInstance().

Referenced by ilSearchGUI\__performDetailsSearch().

158  {
159  if (ilSearchSettings::getInstance()->enabledIndex()) {
160  include_once 'Services/Search/classes/Fulltext/class.ilFulltextExerciseSearch.php';
161  return new ilFulltextExerciseSearch($query_parser);
162  } else {
163  include_once 'Services/Search/classes/Like/class.ilLikeExerciseSearch.php';
164  return new ilLikeExerciseSearch($query_parser);
165  }
166  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getForumSearchInstance()

static ilObjectSearchFactory::_getForumSearchInstance (   $query_parser)
static

get reference of ilFulltextForumSearch

Parameters
objectquery parser object
Returns
object reference of ilFulltextForumSearch

Definition at line 123 of file class.ilObjectSearchFactory.php.

References ilSearchSettings\getInstance().

Referenced by ilSearchGUI\__performDetailsSearch().

124  {
125  if (ilSearchSettings::getInstance()->enabledIndex()) {
126  include_once 'Services/Search/classes/Fulltext/class.ilFulltextForumSearch.php';
127  return new ilFulltextForumSearch($query_parser);
128  } else {
129  include_once 'Services/Search/classes/Like/class.ilLikeForumSearch.php';
130  return new ilLikeForumSearch($query_parser);
131  }
132  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getGlossaryDefinitionSearchInstance()

static ilObjectSearchFactory::_getGlossaryDefinitionSearchInstance (   $query_parser)
static

get reference of ilFulltextGlossaryDefinitionSearch

Parameters
objectquery parser object
Returns
object reference of ilFulltextGlossaryDefinitionSearch

Definition at line 140 of file class.ilObjectSearchFactory.php.

References ilSearchSettings\getInstance().

Referenced by ilAdvancedSearchGUI\__performContentSearch(), and ilSearchGUI\__performDetailsSearch().

141  {
142  if (ilSearchSettings::getInstance()->enabledIndex()) {
143  include_once 'Services/Search/classes/Fulltext/class.ilFulltextGlossaryDefinitionSearch.php';
144  return new ilFulltextGlossaryDefinitionSearch($query_parser);
145  } else {
146  include_once 'Services/Search/classes/Like/class.ilLikeGlossaryDefinitionSearch.php';
147  return new ilLikeGlossaryDefinitionSearch($query_parser);
148  }
149  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getLMContentSearchInstance()

static ilObjectSearchFactory::_getLMContentSearchInstance (   $query_parser)
static

get reference of ilFulltextLMContentSearch

Parameters
objectquery parser object
Returns
object reference of ilFulltextLMContentSearch

Definition at line 106 of file class.ilObjectSearchFactory.php.

References ilSearchSettings\getInstance().

Referenced by ilAdvancedSearchGUI\__performContentSearch(), and ilSearchGUI\__performDetailsSearch().

107  {
108  if (ilSearchSettings::getInstance()->enabledIndex()) {
109  include_once 'Services/Search/classes/Fulltext/class.ilFulltextLMContentSearch.php';
110  return new ilFulltextLMContentSearch($query_parser);
111  } else {
112  include_once './Services/Search/classes/Like/class.ilLikeLMContentSearch.php';
113  return new ilLikeLMContentSearch($query_parser);
114  }
115  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getMediacastSearchInstance()

static ilObjectSearchFactory::_getMediacastSearchInstance (   $query_parser)
static

get reference of ilFulltextMediacastSearch

Parameters
objectquery parser object
Returns
object reference of ilFulltextMediacastSearch

Definition at line 174 of file class.ilObjectSearchFactory.php.

References ilSearchSettings\getInstance().

175  {
176  if (ilSearchSettings::getInstance()->enabledIndex()) {
177  include_once 'Services/Search/classes/Fulltext/class.ilFulltextMediaCastSearch.php';
178  return new ilFulltextMediaCastSearch($query_parser);
179  } else {
180  include_once 'Services/Search/classes/Like/class.ilLikeMediaCastSearch.php';
181  return new ilLikeMediaCastSearch($query_parser);
182  }
183  }
Class ilFulltextMediaCastSearch.
Class ilLikeMediaCastSearch.
+ Here is the call graph for this function:

◆ _getMediaPoolSearchInstance()

static ilObjectSearchFactory::_getMediaPoolSearchInstance (   $query_parser)
static

get reference of ilFulltextMediapoolSearch

Parameters
objectquery parser object
Returns
object reference of ilFulltextMediapoolSearch

Definition at line 208 of file class.ilObjectSearchFactory.php.

References ilSearchSettings\getInstance().

Referenced by ilAdvancedSearchGUI\__performContentSearch(), and ilSearchGUI\__performDetailsSearch().

209  {
210  if (ilSearchSettings::getInstance()->enabledIndex()) {
211  include_once 'Services/Search/classes/Fulltext/class.ilFulltextMediaPoolSearch.php';
212  return new ilFulltextMediaPoolSearch($query_parser);
213  } else {
214  include_once 'Services/Search/classes/Like/class.ilLikeMediaPoolSearch.php';
215  return new ilLikeMediaPoolSearch($query_parser);
216  }
217  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getMetaDataSearchInstance()

static ilObjectSearchFactory::_getMetaDataSearchInstance (   $query_parser)
static

get reference of ilFulltext/LikeMetaDataSearch.

Parameters
objectquery parser object
Returns
object reference of ilFulltext/LikeMetaDataSearch

Definition at line 89 of file class.ilObjectSearchFactory.php.

References ilSearchSettings\getInstance().

Referenced by ilSearchGUI\__searchMeta().

90  {
91  if (ilSearchSettings::getInstance()->enabledIndex()) {
92  include_once 'Services/Search/classes/Fulltext/class.ilFulltextMetaDataSearch.php';
93  return new ilFulltextMetaDataSearch($query_parser);
94  } else {
95  include_once 'Services/Search/classes/Like/class.ilLikeMetaDataSearch.php';
96  return new ilLikeMetaDataSearch($query_parser);
97  }
98  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getObjectSearchInstance()

static ilObjectSearchFactory::_getObjectSearchInstance (   $query_parser)
static

get reference of ilFulltext/LikeObjectSearch.

Parameters
objectquery parser object
Returns
object reference of ilFulltext/LikeObjectSearch

Definition at line 46 of file class.ilObjectSearchFactory.php.

Referenced by ilSearchGUI\__performDetailsSearch(), ilSearchGUI\__searchObjects(), ilSoapRBACAdministration\searchRoles(), and ilMailSearchGUI\showResults().

47  {
48  include_once './Services/Search/classes/class.ilSearchSettings.php';
49 
50  $search_settings = new ilSearchSettings();
51 
52  if ($search_settings->enabledIndex()) {
53  // FULLTEXT
54  include_once 'Services/Search/classes/Fulltext/class.ilFulltextObjectSearch.php';
55  return new ilFulltextObjectSearch($query_parser);
56  } else {
57  // LIKE
58  include_once 'Services/Search/classes/Like/class.ilLikeObjectSearch.php';
59  return new ilLikeObjectSearch($query_parser);
60  }
61  }
+ Here is the caller graph for this function:

◆ _getTestSearchInstance()

static ilObjectSearchFactory::_getTestSearchInstance (   $query_parser)
static

get reference of ilFulltextTestSearch

Parameters
objectquery parser object
Returns
object reference of ilFulltextTestSearch

Definition at line 191 of file class.ilObjectSearchFactory.php.

References ilSearchSettings\getInstance().

Referenced by ilAdvancedSearchGUI\__performContentSearch(), and ilSearchGUI\__performDetailsSearch().

192  {
193  if (ilSearchSettings::getInstance()->enabledIndex()) {
194  include_once 'Services/Search/classes/Fulltext/class.ilFulltextTestSearch.php';
195  return new ilFulltextTestSearch($query_parser);
196  } else {
197  include_once 'Services/Search/classes/Like/class.ilLikeTestSearch.php';
198  return new ilLikeTestSearch($query_parser);
199  }
200  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getUserDefinedFieldSearchInstance()

static ilObjectSearchFactory::_getUserDefinedFieldSearchInstance (   $query_parser)
static

get reference of ilLikeUserDefinedFieldSearch

Parameters
objectquery parser object
Returns
object reference of ilLikeUserDefinedFieldSearch

Definition at line 271 of file class.ilObjectSearchFactory.php.

Referenced by ilRepositorySearchGUI\__performUserSearch().

272  {
273  include_once 'Services/Search/classes/Like/class.ilLikeUserDefinedFieldSearch.php';
274  return new ilLikeUserDefinedFieldSearch($query_parser);
275  }
+ Here is the caller graph for this function:

◆ _getUserSearchInstance()

static ilObjectSearchFactory::_getUserSearchInstance (   $query_parser)
static

get reference of ilLikeUserSearch

Parameters
objectquery parser object
Returns
object reference of ilWebresourceAdvancedSearch

Definition at line 259 of file class.ilObjectSearchFactory.php.

Referenced by ilRepositorySearchGUI\__performUserSearch(), ilUserSearchFilter\__searchObjects(), ilSearch\performUserSearch(), ilInternalLink\searchUsers(), ilCalendarCategoryGUI\sharePerformSearch(), and ilMailSearchGUI\showResults().

260  {
261  include_once 'Services/Search/classes/Like/class.ilLikeUserSearch.php';
262  return new ilLikeUserSearch($query_parser);
263  }
+ Here is the caller graph for this function:

◆ _getWebresourceSearchInstance()

static ilObjectSearchFactory::_getWebresourceSearchInstance (   $query_parser)
static

get reference of ilFulltextWebresourceSearch

Parameters
objectquery parser object
Returns
object reference of ilWebresourceAdvancedSearch

Definition at line 242 of file class.ilObjectSearchFactory.php.

References ilSearchSettings\getInstance().

Referenced by ilAdvancedSearchGUI\__performContentSearch().

243  {
244  if (ilSearchSettings::getInstance()->enabledIndex()) {
245  include_once 'Services/Search/classes/Fulltext/class.ilFulltextWebresourceSearch.php';
246  return new ilFulltextWebresourceSearch($query_parser);
247  } else {
248  include_once 'Services/Search/classes/Like/class.ilLikeWebresourceSearch.php';
249  return new ilLikeWebresourceSearch($query_parser);
250  }
251  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getWikiContentSearchInstance()

static ilObjectSearchFactory::_getWikiContentSearchInstance (   $query_parser)
static

get reference of ilFulltextWikiContentSearch

Parameters
objectquery parser object
Returns
object reference of ilFulltextWikiContentSearch

Definition at line 289 of file class.ilObjectSearchFactory.php.

References ilSearchSettings\getInstance().

Referenced by ilSearchGUI\__performDetailsSearch(), and ilObjWiki\_performSearch().

290  {
291  if (ilSearchSettings::getInstance()->enabledIndex()) {
292  include_once 'Services/Search/classes/Fulltext/class.ilFulltextWikiContentSearch.php';
293  return new ilFulltextWikiContentSearch($query_parser);
294  } else {
295  include_once 'Services/Search/classes/Like/class.ilLikeWikiContentSearch.php';
296  return new ilLikeWikiContentSearch($query_parser);
297  }
298  }
Class ilFulltextWikiContentSearch.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getByTypeSearchInstance()

static ilObjectSearchFactory::getByTypeSearchInstance (   $a_object_type,
  $a_query_parser 
)
static

Definition at line 66 of file class.ilObjectSearchFactory.php.

Referenced by ilRepositoryObjectDetailSearch\performDBSearch().

67  {
68  switch ($a_object_type) {
69  case 'wiki':
70  return self::_getWikiContentSearchInstance($a_query_parser);
71 
72  case 'frm':
73  return self::_getForumSearchInstance($a_query_parser);
74 
75  case 'lm':
76  return self::_getLMContentSearchInstance($a_query_parser);
77 
78  default:
79  return self::_getObjectSearchInstance($a_query_parser);
80  }
81  }
+ Here is the caller graph for this function:

◆ getUserMultiFieldSearchInstance()

static ilObjectSearchFactory::getUserMultiFieldSearchInstance (   $query_parser)
static

Definition at line 277 of file class.ilObjectSearchFactory.php.

Referenced by ilRepositorySearchGUI\__performUserSearch().

278  {
279  include_once './Services/Search/classes/Like/class.ilLikeUserMultiFieldSearch.php';
280  return new ilLikeUserMultiFieldSearch($query_parser);
281  }
+ Here is the caller graph for this function:

◆ getUserOrgUnitAssignmentInstance()

static ilObjectSearchFactory::getUserOrgUnitAssignmentInstance (   $query_parser)
static

get orgunit search instance

Parameters
type$query_parser

Definition at line 318 of file class.ilObjectSearchFactory.php.

Referenced by ilRepositorySearchGUI\__performUserSearch().

319  {
320  include_once './Services/Search/classes/Like/class.ilLikeUserOrgUnitSearch.php';
321  return new ilLikeUserOrgUnitSearch($query_parser);
322  }
Description of class class.
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: