MDL-71326 plagiarism: Final deprecation of plagiarism functions

Signed-off-by: Daniel Ziegenberg <[email protected]>
This commit is contained in:
Daniel Ziegenberg
2024-08-21 23:25:25 +02:00
parent e0a9cf2288
commit 7c5199bdc9
6 changed files with 41 additions and 105 deletions
+26
View File
@@ -751,3 +751,29 @@ function reset_password_and_mail($user) {
// Directly email rather than using the messaging system to ensure its not routed to a popup or jabber.
return email_to_user($user, $supportuser, $subject, $message);
}
/**
* @deprecated Since Moodle 4.0 MDL-71175. Please use plagiarism_get_links() or plugin specific functions..
*/
#[\core\attribute\deprecated(
replacement: 'plagiarism_get_links',
since: '4.0',
mdl: 'MDL-71175',
final: true,
)]
function plagiarism_get_file_results(): void {
\core\deprecation::emit_deprecation_if_present(__FUNCTION__);
}
/**
* @deprecated Since Moodle 4.0 - Please use {plugin name}_before_standard_top_of_body_html instead.
*/
#[\core\attribute\deprecated(
replacement: '{plugin name}_before_standard_top_of_body_html',
since: '4.0',
mdl: 'MDL-71175',
final: true,
)]
function plagiarism_update_status(): void {
\core\deprecation::emit_deprecation_if_present(__FUNCTION__);
}