* EMailAdmin: make imap classes and default smtp class usable with PHP 5.2, LDAP requires 5.3!

This commit is contained in:
Ralf Becker 2013-07-30 12:50:14 +00:00
parent 5a5717b972
commit a46d694d89
8 changed files with 62 additions and 2 deletions

View File

@ -45,6 +45,16 @@ class cyrusimap extends defaultimap
var $cyrusAdminPassword; var $cyrusAdminPassword;
/**
* Return description for EMailAdmin
*
* @return string
*/
public static function description()
{
return self::DESCRIPTION;
}
/** /**
* Updates an account * Updates an account
* *

View File

@ -30,6 +30,16 @@ class dbmaildbmailuser extends defaultimap
*/ */
const CAPABILITIES = 'default|sieve'; const CAPABILITIES = 'default|sieve';
/**
* Return description for EMailAdmin
*
* @return string
*/
public static function description()
{
return self::DESCRIPTION;
}
function addAccount($_hookValues) { function addAccount($_hookValues) {
return $this->updateAccount($_hookValues); return $this->updateAccount($_hookValues);
} }

View File

@ -30,6 +30,16 @@ class dbmailqmailuser extends defaultimap
*/ */
const CAPABILITIES = 'default|sieve'; const CAPABILITIES = 'default|sieve';
/**
* Return description for EMailAdmin
*
* @return string
*/
public static function description()
{
return self::DESCRIPTION;
}
function addAccount($_hookValues) { function addAccount($_hookValues) {
return $this->updateAccount($_hookValues); return $this->updateAccount($_hookValues);
} }

View File

@ -195,7 +195,7 @@ class defaultimap extends Net_IMAP
*/ */
public static function description() public static function description()
{ {
return static::DESCRIPTION; return self::DESCRIPTION;
} }
/** /**

View File

@ -60,6 +60,16 @@ class emailadmin_dovecot extends defaultimap
*/ */
var $user_home; // = '/var/dovecot/imap/%d/%u'; var $user_home; // = '/var/dovecot/imap/%d/%u';
/**
* Return description for EMailAdmin
*
* @return string
*/
public static function description()
{
return self::DESCRIPTION;
}
/** /**
* Opens a connection to a imap server * Opens a connection to a imap server
* *

View File

@ -86,7 +86,7 @@ class emailadmin_smtp
*/ */
public static function description() public static function description()
{ {
return static::DESCRIPTION; return self::DESCRIPTION;
} }
/** /**

View File

@ -64,6 +64,16 @@ class emailadmin_smtp_sql extends emailadmin_smtp
$this->db = $GLOBALS['egw']->db; $this->db = $GLOBALS['egw']->db;
} }
/**
* Return description for EMailAdmin
*
* @return string
*/
public static function description()
{
return self::DESCRIPTION;
}
/** /**
* Get all email addresses of an account * Get all email addresses of an account
* *

View File

@ -56,6 +56,16 @@ class pleskimap extends defaultimap
*/ */
var $error = false; var $error = false;
/**
* Return description for EMailAdmin
*
* @return string
*/
public static function description()
{
return self::DESCRIPTION;
}
/** /**
* Create a full mailbox or just forward, depending on the given email address * Create a full mailbox or just forward, depending on the given email address
* If email matches the default domain, we create a full mailbox, otherwise we create a forward * If email matches the default domain, we create a full mailbox, otherwise we create a forward