Merge branch 'MDL-87426-main-update' of https://github.com/meirzamoodle/moodle
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
issueNumber: MDL-87426
|
||||
notes:
|
||||
core_files:
|
||||
- message: >-
|
||||
The following methods have been removed from `public/lib/filestorage/file_storage.php`:
|
||||
- `\file_storage::content_exists()`
|
||||
- `\file_storage::try_content_recovery()`
|
||||
type: removed
|
||||
@@ -0,0 +1,95 @@
|
||||
issueNumber: MDL-87426
|
||||
notes:
|
||||
auth_ldap:
|
||||
- message: >-
|
||||
- The following methods have been removed from `auth/ldap/lib.php`:
|
||||
- `\auth_plugin_ldap::auth_plugin_ldap()`
|
||||
- `\auth_plugin_ldap::iscreator()`
|
||||
- The `public/auth/ldap/cli/sync_users.php` file has been removed.
|
||||
type: removed
|
||||
core_calendar:
|
||||
- message: >-
|
||||
- The `calendar_add_event_metadata()` has been removed from `public/calendar/deprecatedlib.php`.
|
||||
- The `\core_external\external_api\calendar_information::prepare_for_view()` has been removed from `public/calendar/lib.php`.
|
||||
- The `\core_calendar_renderer::event()` has been removed from `public/calendar/renderer.php`.
|
||||
type: removed
|
||||
core_course:
|
||||
- message: The `replaceSectionActionItem()` has been removed from `public/course/amd/src/actions.js`.
|
||||
type: removed
|
||||
core:
|
||||
- message: >-
|
||||
- The `\core\output\action_menu::do_not_enhance()` has been removed from `public/lib/classes/output/action_menu.php`.
|
||||
- The following functions have been removed from `public/lib/javascript-static.js`:
|
||||
- `M.util.init_toggle_class_on_click()`
|
||||
- `M.util.focus_login_form()`
|
||||
- `M.util.focus_login_error()`
|
||||
- `checkall()`
|
||||
- `checknone()`
|
||||
- `select_all_in_element_with_id()`
|
||||
- `select_all_in()`
|
||||
- `deselect_all_in()`
|
||||
- `confirm_if()`
|
||||
- `findParentNode()`
|
||||
- `filterByParent()`
|
||||
- `fix_column_widths()`
|
||||
- `fix_column_width()`
|
||||
- `stripHTML()`
|
||||
- `M.form.init_smartselect()`
|
||||
core_form:
|
||||
- message: >-
|
||||
- The following methods have been removed from `public/lib/antivirus/clamav/classes/scanner.php`:
|
||||
- `\antivirus_clamav\scanner::scan_data_execute_unixsocket()`
|
||||
- `\antivirus_clamav\scanner::scan_file_execute_unixsocket()`
|
||||
- The following methods have been removed from `public/lib/form/classes/filetypes_util.php`:
|
||||
- `\core_form\filetypes_util::is_whitelisted()`
|
||||
- `\core_form\filetypes_util::get_not_whitelisted()`
|
||||
type: removed
|
||||
core_message:
|
||||
- message: >-
|
||||
- The following methods have been removed from `public/message/classes/api.php`:
|
||||
- `\core_message\api::search_users_in_course()`
|
||||
- `\core_message\api::search_users()`
|
||||
- `\core_message\api::get_contacts()`
|
||||
- `\core_message\api::get_contacts_with_unread_message_count()`
|
||||
- `\core_message\api::get_non_contacts_with_unread_message_count()`
|
||||
- `\core_message\api::get_messages()`
|
||||
- `\core_message\api::get_most_recent_message()`
|
||||
- `\core_message\api::get_profile()`
|
||||
- `\core_message\api::delete_conversation()`
|
||||
- `\core_message\api::mark_all_read_for_user()`
|
||||
- `\core_message\api::can_post_message()`
|
||||
- `\core_message\api::is_user_non_contact_blocked()`
|
||||
- `\core_message\api::is_user_blocked()`
|
||||
- `\core_message\api::get_individual_conversations_between_users()`
|
||||
- `\core_message\api::create_conversation_between_users()`
|
||||
- The following methods have been removed from `public/message/classes/helper.php`:
|
||||
- `\core_message\helper::get_messages()`
|
||||
- `\core_message\helper::create_messages()`
|
||||
- `\core_message\helper::get_conversations_legacy_formatter()`
|
||||
type: removed
|
||||
mod_choice:
|
||||
- message: >-
|
||||
- The following files have been removed:
|
||||
- `public/mod/choice/classes/event/answer_submitted.php`
|
||||
- `public/mod/choice/classes/event/answer_updated.php`
|
||||
type: removed
|
||||
mod_lesson:
|
||||
- message: >-
|
||||
- The following files have been removed:
|
||||
- `public/mod/lesson/classes/event/highscore_added.php`
|
||||
- `public/mod/lesson/classes/event/highscores_viewed.php`
|
||||
type: removed
|
||||
scormreport_graphs:
|
||||
- message: The `public/mod/scorm/report/graphs/graph.php` has been removed.
|
||||
type: removed
|
||||
core_user:
|
||||
- message: >-
|
||||
- The `\profile_field_base::profile_field_base()` has been removed from `public/user/profile/lib.php`.
|
||||
- The `\core_user_renderer::unified_filter()` has been removed from `public/user/renderer.php`.
|
||||
type: removed
|
||||
report_log:
|
||||
- message: The `public/report/log/graph.php` has been removed.
|
||||
type: removed
|
||||
core_analytics:
|
||||
- message: The `\core_analytics\manager::add_builtin_models()` has been removed from `public/analytics/classes/manager.php`.
|
||||
type: removed
|
||||
@@ -590,19 +590,6 @@ class manager {
|
||||
return array($model, $prediction, $context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Used to be used to add models included with the Moodle core.
|
||||
*
|
||||
* @deprecated Deprecated since Moodle 3.7 (MDL-61667) - Use lib/db/analytics.php instead.
|
||||
* @todo Remove this method in Moodle 3.11 (MDL-65186).
|
||||
* @return void
|
||||
*/
|
||||
public static function add_builtin_models() {
|
||||
|
||||
throw new \coding_exception('core_analytics\manager::add_builtin_models() has been removed. Core models ' .
|
||||
'are now automatically updated according to their declaration in the lib/db/analytics.php file.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Cleans up analytics db tables that do not directly depend on analysables that may have been deleted.
|
||||
*/
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* CAS user sync script.
|
||||
*
|
||||
* This script is meant to be called from a cronjob to sync moodle with the LDAP
|
||||
* backend in those setups where the LDAP backend acts as 'master'.
|
||||
*
|
||||
* Notes:
|
||||
* - it is required to use the web server account when executing PHP CLI scripts
|
||||
* - you need to change the "www-data" to match the apache user account
|
||||
* - use "su" if "sudo" not available
|
||||
* - If you have a large number of users, you may want to raise the memory limits
|
||||
* by passing -d momory_limit=256M
|
||||
* - For debugging & better logging, you are encouraged to use in the command line:
|
||||
* -d log_errors=1 -d error_reporting=E_ALL -d display_errors=0 -d html_errors=0
|
||||
* - If you have a large number of users, you may want to raise the memory limits
|
||||
* by passing -d momory_limit=256M
|
||||
* - For debugging & better logging, you are encouraged to use in the command line:
|
||||
* -d log_errors=1 -d error_reporting=E_ALL -d display_errors=0 -d html_errors=0
|
||||
*
|
||||
* Performance notes:
|
||||
* We have optimized it as best as we could for PostgreSQL and MySQL, with 27K students
|
||||
* we have seen this take 10 minutes.
|
||||
*
|
||||
* @package auth_ldap
|
||||
* @copyright 2004 Martin Langhoff
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @deprecated since Moodle 3.0 MDL-51824 - please do not use this CLI script any more, use scheduled task instead.
|
||||
* @todo MDL-50264 This will be deleted in Moodle 3.2.
|
||||
*/
|
||||
|
||||
define('CLI_SCRIPT', true);
|
||||
|
||||
require(__DIR__.'/../../../config.php'); // global moodle config file.
|
||||
require_once($CFG->dirroot.'/course/lib.php');
|
||||
require_once($CFG->libdir.'/clilib.php');
|
||||
|
||||
// Ensure errors are well explained
|
||||
set_debugging(DEBUG_DEVELOPER, true);
|
||||
|
||||
if (!is_enabled_auth('ldap')) {
|
||||
error_log('[AUTH LDAP] '.get_string('pluginnotenabled', 'auth_ldap'));
|
||||
die;
|
||||
}
|
||||
|
||||
cli_problem('[AUTH LDAP] The users sync cron has been deprecated. Please use the scheduled task instead.');
|
||||
|
||||
// Abort execution of the CLI script if the auth_ldap\task\sync_task is enabled.
|
||||
$taskdisabled = \core\task\manager::get_scheduled_task('auth_ldap\task\sync_task');
|
||||
if (!$taskdisabled->get_disabled()) {
|
||||
cli_error('[AUTH LDAP] The scheduled task sync_task is enabled, the cron execution has been aborted.');
|
||||
}
|
||||
|
||||
$ldapauth = get_auth_plugin('ldap');
|
||||
$ldapauth->sync_users(true);
|
||||
|
||||
@@ -141,19 +141,6 @@ function calendar_format_event_time($event, $now, $linkparams = null, $usecommon
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 3.9
|
||||
*/
|
||||
#[\core\attribute\deprecated(
|
||||
replacement: 'calendar_add_event_metadata no longer used',
|
||||
since: '3.9',
|
||||
mdl: 'MDL-58866',
|
||||
final: true,
|
||||
)]
|
||||
function calendar_add_event_metadata() {
|
||||
\core\deprecation::emit_deprecation(__FUNCTION__);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a HTML link to a course.
|
||||
*
|
||||
|
||||
@@ -1179,14 +1179,6 @@ class calendar_information {
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 3.4
|
||||
*/
|
||||
#[\core\attribute\deprecated('prepare_for_view', since: '3.4', mdl: 'MDL-59890', final: true)]
|
||||
public function prepare_for_view() {
|
||||
\core\deprecation::emit_deprecation([self::class, __FUNCTION__]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the sources for events within the calendar.
|
||||
*
|
||||
|
||||
@@ -76,19 +76,6 @@ class core_calendar_renderer extends plugin_renderer_base {
|
||||
return $this->render_from_template('core_calendar/add_event_button', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 3.9
|
||||
*/
|
||||
#[\core\attribute\deprecated(
|
||||
replacement: 'event no longer used',
|
||||
since: '3.9',
|
||||
mdl: 'MDL-58866',
|
||||
final: true,
|
||||
)]
|
||||
public function event() {
|
||||
\core\deprecation::emit_deprecation(__FUNCTION__);
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays a course filter selector
|
||||
*
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1072,26 +1072,6 @@ define(
|
||||
})
|
||||
.catch(notification.exception);
|
||||
},
|
||||
|
||||
/**
|
||||
* Replaces a section action menu item with another one (for example Show->Hide, Set marker->Remove marker)
|
||||
*
|
||||
* This method can be used by course formats in their listener to the coursesectionedited event
|
||||
*
|
||||
* @deprecated since Moodle 3.9
|
||||
* @param {JQuery} sectionelement
|
||||
* @param {String} selector CSS selector inside the section element, for example "a[data-action=show]"
|
||||
* @param {String} image new image name ("i/show", "i/hide", etc.)
|
||||
* @param {String} stringname new string for the action menu item
|
||||
* @param {String} stringcomponent
|
||||
* @param {String} newaction new value for data-action attribute of the link
|
||||
*/
|
||||
replaceSectionActionItem: function(sectionelement, selector, image, stringname,
|
||||
stringcomponent, newaction) {
|
||||
log.debug('replaceSectionActionItem() is deprecated and will be removed.');
|
||||
var actionitem = sectionelement.find(SELECTOR.SECTIONACTIONMENU + ' ' + selector);
|
||||
replaceActionItem(actionitem, image, stringname, stringcomponent, newaction);
|
||||
},
|
||||
// Method to refresh a module.
|
||||
refreshModule,
|
||||
refreshSection,
|
||||
|
||||
@@ -431,14 +431,6 @@ class action_menu implements renderable, templatable {
|
||||
$this->triggerattributes['data-boundary'] = $boundary;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since Moodle 3.2, use a list of action_icon instead.
|
||||
*/
|
||||
#[\core\attribute\deprecated('Use a list of action_icons instead', since: '3.2', mdl: 'MDL-55904', final: true)]
|
||||
public function do_not_enhance() {
|
||||
\core\deprecation::emit_deprecation([self::class, __FUNCTION__]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if this action menu will be enhanced.
|
||||
*
|
||||
|
||||
@@ -1913,32 +1913,6 @@ class file_storage {
|
||||
return $this->filesystem->supports_xsendfile();
|
||||
}
|
||||
|
||||
/**
|
||||
* Content exists
|
||||
*
|
||||
* @param string $contenthash
|
||||
* @return bool
|
||||
* @deprecated since 3.3
|
||||
*/
|
||||
public function content_exists($contenthash) {
|
||||
debugging('The content_exists function has been deprecated and should no longer be used.', DEBUG_DEVELOPER);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tries to recover missing content of file from trash.
|
||||
*
|
||||
* @param stored_file $file stored_file instance
|
||||
* @return bool success
|
||||
* @deprecated since 3.3
|
||||
*/
|
||||
public function try_content_recovery($file) {
|
||||
debugging('The try_content_recovery function has been deprecated and should no longer be used.', DEBUG_DEVELOPER);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* When user referring to a moodle file, we build the reference field
|
||||
*
|
||||
|
||||
@@ -168,7 +168,6 @@ abstract class file_system {
|
||||
return true;
|
||||
}
|
||||
|
||||
// This is called by file_storage::content_exists(), and in turn by the repository system.
|
||||
$path = $this->get_local_path_from_hash($contenthash, $fetchifnotfound);
|
||||
|
||||
// Note - it is not possible to perform a content recovery safely from a hash alone.
|
||||
|
||||
@@ -429,13 +429,6 @@ class filetypes_util {
|
||||
return empty($this->get_not_listed($types, $list));
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since Moodle 3.10 MDL-69050 - please use {@see is_listed} instead.
|
||||
*/
|
||||
public function is_whitelisted() {
|
||||
throw new \coding_exception('\core_form\filetypes_util::is_whitelisted() has been removed.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all types that are not part of the given list.
|
||||
*
|
||||
@@ -462,13 +455,6 @@ class filetypes_util {
|
||||
return array_diff($giventypes, $listedtypes);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since Moodle 3.10 MDL-69050 - please use {@see get_not_listed} instead.
|
||||
*/
|
||||
public function get_not_whitelisted() {
|
||||
throw new \coding_exception('\core_form\filetypes_util::get_not_whitelisted() has been removed.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Is the given filename of an allowed file type?
|
||||
*
|
||||
|
||||
@@ -348,13 +348,6 @@ M.util.init_frametop = function(Y) {
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* @deprecated since Moodle 3.3
|
||||
*/
|
||||
M.util.init_toggle_class_on_click = function(Y, id, cssselector, toggleclassname, togglecssselector) {
|
||||
throw new Error('M.util.init_toggle_class_on_click can not be used any more. Please use jQuery instead.');
|
||||
};
|
||||
|
||||
/**
|
||||
* Initialises a colour picker
|
||||
*
|
||||
@@ -745,22 +738,6 @@ M.util.get_string = function(identifier, component, a) {
|
||||
return stringvalue;
|
||||
};
|
||||
|
||||
/**
|
||||
* Set focus on username or password field of the login form.
|
||||
* @deprecated since Moodle 3.3.
|
||||
*/
|
||||
M.util.focus_login_form = function(Y) {
|
||||
Y.log('M.util.focus_login_form no longer does anything. Please use jquery instead.', 'warn', 'javascript-static.js');
|
||||
};
|
||||
|
||||
/**
|
||||
* Set focus on login error message.
|
||||
* @deprecated since Moodle 3.3.
|
||||
*/
|
||||
M.util.focus_login_error = function(Y) {
|
||||
Y.log('M.util.focus_login_error no longer does anything. Please use jquery instead.', 'warn', 'javascript-static.js');
|
||||
};
|
||||
|
||||
/**
|
||||
* Adds lightbox hidden element that covers the whole node.
|
||||
*
|
||||
@@ -826,55 +803,6 @@ M.util.add_spinner = function(Y, node) {
|
||||
return spinner;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since Moodle 3.3.
|
||||
*/
|
||||
function checkall() {
|
||||
throw new Error('checkall can not be used any more. Please use jQuery instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since Moodle 3.3.
|
||||
*/
|
||||
function checknone() {
|
||||
throw new Error('checknone can not be used any more. Please use jQuery instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since Moodle 3.3.
|
||||
*/
|
||||
function select_all_in_element_with_id(id, checked) {
|
||||
throw new Error('select_all_in_element_with_id can not be used any more. Please use jQuery instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since Moodle 3.3.
|
||||
*/
|
||||
function select_all_in(elTagName, elClass, elId) {
|
||||
throw new Error('select_all_in can not be used any more. Please use jQuery instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since Moodle 3.3.
|
||||
*/
|
||||
function deselect_all_in(elTagName, elClass, elId) {
|
||||
throw new Error('deselect_all_in can not be used any more. Please use jQuery instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since Moodle 3.3.
|
||||
*/
|
||||
function confirm_if(expr, message) {
|
||||
throw new Error('confirm_if can not be used any more.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since Moodle 3.3.
|
||||
*/
|
||||
function findParentNode(el, elName, elClass, elId) {
|
||||
throw new Error('findParentNode can not be used any more. Please use jQuery instead.');
|
||||
}
|
||||
|
||||
function unmaskPassword(id) {
|
||||
var pw = document.getElementById(id);
|
||||
var chb = document.getElementById(id+'unmask');
|
||||
@@ -918,28 +846,6 @@ function unmaskPassword(id) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since Moodle 3.3.
|
||||
*/
|
||||
function filterByParent(elCollection, parentFinder) {
|
||||
throw new Error('filterByParent can not be used any more. Please use jQuery instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since Moodle 3.3, but shouldn't be used in earlier versions either.
|
||||
*/
|
||||
function fix_column_widths() {
|
||||
Y.log('fix_column_widths() no longer does anything. Please remove it from your code.', 'warn', 'javascript-static.js');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since Moodle 3.3, but shouldn't be used in earlier versions either.
|
||||
*/
|
||||
function fix_column_width(colName) {
|
||||
Y.log('fix_column_width() no longer does anything. Please remove it from your code.', 'warn', 'javascript-static.js');
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Insert myValue at current cursor position
|
||||
*/
|
||||
@@ -1136,13 +1042,6 @@ function convert_object_to_string(obj, separator) {
|
||||
return list.join(separator);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since Moodle 3.3.
|
||||
*/
|
||||
function stripHTML(str) {
|
||||
throw new Error('stripHTML can not be used any more. Please use jQuery instead.');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
function updateProgressBar(id, percent, msg, estimate, error) {
|
||||
var event,
|
||||
@@ -1242,15 +1141,6 @@ M.core_custom_menu = {
|
||||
*/
|
||||
M.form = M.form || {};
|
||||
|
||||
/**
|
||||
* Converts a nbsp indented select box into a multi drop down custom control much
|
||||
* like the custom menu. Can no longer be used.
|
||||
* @deprecated since Moodle 3.3
|
||||
*/
|
||||
M.form.init_smartselect = function() {
|
||||
throw new Error('M.form.init_smartselect can not be used any more.');
|
||||
};
|
||||
|
||||
/**
|
||||
* Initiates the listeners for skiplink interaction
|
||||
*
|
||||
|
||||
@@ -177,20 +177,6 @@ class api {
|
||||
return $conversations;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 3.6
|
||||
*/
|
||||
public static function search_users_in_course() {
|
||||
throw new \coding_exception('\core_message\api::search_users_in_course has been removed.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 3.6
|
||||
*/
|
||||
public static function search_users() {
|
||||
throw new \coding_exception('\core_message\api::search_users has been removed.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles searching for user.
|
||||
*
|
||||
@@ -1015,13 +1001,6 @@ class api {
|
||||
$ufservice->delete_favourite('core_message', 'message_conversations', $conversationid, $conversationctx);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 3.6
|
||||
*/
|
||||
public static function get_contacts() {
|
||||
throw new \coding_exception('\core_message\api::get_contacts has been removed.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the contacts for a given user.
|
||||
*
|
||||
@@ -1067,27 +1046,6 @@ class api {
|
||||
return $DB->count_records_sql($sql, [$userid, $userid]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 3.10
|
||||
*/
|
||||
public static function get_contacts_with_unread_message_count() {
|
||||
throw new \coding_exception('\core_message\api::get_contacts_with_unread_message_count has been removed.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 3.10
|
||||
*/
|
||||
public static function get_non_contacts_with_unread_message_count() {
|
||||
throw new \coding_exception('\core_message\api::get_non_contacts_with_unread_message_count has been removed.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 3.6
|
||||
*/
|
||||
public static function get_messages() {
|
||||
throw new \coding_exception('\core_message\api::get_messages has been removed.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the messages for the defined conversation.
|
||||
*
|
||||
@@ -1120,13 +1078,6 @@ class api {
|
||||
return helper::format_conversation_messages($userid, $convid, $messages);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 3.6
|
||||
*/
|
||||
public static function get_most_recent_message() {
|
||||
throw new \coding_exception('\core_message\api::get_most_recent_message has been removed.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the most recent message in a conversation.
|
||||
*
|
||||
@@ -1149,13 +1100,6 @@ class api {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 3.6
|
||||
*/
|
||||
public static function get_profile() {
|
||||
throw new \coding_exception('\core_message\api::get_profile has been removed.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a user can delete messages they have either received or sent.
|
||||
*
|
||||
@@ -1191,14 +1135,6 @@ class api {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 3.6
|
||||
*/
|
||||
public static function delete_conversation() {
|
||||
throw new \coding_exception('\core_message\api::delete_conversation() is deprecated, please use ' .
|
||||
'\core_message\api::delete_conversation_by_id() instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes a conversation for a specified user.
|
||||
*
|
||||
@@ -1474,14 +1410,6 @@ class api {
|
||||
$notifications->close();
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 3.5
|
||||
*/
|
||||
public static function mark_all_read_for_user() {
|
||||
throw new \coding_exception('\core_message\api::mark_all_read_for_user has been removed. Please either use ' .
|
||||
'\core_message\api::mark_all_notifications_as_read or \core_message\api::mark_all_messages_as_read');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns message preferences.
|
||||
*
|
||||
@@ -1527,16 +1455,6 @@ class api {
|
||||
return $DB->count_records_sql($sql, array('userid' => $user->id));
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 3.8
|
||||
*/
|
||||
public static function can_post_message() {
|
||||
throw new \coding_exception(
|
||||
'\core_message\api::can_post_message is deprecated and no longer used, ' .
|
||||
'please use \core_message\api::can_send_message instead.'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if a user is permitted to send another user a private message.
|
||||
*
|
||||
@@ -1734,20 +1652,6 @@ class api {
|
||||
return $privacypreference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 3.6
|
||||
*/
|
||||
public static function is_user_non_contact_blocked() {
|
||||
throw new \coding_exception('\core_message\api::is_user_non_contact_blocked() is deprecated');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 3.6
|
||||
*/
|
||||
public static function is_user_blocked() {
|
||||
throw new \coding_exception('\core_message\api::is_user_blocked is deprecated and should not be used.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get specified message processor, validate corresponding plugin existence and
|
||||
* system configuration.
|
||||
@@ -2038,14 +1942,6 @@ class api {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 3.8
|
||||
*/
|
||||
public static function get_individual_conversations_between_users() {
|
||||
throw new \coding_exception('\core_message\api::get_individual_conversations_between_users ' .
|
||||
' is deprecated and no longer used.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the self conversation for a user.
|
||||
*
|
||||
@@ -2064,14 +1960,6 @@ class api {
|
||||
return $DB->get_record('message_conversations', $conditions);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 3.6
|
||||
*/
|
||||
public static function create_conversation_between_users() {
|
||||
throw new \coding_exception('\core_message\api::create_conversation_between_users is deprecated, please use ' .
|
||||
'\core_message\api::create_conversation instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a conversation with selected users and messages.
|
||||
*
|
||||
|
||||
@@ -32,14 +32,6 @@ require_once($CFG->dirroot . '/message/lib.php');
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class helper {
|
||||
|
||||
/**
|
||||
* @deprecated since 3.6
|
||||
*/
|
||||
public static function get_messages() {
|
||||
throw new \coding_exception('\core_message\helper::get_messages has been removed.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function to retrieve conversation messages.
|
||||
*
|
||||
@@ -158,13 +150,6 @@ class helper {
|
||||
return $conversation;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 3.6
|
||||
*/
|
||||
public static function create_messages() {
|
||||
throw new \coding_exception('\core_message\helper::create_messages has been removed.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function for creating a contact object.
|
||||
*
|
||||
@@ -533,12 +518,6 @@ class helper {
|
||||
|
||||
return $members;
|
||||
}
|
||||
/**
|
||||
* @deprecated since 3.6
|
||||
*/
|
||||
public static function get_conversations_legacy_formatter() {
|
||||
throw new \coding_exception('\core_message\helper::get_conversations_legacy_formatter has been removed.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the messaging widget.
|
||||
|
||||
@@ -1,136 +0,0 @@
|
||||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* The mod_choice answer submitted event.
|
||||
*
|
||||
* @package mod_choice
|
||||
* @copyright 2013 Adrian Greeve <[email protected]>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace mod_choice\event;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* The mod_choice answer submitted event class.
|
||||
*
|
||||
* This event is deprecated in Moodle 3.2, it can no longer be triggered, do not
|
||||
* write event observers for it. This event can only be initiated during
|
||||
* restore from previous Moodle versions and appear in the logs.
|
||||
*
|
||||
* Event observers should listen to mod_choice\event\answer_created instead that
|
||||
* will be triggered once for each option selected
|
||||
*
|
||||
* @property-read array $other {
|
||||
* Extra information about event.
|
||||
*
|
||||
* - int choiceid: id of choice.
|
||||
* - int optionid: (optional) id of option.
|
||||
* }
|
||||
*
|
||||
* @deprecated since 3.2
|
||||
* @package mod_choice
|
||||
* @since Moodle 2.6
|
||||
* @copyright 2013 Adrian Greeve <[email protected]>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class answer_submitted extends \core\event\base {
|
||||
|
||||
/**
|
||||
* Returns description of what happened.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with id '$this->userid' made the choice with id '$this->objectid' in the choice activity
|
||||
with course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
* Return localised event name.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function get_name() {
|
||||
return get_string('eventanswersubmitted', 'mod_choice');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get URL related to the action
|
||||
*
|
||||
* @return \moodle_url
|
||||
*/
|
||||
public function get_url() {
|
||||
return new \moodle_url('/mod/choice/view.php', array('id' => $this->contextinstanceid));
|
||||
}
|
||||
|
||||
/**
|
||||
* Init method.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function init() {
|
||||
// The objecttable here is wrong. We are submitting an answer, not a choice activity.
|
||||
// This also makes the description misleading as it states we made a choice with id
|
||||
// '$this->objectid' which just refers to the 'choice' table. The trigger for
|
||||
// this event should be triggered after we insert to the 'choice_answers' table.
|
||||
$this->data['crud'] = 'c';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['objecttable'] = 'choice';
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom validation.
|
||||
*
|
||||
* @throws \coding_exception
|
||||
* @return void
|
||||
*/
|
||||
protected function validate_data() {
|
||||
parent::validate_data();
|
||||
|
||||
debugging('Event \\mod_choice\event\\answer_submitted should not be used '
|
||||
. 'any more for triggering new events and can only be initiated during restore. '
|
||||
. 'For new events please use \\mod_choice\\event\\answer_created', DEBUG_DEVELOPER);
|
||||
|
||||
if (!isset($this->other['choiceid'])) {
|
||||
throw new \coding_exception('The \'choiceid\' value must be set in other.');
|
||||
}
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'choice', 'restore' => 'choice');
|
||||
}
|
||||
|
||||
public static function get_other_mapping() {
|
||||
$othermapped = array();
|
||||
$othermapped['choiceid'] = array('db' => 'choice', 'restore' => 'choice');
|
||||
|
||||
// The 'optionid' is being passed as an array, so we can't map it. The event is
|
||||
// triggered each time a choice is answered, where it may be possible to select
|
||||
// multiple choices, so the value is converted to an array, which is then passed
|
||||
// to the event. Ideally this event should be triggered every time we insert to the
|
||||
// 'choice_answers' table so this will only be an int.
|
||||
$othermapped['optionid'] = \core\event\base::NOT_MAPPED;
|
||||
|
||||
return $othermapped;
|
||||
}
|
||||
|
||||
public static function is_deprecated() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -1,138 +0,0 @@
|
||||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* The mod_choice answer updated event.
|
||||
*
|
||||
* @package mod_choice
|
||||
* @copyright 2013 Adrian Greeve <[email protected]>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace mod_choice\event;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* The mod_choice answer updated event class.
|
||||
*
|
||||
* This event is deprecated in Moodle 3.2, it can no longer be triggered, do not
|
||||
* write event observers for it. This event can only be initiated during
|
||||
* restore from previous Moodle versions and appear in the logs.
|
||||
*
|
||||
* Event observers should listen to mod_choice\event\answer_created and
|
||||
* mod_choice\event\answer_deleted instead, these events will be triggered for
|
||||
* each option that was user has selected or unselected
|
||||
*
|
||||
* @property-read array $other {
|
||||
* Extra information about event.
|
||||
*
|
||||
* - int choiceid: id of choice.
|
||||
* - int optionid: (optional) id of option.
|
||||
* }
|
||||
*
|
||||
* @deprecated since 3.2
|
||||
* @package mod_choice
|
||||
* @since Moodle 2.6
|
||||
* @copyright 2013 Adrian Greeve <[email protected]>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class answer_updated extends \core\event\base {
|
||||
|
||||
/**
|
||||
* Returns description of what happened.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with id '$this->userid' updated their choice with id '$this->objectid' in the choice activity
|
||||
with course module id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
* Return localised event name.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function get_name() {
|
||||
return get_string('eventanswerupdated', 'mod_choice');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get URL related to the action
|
||||
*
|
||||
* @return \moodle_url
|
||||
*/
|
||||
public function get_url() {
|
||||
return new \moodle_url('/mod/choice/view.php', array('id' => $this->contextinstanceid));
|
||||
}
|
||||
|
||||
/**
|
||||
* Init method.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function init() {
|
||||
// The objecttable here is wrong. We are updating an answer, not a choice activity.
|
||||
// This also makes the description misleading as it states we made a choice with id
|
||||
// '$this->objectid' which just refers to the 'choice' table. The trigger for
|
||||
// this event should be triggered after we update the 'choice_answers' table.
|
||||
$this->data['crud'] = 'u';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['objecttable'] = 'choice';
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom validation.
|
||||
*
|
||||
* @throws \coding_exception
|
||||
* @return void
|
||||
*/
|
||||
protected function validate_data() {
|
||||
parent::validate_data();
|
||||
|
||||
debugging('Event \\mod_choice\event\\answer_updated should not be used '
|
||||
. 'any more for triggering new events and can only be initiated during restore. '
|
||||
. 'For new events please use \\mod_choice\\event\\answer_created '
|
||||
. 'and \\mod_choice\\event\\answer_deleted', DEBUG_DEVELOPER);
|
||||
|
||||
if (!isset($this->other['choiceid'])) {
|
||||
throw new \coding_exception('The \'choiceid\' value must be set in other.');
|
||||
}
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
return array('db' => 'choice', 'restore' => 'choice');
|
||||
}
|
||||
|
||||
public static function get_other_mapping() {
|
||||
$othermapped = array();
|
||||
$othermapped['choiceid'] = array('db' => 'choice', 'restore' => 'choice');
|
||||
|
||||
// The 'optionid' is being passed as an array, so we can't map it. The event is
|
||||
// triggered each time a choice is answered, where it may be possible to select
|
||||
// multiple choices, so the value is converted to an array, which is then passed
|
||||
// to the event. Ideally this event should be triggered every time we update the
|
||||
// 'choice_answers' table so this will only be an int.
|
||||
$othermapped['optionid'] = \core\event\base::NOT_MAPPED;
|
||||
|
||||
return $othermapped;
|
||||
}
|
||||
|
||||
public static function is_deprecated() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -1,116 +0,0 @@
|
||||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* The mod_lesson highscore added event.
|
||||
*
|
||||
* @package mod_lesson
|
||||
* @deprecated since Moodle 3.0
|
||||
* @copyright 2013 Mark Nelson <[email protected]>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
|
||||
*/
|
||||
|
||||
namespace mod_lesson\event;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* The mod_lesson highscore added event class.
|
||||
*
|
||||
* @property-read array $other {
|
||||
* Extra information about event.
|
||||
*
|
||||
* - int lessonid: the id of the lesson in the lesson table.
|
||||
* - string nickname: the user's nickname.
|
||||
* }
|
||||
*
|
||||
* @package mod_lesson
|
||||
* @since Moodle 2.7
|
||||
* @copyright 2013 Mark Nelson <[email protected]>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
|
||||
*/
|
||||
|
||||
class highscore_added extends \core\event\base {
|
||||
|
||||
/**
|
||||
* Set basic properties for the event.
|
||||
*/
|
||||
protected function init() {
|
||||
// phpcs:ignore moodle.Files.LineLength.TooLong
|
||||
debugging('mod_lesson\event\highscore_added has been deprecated. Since the functionality no longer resides in the lesson module.',
|
||||
DEBUG_DEVELOPER);
|
||||
|
||||
$this->data['objecttable'] = 'lesson_high_scores';
|
||||
$this->data['crud'] = 'c';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns localised general event name.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function get_name() {
|
||||
return get_string('eventhighscoreadded', 'mod_lesson');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get URL related to the action.
|
||||
*
|
||||
* @return \moodle_url
|
||||
*/
|
||||
public function get_url() {
|
||||
return new \moodle_url('/mod/lesson/highscores.php', array('id' => $this->contextinstanceid));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns non-localised event description with id's for admin use only.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with id '$this->userid' added a new highscore to the lesson activity with course module " .
|
||||
"id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom validations.
|
||||
*
|
||||
* @throws \coding_exception when validation fails.
|
||||
* @return void
|
||||
*/
|
||||
protected function validate_data() {
|
||||
parent::validate_data();
|
||||
|
||||
if (!isset($this->other['lessonid'])) {
|
||||
throw new \coding_exception('The \'lessonid\' value must be set in other.');
|
||||
}
|
||||
|
||||
if (!isset($this->other['nickname'])) {
|
||||
throw new \coding_exception('The \'nickname\' value must be set in other.');
|
||||
}
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
// The 'highscore' functionality was removed from core.
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function get_other_mapping() {
|
||||
// The 'highscore' functionality was removed from core.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1,90 +0,0 @@
|
||||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* The mod_lesson highscores viewed.
|
||||
*
|
||||
* @package mod_lesson
|
||||
* @deprecated since Moodle 3.0
|
||||
* @copyright 2013 Mark Nelson <[email protected]>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
|
||||
*/
|
||||
|
||||
namespace mod_lesson\event;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* The mod_lesson highscores viewed class.
|
||||
*
|
||||
* @package mod_lesson
|
||||
* @since Moodle 2.7
|
||||
* @copyright 2013 Mark Nelson <[email protected]>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
|
||||
*/
|
||||
class highscores_viewed extends \core\event\base {
|
||||
|
||||
/**
|
||||
* Set basic properties for the event.
|
||||
*/
|
||||
protected function init() {
|
||||
// phpcs:ignore moodle.Files.LineLength.TooLong
|
||||
debugging('mod_lesson\event\highscores_viewed has been deprecated. Since the functionality no longer resides in the lesson module.',
|
||||
DEBUG_DEVELOPER);
|
||||
|
||||
$this->data['objecttable'] = 'lesson';
|
||||
$this->data['crud'] = 'r';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns localised general event name.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function get_name() {
|
||||
return get_string('eventhighscoresviewed', 'mod_lesson');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get URL related to the action.
|
||||
*
|
||||
* @return \moodle_url
|
||||
*/
|
||||
public function get_url() {
|
||||
return new \moodle_url('/mod/lesson/highscores.php', array('id' => $this->contextinstanceid));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns non-localised event description with id's for admin use only.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return "The user with id '$this->userid' viewed the highscores for the lesson activity with course module " .
|
||||
"id '$this->contextinstanceid'.";
|
||||
}
|
||||
|
||||
public static function get_objectid_mapping() {
|
||||
// The 'highscore' functionality was removed from core.
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function get_other_mapping() {
|
||||
// The 'highscore' functionality was removed from core.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
/**
|
||||
* Core Report class of graphs reporting plugin
|
||||
*
|
||||
* @package scormreport_graphs
|
||||
* @copyright 2012 Ankit Kumar Agarwal
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @deprecated since Moodle 3.2
|
||||
*/
|
||||
|
||||
define('NO_DEBUG_DISPLAY', true);
|
||||
|
||||
require_once(__DIR__ . '/../../../../config.php');
|
||||
require_once($CFG->libdir . '/filelib.php');
|
||||
|
||||
debugging('This way of generating the chart is deprecated, refer to \\scormreport_graphs\\report::display().', DEBUG_DEVELOPER);
|
||||
send_file_not_found();
|
||||
@@ -1,32 +0,0 @@
|
||||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Produces a graph of log accesses for a user
|
||||
*
|
||||
* Generates an image representing the log data in a graphical manner for a user.
|
||||
*
|
||||
* @package report_log
|
||||
* @deprecated since 3.2
|
||||
* @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
require("../../config.php");
|
||||
require_once($CFG->libdir . '/filelib.php');
|
||||
|
||||
debugging('This way of generating the chart is deprecated, refer to report_log_print_graph().', DEBUG_DEVELOPER);
|
||||
send_file_not_found();
|
||||
@@ -155,16 +155,6 @@ class core_user_renderer extends plugin_renderer_base {
|
||||
return $this->output->render_from_template('core_tag/tagfeed', $items);
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the unified filter element for the course participants page.
|
||||
* @deprecated since 3.9
|
||||
* @throws coding_exception
|
||||
*/
|
||||
public function unified_filter() {
|
||||
throw new coding_exception('unified_filter cannot be used any more, please use participants_filter instead');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Render the data required for the participants filter on the course participants page.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user