MDL-52285 auth: Add constructors for backwards compat

These are very unlikely to be used but just to be safe..
This commit is contained in:
Dan Poltawski
2015-12-10 10:36:20 +00:00
parent 68cbd0599d
commit 4e5e185f80
4 changed files with 38 additions and 0 deletions
+6
View File
@@ -38,6 +38,12 @@ class fcFPP
$this->_pwd = "";
}
function fcFPP($host="localhost", $port="3333")
{
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct($host, $port);
}
// open a connection to the FirstClass server
function open()
{
+12
View File
@@ -91,6 +91,12 @@ class Crypt_CHAP extends PEAR
$this->generateChallenge();
}
function Crypt_CHAP()
{
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
/**
* Generates a random binary challenge
*
@@ -173,6 +179,12 @@ class Crypt_CHAP_MSv1 extends Crypt_CHAP
$this->loadExtension('hash');
}
function Crypt_CHAP_MSv1()
{
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
/**
* Generates the NT-HASH from the given plaintext password.
*
+10
View File
@@ -30,6 +30,16 @@ class mnet_xmlrpc_client {
$this->mnet = get_mnet_environment();
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*
* @deprecated since Moodle 3.1
*/
public function mnet_xmlrpc_client() {
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
self::__construct();
}
/**
* Allow users to override the default timeout
* @param int $timeout Request timeout in seconds
+10
View File
@@ -21,6 +21,16 @@ 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.
*