PHP Класс Passwd_Driver_Sql, horde

Автор: Mike Cochrane ([email protected])
Автор: Mattias Webjörn Eriksson ([email protected])
Автор: Ilya Krel ([email protected])
Автор: Eric Jon Rostetter ([email protected])
Автор: Tjeerd van der Zee ([email protected])
Наследование: extends Passwd_Driver
Показать файл Открыть проект

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

Свойство Тип Описание
$_db Horde_Db_Adapter Handle for the current database connection.

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

Метод Описание
__construct ( array $params = [] )

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

Метод Описание
_changePassword ( $user, $oldpass, $newpass )
_lookup ( $user, string $oldpass ) Finds out if a username and password is valid.
_modify ( string $user, string $newpass ) Modifies a SQL password record for a user.
_parseQuery ( string $string, string $user, string $password ) : string Parses the string as an SQL query substituting placeholders for their values.

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

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

public __construct ( array $params = [] )
$params array Driver parameters: - db: (Horde_Db_Adapter; REQUIRED) A DB Adapter object. - encryption: (string) The encryption type. - pass_col: (string) The table column for password. - query_lookup: (string) Should we use a custom query for lookup? - query_modify: (string) Should we use a custom query for changing? - show_encryption: (boolean) Prepend the encryption type to the password? - table: (string) The name of the user database table. - user_col: (string) The table column for user name.

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

protected _changePassword ( $user, $oldpass, $newpass )

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

Finds out if a username and password is valid.
protected _lookup ( $user, string $oldpass )
$oldpass string An old password to check.

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

Modifies a SQL password record for a user.
protected _modify ( string $user, string $newpass )
$user string The user whose record we will udpate.
$newpass string The new password value to set.

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

Parses the string as an SQL query substituting placeholders for their values.
protected _parseQuery ( string $string, string $user, string $password ) : string
$string string The string to process as a query.
$user string The user to use for the %u placeholder.
$password string The password to use for the %p and %e placeholders.
Результат string The processed SQL query.

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

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

Handle for the current database connection.
protected Horde_Db_Adapter $_db
Результат Horde_Db_Adapter