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:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user