PHP Класс Vilma_MailboxDriver, horde

See the enclosed file LICENSE for license information (BSD). If you did not did not receive this file, see http://www.horde.org/licenses/bsd.
Автор: Jason M. Felice ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_params array A hash containing any parameters for the current driver.

Открытые методы

Метод Описание
__construct ( array $params = [] ) Constructor.
checkMailbox ( string $user, string $domain ) : boolean Checks whether a mailbox exists and is set up properly.
createMailbox ( string $user, string $domain ) Creates a new mailbox.
deleteMailbox ( string $user, string $domain ) Deletes an existing mailbox.
factory ( string $driver = null, array $params = null ) : Vilma_MailboxDriver Creates a new mailbox driver instance.
getParam ( $param )

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( array $params = [] )
$params array Any parameters needed for this driver.

checkMailbox() абстрактный публичный Метод

Checks whether a mailbox exists and is set up properly.
abstract public checkMailbox ( string $user, string $domain ) : boolean
$user string The name of the mailbox to check.
$domain string The mailbox' domain.
Результат boolean True if the mailbox exists.

createMailbox() абстрактный публичный Метод

Creates a new mailbox.
abstract public createMailbox ( string $user, string $domain )
$user string The name of the mailbox to create.
$domain string The name of the domain in which to create the mailbox.

deleteMailbox() абстрактный публичный Метод

Deletes an existing mailbox.
abstract public deleteMailbox ( string $user, string $domain )
$user string The name of the mailbox to delete.
$domain string The name of the domain in which to delete the mailbox.

factory() публичный статический Метод

Creates a new mailbox driver instance.
public static factory ( string $driver = null, array $params = null ) : Vilma_MailboxDriver
$driver string The name of the driver to create an instance of.
$params array Driver-specific parameters.
Результат Vilma_MailboxDriver The new driver instance.

getParam() публичный Метод

public getParam ( $param )

Описание свойств

$_params защищенное свойство

A hash containing any parameters for the current driver.
protected array $_params
Результат array