mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-57497 core_calendar: added new calendar event class
Moved calendar_event class to new location using replaceclasses.php Part of MDL-55611 epic.
This commit is contained in:
parent
e9dfeec94e
commit
e057f279e4
25 changed files with 901 additions and 877 deletions
|
@ -45,5 +45,7 @@ $renamedclasses = array(
|
|||
'core_competency\\external\\persistent_exporter' => 'core\\external\\persistent_exporter',
|
||||
'core_competency\\external\\comment_area_exporter' => 'core_comment\\external\\comment_area_exporter',
|
||||
'core_competency\\external\\stored_file_exporter' => 'core_files\\external\\stored_file_exporter',
|
||||
'core_competency\\external\\user_summary_exporter' => 'core_user\\external\\user_summary_exporter'
|
||||
'core_competency\\external\\user_summary_exporter' => 'core_user\\external\\user_summary_exporter',
|
||||
'core_search\area\base_activity' => 'core_search\base_activity',
|
||||
'calendar_event' => 'core_calendar\event'
|
||||
);
|
||||
|
|
|
@ -1163,41 +1163,41 @@ function navmenu($course, $cm=NULL, $targetwindow='self') {
|
|||
|
||||
|
||||
/**
|
||||
* @deprecated please use calendar_event::create() instead.
|
||||
* @deprecated please use \core_calendar\event::create() instead.
|
||||
*/
|
||||
function add_event($event) {
|
||||
throw new coding_exception('add_event() can not be used any more, please use calendar_event::create() instead.');
|
||||
throw new coding_exception('add_event() can not be used any more, please use \core_calendar\event::create() instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated please calendar_event->update() instead.
|
||||
* @deprecated please \core_calendar\event->update() instead.
|
||||
*/
|
||||
function update_event($event) {
|
||||
throw new coding_exception('update_event() is removed, please use calendar_event->update() instead.');
|
||||
throw new coding_exception('update_event() is removed, please use \core_calendar\event->update() instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated please use calendar_event->delete() instead.
|
||||
* @deprecated please use \core_calendar\event->delete() instead.
|
||||
*/
|
||||
function delete_event($id) {
|
||||
throw new coding_exception('delete_event() can not be used any more, please use '.
|
||||
'calendar_event->delete() instead.');
|
||||
'\core_calendar\event->delete() instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated please use calendar_event->toggle_visibility(false) instead.
|
||||
* @deprecated please use \core_calendar\event->toggle_visibility(false) instead.
|
||||
*/
|
||||
function hide_event($event) {
|
||||
throw new coding_exception('hide_event() can not be used any more, please use '.
|
||||
'calendar_event->toggle_visibility(false) instead.');
|
||||
'\core_calendar\event->toggle_visibility(false) instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated please use calendar_event->toggle_visibility(true) instead.
|
||||
* @deprecated please use \core_calendar\event->toggle_visibility(true) instead.
|
||||
*/
|
||||
function show_event($event) {
|
||||
throw new coding_exception('show_event() can not be used any more, please use '.
|
||||
'calendar_event->toggle_visibility(true) instead.');
|
||||
'\core_calendar\event->toggle_visibility(true) instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -69,6 +69,7 @@ information provided here is intended especially for developers.
|
|||
* New 'priority' column for the event table to determine which event to show in case of events with user and group overrides.
|
||||
* Webservices core_course_search_courses and core_course_get_courses_by_field will always return the sortorder field.
|
||||
* core_course_external::get_activities_overview has been deprecated. Please do not call this function any more.
|
||||
* Class 'calendar_event' has been renamed and is now deprecated. Please use 'core_calendar\event' instead.
|
||||
|
||||
=== 3.2 ===
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue