PHP 클래스 backend\models\LoginForm

상속: extends yii\base\Model
파일 보기 프로젝트 열기: daixianceng/xiaoego.com 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$password
$rememberMe
$username

공개 메소드들

메소드 설명
attributeLabels ( )
getAdmin ( ) : Admin | null Finds admin by [[username]]
login ( ) : boolean Logs in a user using the provided username and password.
rules ( )
validatePassword ( string $attribute, array $params ) Validates the password.

메소드 상세

attributeLabels() 공개 메소드

public attributeLabels ( )

getAdmin() 공개 메소드

Finds admin by [[username]]
public getAdmin ( ) : Admin | null
리턴 common\models\Admin | null

login() 공개 메소드

Logs in a user using the provided username and password.
public login ( ) : boolean
리턴 boolean whether the user is logged in successfully

rules() 공개 메소드

public rules ( )

validatePassword() 공개 메소드

This method serves as the inline validation for password.
public validatePassword ( string $attribute, array $params )
$attribute string the attribute currently being validated
$params array the additional name-value pairs given in the rule

프로퍼티 상세

$password 공개적으로 프로퍼티

public $password

$rememberMe 공개적으로 프로퍼티

public $rememberMe

$username 공개적으로 프로퍼티

public $username