PHP 클래스 Baikal\Core\PDOBasicAuth

Format of the database tables must match to the one of \Sabre\DAV\Auth\Backend\PDO
저자: Lukasz Janyst ([email protected])
상속: extends Sabre\DAV\Auth\Backend\AbstractBasic
파일 보기 프로젝트 열기: jeromeschneider/baikal

보호된 프로퍼티들

프로퍼티 타입 설명
$authRealm string Authentication realm
$pdo PDO Reference to PDO connection
$tableName string PDO table name we'll be using

공개 메소드들

메소드 설명
__construct ( PDO $pdo, $authRealm, string $tableName = 'users' ) Creates the backend object.
validateUserPass ( string $username, string $password ) : boolean Validates a username and password

메소드 상세

__construct() 공개 메소드

If the filename argument is passed in, it will parse out the specified file fist.
public __construct ( PDO $pdo, $authRealm, string $tableName = 'users' )
$pdo PDO
$tableName string The PDO table name to use

validateUserPass() 공개 메소드

This method should return true or false depending on if login succeeded.
public validateUserPass ( string $username, string $password ) : boolean
$username string
$password string
리턴 boolean

프로퍼티 상세

$authRealm 보호되어 있는 프로퍼티

Authentication realm
protected string $authRealm
리턴 string

$pdo 보호되어 있는 프로퍼티

Reference to PDO connection
protected PDO $pdo
리턴 PDO

$tableName 보호되어 있는 프로퍼티

PDO table name we'll be using
protected string $tableName
리턴 string