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
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_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