Differences Between: [Versions 311 and 403] [Versions 400 and 403] [Versions 401 and 403] [Versions 402 and 403]
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 * List of deprecated mod_assign functions. 19 * 20 * @package mod_assign 21 * @copyright 2021 Jun Pataleta 22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 23 */ 24 25 /** 26 * @deprecated since Moodle 3.11 27 */ 28 function assign_get_completion_state() { 29 $completionclass = \mod_assign\completion\custom_completion::class; 30 throw new coding_exception(__FUNCTION__ . "() has been removed, please use the '{$completionclass}' class instead"); 31 } 32 33 /** 34 * @deprecated since Moodle 3.3, when the block_course_overview block was removed. 35 */ 36 function assign_print_overview() { 37 throw new coding_exception('assign_print_overview() can not be used any more and is obsolete.'); 38 } 39 40 /** 41 * @deprecated since Moodle 3.3, when the block_course_overview block was removed. 42 */ 43 function assign_get_mysubmission_details_for_print_overview() { 44 throw new coding_exception('assign_get_mysubmission_details_for_print_overview() can not be used any more and is obsolete.'); 45 } 46 47 /** 48 * @deprecated since Moodle 3.3, when the block_course_overview block was removed. 49 */ 50 function assign_get_grade_details_for_print_overview() { 51 throw new coding_exception('assign_get_grade_details_for_print_overview() can not be used any more and is obsolete.'); 52 } 53 54 /** 55 * @deprecated since Moodle 3.8 56 */ 57 function assign_scale_used() { 58 throw new coding_exception('assign_scale_used() can not be used anymore. Plugins can implement ' . 59 '<modname>_scale_used_anywhere, all implementations of <modname>_scale_used are now ignored'); 60 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body