Change all the "new class" by "new Class"

This commit is contained in:
2021-05-07 13:10:37 +02:00
parent c8d275be31
commit c09fa961cd
39 changed files with 430 additions and 432 deletions

View File

@@ -26,7 +26,7 @@ class Authimap extends Auth
function __construct ()
{
if (!function_exists ("imap_open"))
throw new Exception ("IMAP support unavailable in PHP", 500);
throw new \Exception ("IMAP support unavailable in PHP", 500);
}
/** Establish the connection to IMAP server. Don't do anything as the
@@ -41,7 +41,7 @@ class Authimap extends Auth
@param string $password Password to authenticate */
public function authentication ($email, $password)
{
$imap = new imap ($this->imapServer, $this->imapPort,
$imap = new Imap ($this->imapServer, $this->imapPort,
$email, $password,
$this->imapSSL, $this->imapSSLCheckCertificates);
$this->details = array ("email" => $email);
@@ -61,7 +61,7 @@ class Authimap extends Auth
@param string $newpassword The new password to be recorded */
public function changepassword ($oldpassword, $newpassword)
{
throw new Exception (dgettext ("domframework",
throw new \Exception (dgettext ("domframework",
"The password can't be change for IMAP users"), 405);
}
@@ -72,7 +72,7 @@ class Authimap extends Auth
@param string $newpassword The new password to be recorded */
public function overwritepassword ($email, $newpassword)
{
throw new exception (dgettext ("domframework",
throw new \Exception (dgettext ("domframework",
"The password can't be overwrite for IMAP users"),
405);
}
@@ -81,7 +81,7 @@ class Authimap extends Auth
Return firstname, lastname, mail, with mail is an array */
public function listusers ()
{
throw new Exception (dgettext ("domframework",
throw new \Exception (dgettext ("domframework",
"Can't get list of users for IMAP server"), 405);
}
}