MDL-51784 general: Adding missing php4 style constructors

Adding them to warn people calling the php4 constructor.
This commit is contained in:
David Monllao
2015-12-11 14:02:42 +08:00
parent c4d0b752a2
commit 9e313e798f
18 changed files with 248 additions and 5 deletions
+10
View File
@@ -4941,6 +4941,16 @@ class admin_setting_special_gradelimiting extends admin_setting_configcheckbox {
get_string('unlimitedgrades_help', 'grades'), '0', '1', '0');
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function admin_setting_special_gradelimiting() {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
/**
* Force site regrading
*/