MDL-82284 core: Remove all PHP5 constructors

This commit is contained in:
Andrew Nicols
2026-01-01 05:20:12 +07:00
committed by meirzamoodle
parent 8316779bd9
commit fc137eaa39
109 changed files with 9 additions and 1200 deletions
@@ -0,0 +1,7 @@
issueNumber: MDL-82284
notes:
core:
- message: >-
Legacy constructors have been removed. These relate to PHP 4 and
earlier.
type: removed
-12
View File
@@ -30,7 +30,6 @@ require_once($CFG->libdir.'/authlib.php');
* Email authentication plugin.
*/
class auth_plugin_email extends auth_plugin_base {
/**
* Constructor.
*/
@@ -39,16 +38,6 @@ class auth_plugin_email extends auth_plugin_base {
$this->config = get_config('auth_email');
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function auth_plugin_email() {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
/**
* Returns true if the username and password work and false if they are
* wrong or don't exist.
@@ -255,5 +244,4 @@ class auth_plugin_email extends auth_plugin_base {
function is_captcha_enabled() {
return get_config("auth_{$this->authtype}", 'recaptcha');
}
}
-11
View File
@@ -85,7 +85,6 @@ require_once($CFG->dirroot.'/auth/ldap/locallib.php');
* LDAP authentication plugin.
*/
class auth_plugin_ldap extends auth_plugin_base {
/** @var string */
protected $roleauth;
@@ -139,16 +138,6 @@ class auth_plugin_ldap extends auth_plugin_base {
$this->init_plugin($this->authtype);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function auth_plugin_ldap() {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
/**
* Returns true if the username and password work and false if they are
* wrong or don't exist.
-12
View File
@@ -53,16 +53,6 @@ class auth_plugin_manual extends auth_plugin_base {
$this->config = (object)array_merge((array)$legacyconfig, (array)$config);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function auth_plugin_manual() {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
/**
* Returns true if the username and password work and false if they are
* wrong or don't exist. (Non-mnet accounts only!)
@@ -211,5 +201,3 @@ class auth_plugin_manual extends auth_plugin_base {
}
}
-14
View File
@@ -30,8 +30,6 @@ require_once($CFG->libdir.'/authlib.php');
* Plugin for no authentication - disabled user.
*/
class auth_plugin_nologin extends auth_plugin_base {
/**
* Constructor.
*/
@@ -39,16 +37,6 @@ class auth_plugin_nologin extends auth_plugin_base {
$this->authtype = 'nologin';
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function auth_plugin_nologin() {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
/**
* Do not allow any login.
*
@@ -131,5 +119,3 @@ class auth_plugin_nologin extends auth_plugin_base {
];
}
}
-14
View File
@@ -30,7 +30,6 @@ require_once($CFG->libdir.'/authlib.php');
* Plugin for no authentication.
*/
class auth_plugin_none extends auth_plugin_base {
/**
* Constructor.
*/
@@ -39,16 +38,6 @@ class auth_plugin_none extends auth_plugin_base {
$this->config = get_config('auth_none');
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function auth_plugin_none() {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
/**
* Returns true if the username and password work or don't exist and false
* if the user exists and the password is wrong.
@@ -133,7 +122,4 @@ class auth_plugin_none extends auth_plugin_base {
function can_be_manually_set() {
return true;
}
}
-10
View File
@@ -43,16 +43,6 @@ class auth_plugin_shibboleth extends auth_plugin_base {
$this->config = get_config('auth_shibboleth');
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function auth_plugin_shibboleth() {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
/**
* Returns true if the username and password work and false if they are
* wrong or don't exist.
-10
View File
@@ -40,16 +40,6 @@ class auth_plugin_webservice extends auth_plugin_base {
$this->config = get_config('auth_webservice');
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function auth_plugin_webservice() {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
/**
* Returns true if the username and password work and false if they are
* wrong or don't exist.
@@ -25,16 +25,6 @@ class cssparser {
$this->Clear();
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function cssparser($html = true) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($html);
}
function finalize() {
unset($this->css);
}
-10
View File
@@ -127,16 +127,6 @@ abstract class moodleform_mod extends moodleform {
parent::__construct('modedit.php');
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function moodleform_mod($current, $section, $cm, $course) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($current, $section, $cm, $course);
}
/**
* Get the current data for the form.
* @return stdClass|null
-10
View File
@@ -23,16 +23,6 @@
$this->temp_dir = make_request_directory();
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function latex() {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
/**
* Accessor function for support_platform field.
* @return boolean value of supported_platform
-10
View File
@@ -645,16 +645,6 @@ class grade_export_update_buffer {
$this->export_time = time();
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function grade_export_update_buffer() {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
public function flush($buffersize) {
global $CFG, $DB;
@@ -57,16 +57,6 @@ class moodlequickform_guideeditor extends HTML_QuickForm_input {
parent::__construct($elementname, $elementlabel, $attributes);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function moodlequickform_guideeditor($elementname=null, $elementlabel=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementname, $elementlabel, $attributes);
}
/**
* get html for help button
*
@@ -64,16 +64,6 @@ class MoodleQuickForm_rubriceditor extends HTML_QuickForm_input {
parent::__construct($elementName, $elementLabel, $attributes);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_rubriceditor($elementName=null, $elementLabel=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes);
}
/**
* get html for help button
*
-31
View File
@@ -1128,16 +1128,6 @@ class grade_plugin_return {
}
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function grade_plugin_return($params = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($params);
}
/**
* Returns return parameters as options array suitable for buttons.
* @return array options
@@ -2346,16 +2336,6 @@ class grade_seq extends grade_structure {
}
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function grade_seq($courseid, $category_grade_last=false, $nooutcomes=false) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($courseid, $category_grade_last, $nooutcomes);
}
/**
* Static recursive helper - makes the grade_item for category the last children
*
@@ -2542,17 +2522,6 @@ class grade_tree extends grade_structure {
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function grade_tree($courseid, $fillers=true, $category_grade_last=false,
$collapsed=null, $nooutcomes=false) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($courseid, $fillers, $category_grade_last, $collapsed, $nooutcomes);
}
/**
* Static recursive helper - removes items from collapsed categories
*
-10
View File
@@ -6096,16 +6096,6 @@ 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
*/
-10
View File
@@ -206,16 +206,6 @@ class component_installer {
$this->check_requisites();
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function component_installer($sourcebase, $zippath, $zipfilename, $md5filename='', $destpath='') {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($sourcebase, $zippath, $zipfilename, $md5filename, $destpath);
}
/**
* This function will check if everything is properly set to begin
* one installation. Also, it will check for required settings
-10
View File
@@ -1312,16 +1312,6 @@ class environment_results {
$this->restrict_str='';
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function environment_results($part) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($part);
}
/**
* Set the status
*
-10
View File
@@ -127,16 +127,6 @@ class EvalMath {
$this->allowimplicitmultiplication = $allowimplicitmultiplication;
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function EvalMath($allowconstants = false, $allowimplicitmultiplication = false) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($allowconstants, $allowimplicitmultiplication);
}
function e($expr) {
return $this->evaluate($expr);
}
-10
View File
@@ -91,16 +91,6 @@ class MoodleQuickForm_advcheckbox extends HTML_QuickForm_advcheckbox implements
$this->_type = 'advcheckbox';
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_advcheckbox($elementName=null, $elementLabel=null, $text=null, $attributes=null, $values=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $text, $attributes, $values);
}
/**
* get html for help button
*
-10
View File
@@ -106,16 +106,6 @@ class MoodleQuickForm_autocomplete extends MoodleQuickForm_select {
$this->_type = 'autocomplete';
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_autocomplete($elementName=null, $elementLabel=null, $options=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $options, $attributes);
}
/**
* Returns HTML for select form element.
*
-10
View File
@@ -78,16 +78,6 @@ class MoodleQuickForm_button extends HTML_QuickForm_button implements templatabl
$this->customclassoverride = $options['customclassoverride'] ?? null;
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_button($elementName=null, $value=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $value, $attributes);
}
/**
* get html for help button
*
-10
View File
@@ -72,16 +72,6 @@ class MoodleQuickForm_cancel extends MoodleQuickForm_submit
$this->updateAttributes(array('class' => $class . ' btn-cancel'));
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_cancel($elementName=null, $value=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $value, $attributes);
}
/**
* Called by HTML_QuickForm whenever form event is made on this element
*
-10
View File
@@ -62,16 +62,6 @@ class MoodleQuickForm_checkbox extends HTML_QuickForm_checkbox implements templa
parent::__construct($elementName, $elementLabel, $text, $attributes);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_checkbox($elementName=null, $elementLabel=null, $text='', $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $text, $attributes);
}
/**
* get html for help button
*
-10
View File
@@ -99,16 +99,6 @@ class MoodleQuickForm_date_selector extends MoodleQuickForm_group {
}
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_date_selector($elementName = null, $elementLabel = null, $options = array(), $attributes = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $options, $attributes);
}
/**
* This will create date group element constisting of day, month and year.
*
-10
View File
@@ -102,16 +102,6 @@ class MoodleQuickForm_date_time_selector extends MoodleQuickForm_group {
}
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_date_time_selector($elementName = null, $elementLabel = null, $options = array(), $attributes = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $options, $attributes);
}
/**
* This will create date group element constisting of day, month and year.
*
-11
View File
@@ -111,17 +111,6 @@ class MoodleQuickForm_duration extends MoodleQuickForm_group {
}
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_duration($elementName = null, $elementLabel = null,
$options = [], $attributes = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $options, $attributes);
}
/**
* Returns time associative array of unit length.
*
-10
View File
@@ -105,16 +105,6 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element implements templatab
editors_head_setup();
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_editor($elementName=null, $elementLabel=null, $attributes=null, $options=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes, $options);
}
/**
* Called by HTML_QuickForm whenever form event is made on this element
*
-10
View File
@@ -84,16 +84,6 @@ class MoodleQuickForm_filemanager extends HTML_QuickForm_element implements temp
parent::__construct($elementName, $elementLabel, $attributes);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_filemanager($elementName=null, $elementLabel=null, $attributes=null, $options=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes, $options);
}
/**
* Called by HTML_QuickForm whenever form event is made on this element
*
-10
View File
@@ -88,16 +88,6 @@ class MoodleQuickForm_filepicker extends HTML_QuickForm_input implements templat
parent::__construct($elementName, $elementLabel, $attributes);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_filepicker($elementName=null, $elementLabel=null, $attributes=null, $options=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes, $options);
}
/**
* Returns html for help button.
*
-10
View File
@@ -72,16 +72,6 @@ class MoodleQuickForm_grading extends HTML_QuickForm_input implements templatabl
$this->gradingattributes = $attributes;
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_grading($elementName=null, $elementLabel=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes);
}
/**
* Helper function to retrieve gradingform_instance passed in element attributes
*
-10
View File
@@ -76,16 +76,6 @@ class MoodleQuickForm_group extends HTML_QuickForm_group implements templatable
parent::__construct($elementName, $elementLabel, $elements, $separator, $appendName, $attributes);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_group($elementName=null, $elementLabel=null, $elements=null, $separator=null, $appendName = true) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $elements, $separator, $appendName);
}
/** @var string template type, would cause problems with client side validation so will leave for now */
//var $_elementTemplateType='fieldset';
-10
View File
@@ -52,16 +52,6 @@ class MoodleQuickForm_header extends HTML_QuickForm_header
parent::__construct($elementName, $text);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_header($elementName = null, $text = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $text);
}
/**
* Accepts a renderer
*
-9
View File
@@ -53,15 +53,6 @@ class MoodleQuickForm_hidden extends HTML_QuickForm_hidden{
parent::__construct($elementName, $value, $attributes);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_hidden($elementName=null, $value='', $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
return self::__construct($elementName, $value, $attributes);
}
/**
* get html for help button
*
-10
View File
@@ -92,16 +92,6 @@ class MoodleQuickForm_listing extends HTML_QuickForm_input {
parent::__construct($elementName, $elementLabel, $attributes);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_listing($elementName=null, $elementLabel=null, $attributes=null, $options=array()) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes, $options);
}
/**
* Returns HTML for listing form element.
*
-10
View File
@@ -119,16 +119,6 @@ class MoodleQuickForm_modgrade extends MoodleQuickForm_group {
$this->useratings = !empty($options['useratings']);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_modgrade($elementname = null, $elementlabel = null, $options = array(), $attributes = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementname, $elementlabel, $options, $attributes);
}
/**
* Create elements for this group.
*/
-10
View File
@@ -62,16 +62,6 @@ class MoodleQuickForm_modvisible extends MoodleQuickForm_select{
$this->_type = 'modvisible';
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_modvisible($elementName=null, $elementLabel=null, $attributes=null, $options=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes, $options);
}
/**
* Called by HTML_QuickForm whenever form event is made on this element
*
-10
View File
@@ -76,16 +76,6 @@ class MoodleQuickForm_password extends HTML_QuickForm_password implements templa
parent::__construct($elementName, $elementLabel, $attributes);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_password($elementName=null, $elementLabel=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes);
}
/**
* get html for help button
*
-10
View File
@@ -58,16 +58,6 @@ class MoodleQuickForm_passwordunmask extends MoodleQuickForm_password {
$this->setType('passwordunmask');
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_passwordunmask($elementName=null, $elementLabel=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes);
}
/**
* Function to export the renderer data in a format that is suitable for a mustache template.
*
-10
View File
@@ -64,14 +64,4 @@ class MoodleQuickForm_questioncategory extends MoodleQuickForm_selectgroups {
$this->_options['currentcat'], false, $this->_options['nochildrenof'], false));
}
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_questioncategory($elementName = null, $elementLabel = null, $options = null, $attributes = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $options, $attributes);
}
}
-10
View File
@@ -60,16 +60,6 @@ class MoodleQuickForm_radio extends HTML_QuickForm_radio implements templatable
parent::__construct($elementName, $elementLabel, $text, $value, $attributes);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_radio($elementName=null, $elementLabel=null, $text=null, $value=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $text, $value, $attributes);
}
/**
* get html for help button
*
-10
View File
@@ -59,16 +59,6 @@ class MoodleQuickForm_recaptcha extends HTML_QuickForm_input implements templata
$this->_type = 'recaptcha';
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_recaptcha($elementName = null, $elementLabel = null, $attributes = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes);
}
/**
* Returns the reCAPTCHA element in HTML
*
-10
View File
@@ -52,14 +52,4 @@ class MoodleQuickForm_searchableselector extends MoodleQuickForm_autocomplete {
$options = ['' => get_string('noselection', 'form')] + $options;
parent::__construct($elementname, $elementlabel, $options, $attributes);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_searchableselector($elementName=null, $elementLabel=null, $options=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $options, $attributes);
}
}
-10
View File
@@ -62,16 +62,6 @@ class MoodleQuickForm_select extends HTML_QuickForm_select implements templatabl
parent::__construct($elementName, $elementLabel, $options, $attributes);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_select($elementName=null, $elementLabel=null, $options=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $options, $attributes);
}
/**
* Sets label to be hidden
*
-10
View File
@@ -79,16 +79,6 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element implements tem
}
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_selectgroups($elementName=null, $elementLabel=null, $optgrps=null, $attributes=null, $showchoose=false) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $optgrps, $attributes, $showchoose);
}
/**
* Sets the default values of the select box
*
-10
View File
@@ -83,16 +83,6 @@ class MoodleQuickForm_selectwithlink extends HTML_QuickForm_select implements te
$this->_type = 'selectwithlink';
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_selectwithlink($elementName=null, $elementLabel=null, $options=null, $attributes=null, $linkdata=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $options, $attributes, $linkdata);
}
/**
* Sets label to be hidden
*
-10
View File
@@ -54,16 +54,6 @@ class MoodleQuickForm_selectyesno extends MoodleQuickForm_select{
$this->_persistantFreeze = true;
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_selectyesno($elementName=null, $elementLabel=null, $attributes=null, $options=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes, $options);
}
/**
* Called by HTML_QuickForm whenever form event is made on this element
*
-10
View File
@@ -60,16 +60,6 @@ class MoodleQuickForm_static extends HTML_QuickForm_static implements templatabl
parent::__construct($elementName, $elementLabel, $text);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_static($elementName=null, $elementLabel=null, $text=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $text);
}
/**
* get html for help button
*
-10
View File
@@ -83,16 +83,6 @@ class MoodleQuickForm_submit extends HTML_QuickForm_submit implements templatabl
$this->customclassoverride = $options['customclassoverride'] ?? false;
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_submit($elementName=null, $value=null, $attributes=null, $primary = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $value, $attributes, $primary);
}
/**
* Called by HTML_QuickForm whenever form event is made on this element
*
-10
View File
@@ -154,16 +154,6 @@ class MoodleQuickForm_tags extends MoodleQuickForm_autocomplete {
return true;
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_tags($elementName = null, $elementLabel = null, $options = array(), $attributes = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $options, $attributes);
}
/**
* Finds the tag collection to use for standard tag selector
*
-10
View File
@@ -61,16 +61,6 @@ class MoodleQuickForm_text extends HTML_QuickForm_text implements templatable {
parent::__construct($elementName, $elementLabel, $attributes);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_text($elementName=null, $elementLabel=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes);
}
/**
* Sets label to be hidden
*
-10
View File
@@ -66,16 +66,6 @@ class MoodleQuickForm_textarea extends HTML_QuickForm_textarea implements templa
parent::__construct($elementName, $elementLabel, $attributes);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_textarea($elementName=null, $elementLabel=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes);
}
/**
* get html for help button
*
-10
View File
@@ -77,16 +77,6 @@ class MoodleQuickForm_url extends HTML_QuickForm_text implements templatable {
$this->_type = 'url';
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_url($elementName=null, $elementLabel=null, $attributes=null, $options=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes, $options);
}
/**
* Sets label to be hidden
*
-10
View File
@@ -67,16 +67,6 @@ class MoodleQuickForm_warning extends HTML_QuickForm_static implements templatab
$this->_class = $elementClass;
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_warning($elementName=null, $elementClass='notifyproblem', $text=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementClass, $text);
}
/**
* Returns HTML for this form element.
*
-30
View File
@@ -231,16 +231,6 @@ abstract class moodleform {
$this->_process_submission($method);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function moodleform($action=null, $customdata=null, $method='post', $target='', $attributes=null, $editable=true) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($action, $customdata, $method, $target, $attributes, $editable);
}
/**
* It should returns unique identifier for the form.
* Currently it will return class name, but in case two same forms have to be
@@ -1789,16 +1779,6 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless {
);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm($formName, $method, $action, $target='', $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($formName, $method, $action, $target, $attributes);
}
/**
* Use this method to indicate an element in a form is an advanced field. If items in a form
* are marked as advanced then 'Hide/Show Advanced' buttons will automatically be displayed in the
@@ -3278,16 +3258,6 @@ class MoodleQuickForm_Renderer extends HTML_QuickForm_Renderer_Tableless{
parent::__construct();
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_Renderer() {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
/**
* Set element's as adavance element
*
-10
View File
@@ -1213,16 +1213,6 @@ class graph {
//ImageColorTransparent($this->image, $this->colour['white']); // colour for transparency
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function graph() {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
/**
* Prepare label's text for GD output.
*
-30
View File
@@ -51,16 +51,6 @@
$this->_regex = null;
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function ParallelRegex($case) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($case);
}
/**
* Adds a pattern with an optional label.
* @param string $pattern Perl style regex, but ( and )
@@ -151,16 +141,6 @@
$this->_stack = array($start);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function StateStack($start) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($start);
}
/**
* Accessor for current state.
* @return string State as string.
@@ -231,16 +211,6 @@
$this->_mode_handlers = array();
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function Lexer(&$parser, $start = "accept", $case = false) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($parser, $start, $case);
}
/**
* Adds a token search pattern for a particular
* parsing mode. The pattern does not change the
-10
View File
@@ -67,16 +67,6 @@ class calc_formula {
}
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function calc_formula($formula, $params=false) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($formula, $params);
}
/**
* Raplace parameters used in existing formula,
* parameter names must contain only lowercase [a-z] letters, no other characters are allowed!
-10
View File
@@ -89,16 +89,6 @@ class HTML_Common {
$this->setTabOffset($tabOffset);
} // end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_Common($attributes = null, $tabOffset = 0) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($attributes, $tabOffset);
}
public static function raiseError($message = null,
$code = null,
$mode = null,
-21
View File
@@ -293,16 +293,6 @@ class HTML_QuickForm extends HTML_Common {
}
} // end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm($formName='', $method='post', $action='', $target='', $attributes=null, $trackSubmit = false) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($formName, $method, $action, $target, $attributes, $trackSubmit);
}
// }}}
// {{{ apiVersion()
@@ -2005,17 +1995,6 @@ class HTML_QuickForm_Error extends PEAR_Error {
}
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_Error($code = QUICKFORM_ERROR, $mode = PEAR_ERROR_RETURN,
$level = E_USER_NOTICE, $debuginfo = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($code, $mode, $level, $debuginfo);
}
// }}}
} // end class HTML_QuickForm_Error
?>
@@ -36,16 +36,6 @@ class HTML_QuickForm_Renderer
public function __construct() {
} // end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_Renderer() {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
/**
* Called when visiting a form, before processing any form elements
*
@@ -153,16 +153,6 @@ class HTML_QuickForm_Renderer_Array extends HTML_QuickForm_Renderer
$this->_staticLabels = $staticLabels;
} // end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_Renderer_Array($collectHidden = false, $staticLabels = false) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($collectHidden, $staticLabels);
}
/**
* Returns the resultant array
*
@@ -323,4 +313,4 @@ class HTML_QuickForm_Renderer_Array extends HTML_QuickForm_Renderer
}
}
}
?>
?>
@@ -145,16 +145,6 @@ class HTML_QuickForm_Renderer_Default extends HTML_QuickForm_Renderer
parent::__construct();
} // end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_Renderer_Default() {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
} // end constructor
/**
* returns the HTML generated for the form
*
@@ -84,16 +84,6 @@ class HTML_QuickForm_Renderer_Object extends HTML_QuickForm_Renderer
$this->_obj = new QuickformForm;
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_Renderer_Object($collecthidden = false) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($collecthidden);
}
/**
* Return the rendered Object
* @access public
@@ -122,16 +122,6 @@ class HTML_QuickForm_Renderer_Tableless extends HTML_QuickForm_Renderer_Default
parent::__construct();
} // end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_Renderer_Tableless() {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
/**
* Called when visiting a header element
*
@@ -82,16 +82,6 @@ class HTML_QuickForm_advcheckbox extends HTML_QuickForm_checkbox
$this->setValues($values);
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_advcheckbox($elementName=null, $elementLabel=null, $text=null, $attributes=null, $values=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $text, $attributes, $values);
}
// }}}
// {{{ getPrivateName()
@@ -84,16 +84,6 @@ class HTML_QuickForm_autocomplete extends HTML_QuickForm_text
}
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_autocomplete($elementName = null, $elementLabel = null, $options = null, $attributes = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $options, $attributes);
}
// }}}
// {{{ setOptions()
-10
View File
@@ -52,16 +52,6 @@ class HTML_QuickForm_button extends HTML_QuickForm_input
$this->setType('button');
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_button($elementName=null, $value=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $value, $attributes);
}
// }}}
// {{{ freeze()
@@ -65,16 +65,6 @@ class HTML_QuickForm_checkbox extends HTML_QuickForm_input
$this->updateAttributes(array('value'=>1));
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_checkbox($elementName=null, $elementLabel=null, $text='', $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $text, $attributes);
}
// }}}
// {{{ setChecked()
-10
View File
@@ -288,16 +288,6 @@ class HTML_QuickForm_date extends HTML_QuickForm_group
}
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_date($elementName = null, $elementLabel = null, $options = array(), $attributes = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $options, $attributes);
}
// }}}
// {{{ _createElements()
@@ -94,16 +94,6 @@ class HTML_QuickForm_element extends HTML_Common
}
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_element($elementName=null, $elementLabel=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes);
}
// }}}
// {{{ apiVersion()
-10
View File
@@ -66,16 +66,6 @@ class HTML_QuickForm_file extends HTML_QuickForm_input
$this->setType('file');
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_file($elementName=null, $elementLabel=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes);
}
// }}}
// {{{ setSize()
+1 -11
View File
@@ -110,16 +110,6 @@ class HTML_QuickForm_group extends HTML_QuickForm_element
}
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_group($elementName = null, $elementLabel = null, $elements = null, $separator = null, $appendName = true, $attributes = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $elements, $separator, $appendName);
}
// }}}
// {{{ setName()
@@ -589,4 +579,4 @@ class HTML_QuickForm_group extends HTML_QuickForm_element
// }}}
} //end class HTML_QuickForm_group
?>
?>
-10
View File
@@ -43,16 +43,6 @@ class HTML_QuickForm_header extends HTML_QuickForm_static
$this->_type = 'header';
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_header($elementName = null, $text = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $text);
}
// }}}
// {{{ accept()
-10
View File
@@ -51,16 +51,6 @@ class HTML_QuickForm_hidden extends HTML_QuickForm_input
$this->setValue($value);
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_hidden($elementName=null, $value='', $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
return self::__construct($elementName, $value, $attributes);
}
// }}}
// {{{ freeze()
@@ -59,16 +59,6 @@ class HTML_QuickForm_hiddenselect extends HTML_QuickForm_select
}
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_hiddenselect($elementName=null, $elementLabel=null, $options=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $options, $attributes);
}
// }}}
// {{{ toHtml()
@@ -129,16 +129,6 @@ class HTML_QuickForm_hierselect extends HTML_QuickForm_group
$this->_appendName = true;
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_hierselect($elementName=null, $elementLabel=null, $attributes=null, $separator=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes, $separator);
}
// }}}
// {{{ setOptions()
-10
View File
@@ -45,16 +45,6 @@ class HTML_QuickForm_html extends HTML_QuickForm_static
$this->_type = 'html';
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_html($text = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($text);
}
// }}}
// {{{ accept()
-10
View File
@@ -50,16 +50,6 @@ class HTML_QuickForm_image extends HTML_QuickForm_input
$this->setSource($src);
} // end class constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_image($elementName=null, $src='', $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $src, $attributes);
}
// }}}
// {{{ setSource()
-10
View File
@@ -49,16 +49,6 @@ class HTML_QuickForm_input extends HTML_QuickForm_element
parent::__construct($elementName, $elementLabel, $attributes);
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_input($elementName=null, $elementLabel=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes);
}
// }}}
// {{{ setType()
-10
View File
@@ -66,16 +66,6 @@ class HTML_QuickForm_link extends HTML_QuickForm_static
$this->_text = $text;
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_link($elementName=null, $elementLabel=null, $href=null, $text=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $href, $text, $attributes);
}
// }}}
// {{{ setName()
@@ -51,16 +51,6 @@ class HTML_QuickForm_password extends HTML_QuickForm_input
$this->setType('password');
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_password($elementName=null, $elementLabel=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes);
}
// }}}
// {{{ setSize()
-10
View File
@@ -68,16 +68,6 @@ class HTML_QuickForm_radio extends HTML_QuickForm_input
$this->_text = $text;
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_radio($elementName=null, $elementLabel=null, $text=null, $value=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $text, $value, $attributes);
}
// }}}
function _generateId() {
-10
View File
@@ -51,16 +51,6 @@ class HTML_QuickForm_reset extends HTML_QuickForm_input
$this->setType('reset');
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_reset($elementName=null, $value=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $value, $attributes);
}
// }}}
// {{{ freeze()
-10
View File
@@ -75,16 +75,6 @@ class HTML_QuickForm_select extends HTML_QuickForm_element {
}
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_select($elementName=null, $elementLabel=null, $options=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes);
}
// }}}
// {{{ apiVersion()
-10
View File
@@ -56,16 +56,6 @@ class HTML_QuickForm_static extends HTML_QuickForm_element {
$this->_text = $text;
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_static($elementName=null, $elementLabel=null, $text=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $text);
}
// }}}
// {{{ setName()
-10
View File
@@ -50,16 +50,6 @@ class HTML_QuickForm_submit extends HTML_QuickForm_input
$this->setType('submit');
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_submit($elementName=null, $value=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $value, $attributes);
}
// }}}
// {{{ freeze()
-10
View File
@@ -52,16 +52,6 @@ class HTML_QuickForm_text extends HTML_QuickForm_input
$this->setType('text');
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_text($elementName=null, $elementLabel=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes);
}
// }}}
// {{{ setSize()
@@ -61,16 +61,6 @@ class HTML_QuickForm_textarea extends HTML_QuickForm_element
$this->_type = 'textarea';
} //end constructor
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_textarea($elementName=null, $elementLabel=null, $attributes=null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes);
}
// }}}
// {{{ setName()
@@ -51,16 +51,6 @@ class HTML_QuickForm_xbutton extends HTML_QuickForm_element
$this->_type = 'xbutton';
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function HTML_QuickForm_xbutton($elementName = null, $elementContent = null, $attributes = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementContent, $attributes);
}
function toHtml()
{
return '<button' . $this->getAttributes(true) . '>' . $this->_content . '</button>';
-8
View File
@@ -890,14 +890,6 @@ class PEAR_Error
}
}
/**
* Old syntax of class constructor for backward compatibility.
*/
public function PEAR_Error($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null) {
self::__construct($message, $code, $mode, $options, $userinfo);
}
/**
* Get the error mode from an error object.
*
-20
View File
@@ -57,16 +57,6 @@ class search_token {
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function search_token($type, $value) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($type, $value);
}
// Try to clean up user input to avoid potential security issues.
// Need to think about this some more.
@@ -213,16 +203,6 @@ class search_lexer extends Lexer{
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function search_lexer(&$parser) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($parser);
}
}
-10
View File
@@ -61,16 +61,6 @@ class mnet_encxml_parser {
return $this->initialise();
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function mnet_encxml_parser() {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
/**
* Set default element handlers and initialise properties to empty.
*
-10
View File
@@ -20,16 +20,6 @@ class mod_data_export_form extends moodleform {
parent::__construct($url);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function mod_data_export_form($url, $datafields, $cm, $data) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($url, $datafields, $cm, $data);
}
function definition() {
$mform =& $this->_form;
$mform->addElement('header', 'exportformat', get_string('chooseexportformat', 'data'));
-10
View File
@@ -38,16 +38,6 @@ class mod_lesson_mod_form extends moodleform_mod {
parent::__construct($current, $section, $cm, $course);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function mod_lesson_mod_form($current, $section, $cm, $course) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($current, $section, $cm, $course);
}
function definition() {
global $CFG, $COURSE, $DB, $OUTPUT;
-31
View File
@@ -321,16 +321,6 @@ class ouwiki_line {
}
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function ouwiki_line($data, $linepos) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($data, $linepos);
}
/**
* @return string Normalised string representation of this line object
*/
@@ -383,16 +373,6 @@ class ouwiki_word {
$this->word=$word;
$this->start=$start;
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function ouwiki_word($word, $start) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($word, $start);
}
}
/**
@@ -534,16 +514,6 @@ class ouwiki_changes {
}
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function ouwiki_changes($diff, $count2) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($diff, $count2);
}
/**
* Find deleted lines. These are lines in file1 that
* cannot be present even in modified form in file2
@@ -762,4 +732,3 @@ function ouwiki_diff_html($html1,$html2) {
'<strong class="accesshide">'.get_string('addedends','wiki').'</strong>');
return array($result1,$result2);
}
-10
View File
@@ -60,16 +60,6 @@ class MoodleQuickForm_wikieditor extends MoodleQuickForm_textarea {
$this->_type = 'wikieditor';
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_wikieditor($elementName = null, $elementLabel = null, $attributes = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes);
}
function setWikiFormat($wikiformat) {
$this->wikiformat = $wikiformat;
}
-12
View File
@@ -49,16 +49,6 @@ class MoodleQuickForm_wikifiletable extends HTML_QuickForm_element {
$this->_format = $format;
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function MoodleQuickForm_wikifiletable($elementName = null, $elementLabel = null, $attributes = null, $fileinfo = null, $format = null) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($elementName, $elementLabel, $attributes, $fileinfo, $format);
}
function onQuickFormEvent($event, $arg, &$caller) {
global $OUTPUT;
@@ -174,5 +164,3 @@ class MoodleQuickForm_wikifiletable extends HTML_QuickForm_element {
//register wikieditor
MoodleQuickForm::registerElementType('wikifiletable', $CFG->dirroot."/mod/wiki/editors/wikifiletable.php", 'MoodleQuickForm_wikifiletable');
-10
View File
@@ -41,16 +41,6 @@ class user_filter_cohort extends user_filter_type {
parent::__construct('cohort', get_string('idnumber', 'core_cohort'), $advanced);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function user_filter_cohort($advanced) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($advanced);
}
/**
* Returns an array of comparison operators
* @return array of comparison operators
-10
View File
@@ -41,16 +41,6 @@ class user_filter_courserole extends user_filter_type {
parent::__construct($name, $label, $advanced);
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function user_filter_courserole($name, $label, $advanced) {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($name, $label, $advanced);
}
/**
* Returns an array of available roles
* @return array of availble roles

Some files were not shown because too many files have changed in this diff Show More