1441 |
ariadna |
1 |
<?php
|
|
|
2 |
// This file is part of Moodle - http://moodle.org/
|
|
|
3 |
//
|
|
|
4 |
// Moodle is free software: you can redistribute it and/or modify
|
|
|
5 |
// it under the terms of the GNU General Public License as published by
|
|
|
6 |
// the Free Software Foundation, either version 3 of the License, or
|
|
|
7 |
// (at your option) any later version.
|
|
|
8 |
//
|
|
|
9 |
// Moodle is distributed in the hope that it will be useful,
|
|
|
10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
12 |
// GNU General Public License for more details.
|
|
|
13 |
//
|
|
|
14 |
// You should have received a copy of the GNU General Public License
|
|
|
15 |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16 |
|
|
|
17 |
/**
|
|
|
18 |
* This file contains mappings for legacy classes that do not fit the standard class naming conventions.
|
|
|
19 |
*
|
|
|
20 |
* In time these classes should be renamed to fit the standard class naming conventions but this is not an overnight process.
|
|
|
21 |
*
|
|
|
22 |
* @package core
|
|
|
23 |
* @copyright Andrew Lyons <andrew@nicols.co.uk>
|
|
|
24 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
25 |
*/
|
|
|
26 |
|
|
|
27 |
defined('MOODLE_INTERNAL') || die();
|
|
|
28 |
|
|
|
29 |
// Like other files in the db directory this file uses an array.
|
|
|
30 |
// The old class name is the key, the path to the file containing the class is the value.
|
|
|
31 |
// The array must be called $legacyclasses.
|
|
|
32 |
$legacyclasses = [
|
|
|
33 |
\bootstrap_renderer::class => 'output/bootstrap_renderer.php',
|
|
|
34 |
|
|
|
35 |
// Core API.
|
|
|
36 |
\emoticon_manager::class => 'emoticon_manager.php',
|
|
|
37 |
\lang_string::class => 'lang_string.php',
|
|
|
38 |
\moodle_url::class => 'url.php',
|
|
|
39 |
|
|
|
40 |
// Exception API.
|
|
|
41 |
\coding_exception::class => 'exception/coding_exception.php',
|
|
|
42 |
\file_serving_exception::class => 'exception/file_serving_exception.php',
|
|
|
43 |
\invalid_dataroot_permissions::class => 'exception/invalid_dataroot_permissions.php',
|
|
|
44 |
\invalid_parameter_exception::class => 'exception/invalid_parameter_exception.php',
|
|
|
45 |
\invalid_response_exception::class => 'exception/invalid_response_exception.php',
|
|
|
46 |
\invalid_state_exception::class => 'exception/invalid_state_exception.php',
|
|
|
47 |
\moodle_exception::class => 'exception/moodle_exception.php',
|
|
|
48 |
\require_login_exception::class => 'exception/require_login_exception.php',
|
|
|
49 |
\require_login_session_timeout_exception::class => 'exception/require_login_session_timeout_exception.php',
|
|
|
50 |
\required_capability_exception::class => 'exception/required_capability_exception.php',
|
|
|
51 |
\webservice_parameter_exception::class => 'exception/webservice_parameter_exception.php',
|
|
|
52 |
|
|
|
53 |
// Cache API.
|
|
|
54 |
\cache::class => [
|
|
|
55 |
'core_cache',
|
|
|
56 |
'cache.php',
|
|
|
57 |
],
|
|
|
58 |
\cache_application::class => [
|
|
|
59 |
'core_cache',
|
|
|
60 |
'application_cache.php',
|
|
|
61 |
],
|
|
|
62 |
\cache_definition::class => [
|
|
|
63 |
'core_cache',
|
|
|
64 |
'definition.php',
|
|
|
65 |
],
|
|
|
66 |
\cache_request::class => [
|
|
|
67 |
'core_cache',
|
|
|
68 |
'request_cache.php',
|
|
|
69 |
],
|
|
|
70 |
\cache_session::class => [
|
|
|
71 |
'core_cache',
|
|
|
72 |
'session_cache.php',
|
|
|
73 |
],
|
|
|
74 |
\cache_cached_object::class => [
|
|
|
75 |
'core_cache',
|
|
|
76 |
'cached_object.php',
|
|
|
77 |
],
|
|
|
78 |
\cache_config::class => [
|
|
|
79 |
'core_cache',
|
|
|
80 |
'config.php',
|
|
|
81 |
],
|
|
|
82 |
\cache_config_writer::class => [
|
|
|
83 |
'core_cache',
|
|
|
84 |
'config_writer.php',
|
|
|
85 |
],
|
|
|
86 |
\cache_config_disabled::class => [
|
|
|
87 |
'core_cache',
|
|
|
88 |
'disabled_config.php',
|
|
|
89 |
],
|
|
|
90 |
\cache_disabled::class => [
|
|
|
91 |
'core_cache',
|
|
|
92 |
'disabled_cache.php',
|
|
|
93 |
],
|
|
|
94 |
\config_writer::class => [
|
|
|
95 |
'core_cache',
|
|
|
96 |
'config_writer.php',
|
|
|
97 |
],
|
|
|
98 |
\cache_data_source::class => [
|
|
|
99 |
'core_cache',
|
|
|
100 |
'data_source_interface.php',
|
|
|
101 |
],
|
|
|
102 |
\cache_data_source_versionable::class => [
|
|
|
103 |
'core_cache',
|
|
|
104 |
'versionable_data_source_interface.php',
|
|
|
105 |
],
|
|
|
106 |
\cache_exception::class => [
|
|
|
107 |
'core_cache',
|
|
|
108 |
'exception/cache_exception.php',
|
|
|
109 |
],
|
|
|
110 |
\cache_factory::class => [
|
|
|
111 |
'core_cache',
|
|
|
112 |
'factory.php',
|
|
|
113 |
],
|
|
|
114 |
\cache_factory_disabled::class => [
|
|
|
115 |
'core_cache',
|
|
|
116 |
'disabled_factory.php',
|
|
|
117 |
],
|
|
|
118 |
\cache_helper::class => [
|
|
|
119 |
'core_cache',
|
|
|
120 |
'helper.php',
|
|
|
121 |
],
|
|
|
122 |
\cache_is_key_aware::class => [
|
|
|
123 |
'core_cache',
|
|
|
124 |
'key_aware_cache_interface.php',
|
|
|
125 |
],
|
|
|
126 |
\cache_is_lockable::class => [
|
|
|
127 |
'core_cache',
|
|
|
128 |
'lockable_cache_interface.php',
|
|
|
129 |
],
|
|
|
130 |
\cache_is_searchable::class => [
|
|
|
131 |
'core_cache',
|
|
|
132 |
'searchable_cache_interface.php',
|
|
|
133 |
],
|
|
|
134 |
\cache_is_configurable::class => [
|
|
|
135 |
'core_cache',
|
|
|
136 |
'configurable_cache_interface.php',
|
|
|
137 |
],
|
|
|
138 |
\cache_loader::class => [
|
|
|
139 |
'core_cache',
|
|
|
140 |
'loader_interface.php',
|
|
|
141 |
],
|
|
|
142 |
\cache_loader_with_locking::class => [
|
|
|
143 |
'core_cache',
|
|
|
144 |
'loader_with_locking_interface.php',
|
|
|
145 |
],
|
|
|
146 |
\cache_lock_interface::class => [
|
|
|
147 |
'core_cache',
|
|
|
148 |
'cache_lock_interface.php',
|
|
|
149 |
],
|
|
|
150 |
\cache_store::class => [
|
|
|
151 |
'core_cache',
|
|
|
152 |
'store.php',
|
|
|
153 |
],
|
|
|
154 |
\cache_store_interface::class => [
|
|
|
155 |
'core_cache',
|
|
|
156 |
'store_interface.php',
|
|
|
157 |
],
|
|
|
158 |
\cache_ttl_wrapper::class => [
|
|
|
159 |
'core_cache',
|
|
|
160 |
'ttl_wrapper.php',
|
|
|
161 |
],
|
|
|
162 |
\cacheable_object::class => [
|
|
|
163 |
'core_cache',
|
|
|
164 |
'cacheable_object_interface.php',
|
|
|
165 |
],
|
|
|
166 |
\cacheable_object_array::class => [
|
|
|
167 |
'core_cache',
|
|
|
168 |
'cacheable_object_array.php',
|
|
|
169 |
],
|
|
|
170 |
\cache_definition_mappings_form::class => [
|
|
|
171 |
'core_cache',
|
|
|
172 |
'form/cache_definition_mappings_form.php',
|
|
|
173 |
],
|
|
|
174 |
\cache_definition_sharing_form::class => [
|
|
|
175 |
'core_cache',
|
|
|
176 |
'form/cache_definition_sharing_form.php',
|
|
|
177 |
],
|
|
|
178 |
\cache_lock_form::class => [
|
|
|
179 |
'core_cache',
|
|
|
180 |
'form/cache_lock_form.php',
|
|
|
181 |
],
|
|
|
182 |
\cache_mode_mappings_form::class => [
|
|
|
183 |
'core_cache',
|
|
|
184 |
'form/cache_mode_mappings_form.php',
|
|
|
185 |
],
|
|
|
186 |
\cachestore_addinstance_form::class => [
|
|
|
187 |
'core_cache',
|
|
|
188 |
'form/cachestore_addinstance_form.php',
|
|
|
189 |
],
|
|
|
190 |
|
|
|
191 |
// Output API.
|
|
|
192 |
\theme_config::class => 'output/theme_config.php',
|
|
|
193 |
\xhtml_container_stack::class => 'output/xhtml_container_stack.php',
|
|
|
194 |
|
|
|
195 |
\renderable::class => 'output/renderable.php',
|
|
|
196 |
\templatable::class => 'output/templatable.php',
|
|
|
197 |
|
|
|
198 |
// Output API: Renderer Factories.
|
|
|
199 |
\renderer_factory::class => 'output/renderer_factory/renderer_factory_interface.php',
|
|
|
200 |
\renderer_factory_base::class => 'output/renderer_factory/renderer_factory_base.php',
|
|
|
201 |
\standard_renderer_factory::class => 'output/renderer_factory/standard_renderer_factory.php',
|
|
|
202 |
\theme_overridden_renderer_factory::class => 'output/renderer_factory/theme_overridden_renderer_factory.php',
|
|
|
203 |
|
|
|
204 |
// Output API: Renderers.
|
|
|
205 |
\renderer_base::class => 'output/renderer_base.php',
|
|
|
206 |
\plugin_renderer_base::class => 'output/plugin_renderer_base.php',
|
|
|
207 |
\core_renderer::class => 'output/core_renderer.php',
|
|
|
208 |
\core_renderer_cli::class => 'output/core_renderer_cli.php',
|
|
|
209 |
\core_renderer_ajax::class => 'output/core_renderer_ajax.php',
|
|
|
210 |
\core_renderer_maintenance::class => 'output/core_renderer_maintenance.php',
|
|
|
211 |
\page_requirements_manager::class => 'output/requirements/page_requirements_manager.php',
|
|
|
212 |
\YUI_config::class => 'output/requirements/yui.php',
|
|
|
213 |
\fragment_requirements_manager::class => 'output/requirements/fragment_requirements_manager.php',
|
|
|
214 |
|
|
|
215 |
// Output API: components.
|
|
|
216 |
\file_picker::class => 'output/file_picker.php',
|
|
|
217 |
\user_picture::class => 'output/user_picture.php',
|
|
|
218 |
\help_icon::class => 'output/help_icon.php',
|
|
|
219 |
\pix_icon_font::class => 'output/pix_icon_font.php',
|
|
|
220 |
\pix_icon_fontawesome::class => 'output/pix_icon_fontawesome.php',
|
|
|
221 |
\pix_icon::class => 'output/pix_icon.php',
|
|
|
222 |
\image_icon::class => 'output/image_icon.php',
|
|
|
223 |
\pix_emoticon::class => 'output/pix_emoticon.php',
|
|
|
224 |
\single_button::class => 'output/single_button.php',
|
|
|
225 |
\single_select::class => 'output/single_select.php',
|
|
|
226 |
\url_select::class => 'output/url_select.php',
|
|
|
227 |
\action_link::class => 'output/action_link.php',
|
|
|
228 |
\html_writer::class => 'output/html_writer.php',
|
|
|
229 |
\js_writer::class => 'output/js_writer.php',
|
|
|
230 |
\paging_bar::class => 'output/paging_bar.php',
|
|
|
231 |
\initials_bar::class => 'output/initials_bar.php',
|
|
|
232 |
\custom_menu_item::class => 'output/custom_menu_item.php',
|
|
|
233 |
\custom_menu::class => 'output/custom_menu.php',
|
|
|
234 |
\tabobject::class => 'output/tabobject.php',
|
|
|
235 |
\context_header::class => 'output/context_header.php',
|
|
|
236 |
\tabtree::class => 'output/tabtree.php',
|
|
|
237 |
\action_menu::class => 'output/action_menu.php',
|
|
|
238 |
\action_menu_filler::class => 'output/action_menu/filler.php',
|
|
|
239 |
\action_menu_link::class => 'output/action_menu/link.php',
|
|
|
240 |
\action_menu_link_primary::class => 'output/action_menu/link_primary.php',
|
|
|
241 |
\action_menu_link_secondary::class => 'output/action_menu/link_secondary.php',
|
|
|
242 |
\core\output\local\action_menu\subpanel::class => 'output/action_menu/subpanel.php',
|
|
|
243 |
\preferences_groups::class => 'output/preferences_groups.php',
|
|
|
244 |
\preferences_group::class => 'output/preferences_group.php',
|
|
|
245 |
\progress_bar::class => 'output/progress_bar.php',
|
|
|
246 |
\component_action::class => 'output/actions/component_action.php',
|
|
|
247 |
\confirm_action::class => 'output/actions/confirm_action.php',
|
|
|
248 |
\popup_action::class => 'output/actions/popup_action.php',
|
|
|
249 |
|
|
|
250 |
// Block Subsystem.
|
|
|
251 |
\block_contents::class => [
|
|
|
252 |
'core_block',
|
|
|
253 |
'output/block_contents.php',
|
|
|
254 |
],
|
|
|
255 |
\block_move_target::class => [
|
|
|
256 |
'core_block',
|
|
|
257 |
'output/block_move_target.php',
|
|
|
258 |
],
|
|
|
259 |
|
|
|
260 |
// Table Subsystem.
|
|
|
261 |
\html_table::class => [
|
|
|
262 |
'core_table',
|
|
|
263 |
'output/html_table.php',
|
|
|
264 |
],
|
|
|
265 |
\html_table_row::class => [
|
|
|
266 |
'core_table',
|
|
|
267 |
'output/html_table_row.php',
|
|
|
268 |
],
|
|
|
269 |
\html_table_cell::class => [
|
|
|
270 |
'core_table',
|
|
|
271 |
'output/html_table_cell.php',
|
|
|
272 |
],
|
|
|
273 |
\flexible_table::class => [
|
|
|
274 |
'core_table',
|
|
|
275 |
'flexible_table.php',
|
|
|
276 |
],
|
|
|
277 |
\table_sql::class => [
|
|
|
278 |
'core_table',
|
|
|
279 |
'sql_table.php',
|
|
|
280 |
],
|
|
|
281 |
\table_default_export_format_parent::class => [
|
|
|
282 |
'core_table',
|
|
|
283 |
'base_export_format.php',
|
|
|
284 |
],
|
|
|
285 |
\table_dataformat_export_format::class => [
|
|
|
286 |
'core_table',
|
|
|
287 |
'dataformat_export_format.php',
|
|
|
288 |
],
|
|
|
289 |
|
|
|
290 |
// The progress_trace classes.
|
|
|
291 |
\combined_progress_trace::class => 'output/progress_trace/combined_progress_trace.php',
|
|
|
292 |
\error_log_progress_trace::class => 'output/progress_trace/error_log_progress_trace.php',
|
|
|
293 |
\html_list_progress_trace::class => 'output/progress_trace/html_list_progress_trace.php',
|
|
|
294 |
\html_progress_trace::class => 'output/progress_trace/html_progress_trace.php',
|
|
|
295 |
\null_progress_trace::class => 'output/progress_trace/null_progress_trace.php',
|
|
|
296 |
\progress_trace::class => 'output/progress_trace.php',
|
|
|
297 |
\progress_trace_buffer::class => 'output/progress_trace/progress_trace_buffer.php',
|
|
|
298 |
\text_progress_trace::class => 'output/progress_trace/text_progress_trace.php',
|
|
|
299 |
|
|
|
300 |
// Filters subsystem.
|
|
|
301 |
\filter_manager::class => [
|
|
|
302 |
'core_filters',
|
|
|
303 |
'filter_manager.php',
|
|
|
304 |
],
|
|
|
305 |
\filterobject::class => [
|
|
|
306 |
'core_filters',
|
|
|
307 |
'filter_object.php',
|
|
|
308 |
],
|
|
|
309 |
\moodle_text_filter::class => [
|
|
|
310 |
'core_filters',
|
|
|
311 |
'text_filter.php',
|
|
|
312 |
],
|
|
|
313 |
\null_filter_manager::class => [
|
|
|
314 |
'core_filters',
|
|
|
315 |
'null_filter_manager.php',
|
|
|
316 |
],
|
|
|
317 |
\performance_measuring_filter_manager::class => [
|
|
|
318 |
'core_filters',
|
|
|
319 |
'performance_measuring_filter_manager.php',
|
|
|
320 |
],
|
|
|
321 |
\filter_local_settings_form::class => [
|
|
|
322 |
'core_filters',
|
|
|
323 |
'form/local_settings_form.php',
|
|
|
324 |
],
|
|
|
325 |
];
|