PHP Класс Horde_Auth_Imap, horde

Автор: Chuck Hagenbuch ([email protected])
Автор: Gaudenz Steinlin ([email protected])
Автор: Jan Schneider ([email protected])
Наследование: extends Horde_Auth_Base
Показать файл Открыть проект

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

Свойство Тип Описание
$_imap array() Imap client objects.

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

Метод Описание
__construct ( array $params = [] ) Constructor.
addUser ( string $userId, array $credentials ) Add a set of authentication credentials.
listUsers ( boolean $sort = false ) : array Lists all users in the system.
removeUser ( string $userId ) Delete a set of authentication credentials.

Защищенные методы

Метод Описание
_authenticate ( string $userId, array $credentials ) Find out if a set of login credentials are valid.
_getOb ( string $user, string $pass ) : Horde_Imap_Client_Base Get Horde_Imap_Client object.

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

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

Constructor.
public __construct ( array $params = [] )
$params array Optional parameters: - admin_password: (string) The password of the administrator. DEFAULT: null - admin_user: (string) The name of a user with admin privileges. DEFAULT: null - hostspec: (string) The hostname or IP address of the server. DEFAULT: 'localhost' - port: (integer) The server port to which we will connect. IMAP is generally 143, while IMAP-SSL is generally 993. DEFAULT: Encryption port default - secure: (string) The encryption to use. Either 'none', 'ssl', or 'tls'. DEFAULT: 'none' - userhierarchy: (string) The hierarchy where user mailboxes are stored (UTF-8). DEFAULT: 'user.'

_authenticate() защищенный Метод

Find out if a set of login credentials are valid.
protected _authenticate ( string $userId, array $credentials )
$userId string The userId to check.
$credentials array An array of login credentials. For IMAP, this must contain a password entry.

_getOb() защищенный Метод

Get Horde_Imap_Client object.
protected _getOb ( string $user, string $pass ) : Horde_Imap_Client_Base
$user string Username.
$pass string Password.
Результат Horde_Imap_Client_Base IMAP client object.

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

Add a set of authentication credentials.
public addUser ( string $userId, array $credentials )
$userId string The userId to add.
$credentials array The credentials to use.

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

Lists all users in the system.
public listUsers ( boolean $sort = false ) : array
$sort boolean Sort the users?
Результат array The array of userIds.

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

Delete a set of authentication credentials.
public removeUser ( string $userId )
$userId string The userId to delete.

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

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

Imap client objects.
protected array() $_imap
Результат array()