ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilObjectSearchFactory.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 /*
5  +-----------------------------------------------------------------------------+
6  | ILIAS open source |
7  +-----------------------------------------------------------------------------+
8  | Copyright (c) 1998-2001 ILIAS open source, University of Cologne |
9  | |
10  | This program is free software; you can redistribute it and/or |
11  | modify it under the terms of the GNU General Public License |
12  | as published by the Free Software Foundation; either version 2 |
13  | of the License, or (at your option) any later version. |
14  | |
15  | This program is distributed in the hope that it will be useful, |
16  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
17  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18  | GNU General Public License for more details. |
19  | |
20  | You should have received a copy of the GNU General Public License |
21  | along with this program; if not, write to the Free Software |
22  | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
23  +-----------------------------------------------------------------------------+
24 */
25 
26 
37 {
38  public static function _getObjectSearchInstance(ilQueryParser $query_parser): ilObjectSearch
39  {
40  return new ilLikeObjectSearch($query_parser);
41  }
42 
43  public static function getByTypeSearchInstance(
44  string $a_object_type,
45  ilQueryParser $a_query_parser
46  ): ilAbstractSearch {
47  switch ($a_object_type) {
48  case 'wiki':
49  return self::_getWikiContentSearchInstance($a_query_parser);
50 
51  case 'frm':
52  return self::_getForumSearchInstance($a_query_parser);
53 
54  case 'lm':
55  return self::_getLMContentSearchInstance($a_query_parser);
56 
57  default:
58  return self::_getObjectSearchInstance($a_query_parser);
59  }
60  }
61 
62  public static function _getMetaDataSearchInstance(ilQueryParser $query_parser): ilMetaDataSearch
63  {
64  return new ilLikeMetaDataSearch($query_parser);
65  }
66 
67  public static function _getLMContentSearchInstance(ilQueryParser $query_parser): ilLMContentSearch
68  {
69  return new ilLikeLMContentSearch($query_parser);
70  }
71 
72  public static function _getForumSearchInstance(ilQueryParser $query_parser): ilForumSearch
73  {
74  return new ilLikeForumSearch($query_parser);
75  }
76 
77  public static function _getGlossaryDefinitionSearchInstance(
78  ilQueryParser $query_parser
80  return new ilLikeGlossaryDefinitionSearch($query_parser);
81  }
82 
83  public static function _getExerciseSearchInstance(ilQueryParser $query_parser): ilExerciseSearch
84  {
85  return new ilLikeExerciseSearch($query_parser);
86  }
87 
88  public static function _getMediacastSearchInstance(ilQueryParser $query_parser): ilMediaCastSearch
89  {
90  return new ilLikeMediaCastSearch($query_parser);
91  }
92 
93  public static function _getTestSearchInstance(ilQueryParser $query_parser): ilTestSearch
94  {
95  return new ilLikeTestSearch($query_parser);
96  }
97 
98  public static function _getMediaPoolSearchInstance(ilQueryParser $query_parser): ilMediaPoolSearch
99  {
100  return new ilLikeMediaPoolSearch($query_parser);
101  }
102 
103  public static function _getAdvancedSearchInstance(ilQueryParser $query_parser): ilAdvancedSearch
104  {
105  return new ilLikeAdvancedSearch($query_parser);
106  }
107 
108  public static function _getWebresourceSearchInstance(ilQueryParser $query_parser): ilWebresourceSearch
109  {
110  return new ilLikeWebresourceSearch($query_parser);
111  }
112 
113  public static function _getUserSearchInstance(ilQueryParser $query_parser): ilUserSearch
114  {
115  return new ilLikeUserSearch($query_parser);
116  }
117 
118  public static function _getUserDefinedFieldSearchInstance(
119  ilQueryParser $query_parser
121  return new ilLikeUserDefinedFieldSearch($query_parser);
122  }
123 
124  public static function getUserMultiFieldSearchInstance(ilQueryParser $query_parser): ilAbstractSearch
125  {
126  return new ilLikeUserMultiFieldSearch($query_parser);
127  }
128 
129  public static function _getWikiContentSearchInstance(ilQueryParser $query_parser): ilWikiContentSearch
130  {
131  return new ilLikeWikiContentSearch($query_parser);
132  }
133 
134  public static function _getAdvancedMDSearchInstance(ilQueryParser $query_parser): ilAdvancedMDSearch
135  {
136  return new ilAdvancedMDLikeSearch($query_parser);
137  }
138 
139  public static function getUserOrgUnitAssignmentInstance(ilQueryParser $query_parser): ilAbstractSearch
140  {
141  return new ilLikeUserOrgUnitSearch($query_parser);
142  }
143 }
static _getLMContentSearchInstance(ilQueryParser $query_parser)
static _getMediaPoolSearchInstance(ilQueryParser $query_parser)
static getUserOrgUnitAssignmentInstance(ilQueryParser $query_parser)
static _getMediacastSearchInstance(ilQueryParser $query_parser)
static _getWikiContentSearchInstance(ilQueryParser $query_parser)
static _getUserSearchInstance(ilQueryParser $query_parser)
static getUserMultiFieldSearchInstance(ilQueryParser $query_parser)
static _getExerciseSearchInstance(ilQueryParser $query_parser)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getGlossaryDefinitionSearchInstance(ilQueryParser $query_parser)
static _getUserDefinedFieldSearchInstance(ilQueryParser $query_parser)
static _getForumSearchInstance(ilQueryParser $query_parser)
static _getObjectSearchInstance(ilQueryParser $query_parser)
Class ilWikiContentSearch.
static getByTypeSearchInstance(string $a_object_type, ilQueryParser $a_query_parser)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getTestSearchInstance(ilQueryParser $query_parser)
static _getAdvancedSearchInstance(ilQueryParser $query_parser)
Class ilLikeMediaCastSearch.
static _getMetaDataSearchInstance(ilQueryParser $query_parser)
static _getAdvancedMDSearchInstance(ilQueryParser $query_parser)
Description of class class.
static _getWebresourceSearchInstance(ilQueryParser $query_parser)