PHP 클래스 UserLoginForm, gxc-cms

상속: extends CFormModel
파일 보기 프로젝트 열기: nganhtuan63/gxc-cms 1 사용 예제들

공개 프로퍼티들

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

공개 메소드들

메소드 설명
attributeLabels ( ) Declares attribute labels.
authenticate ( $attribute, $params ) Authenticates the password.
login ( ) : boolean Logs in the user using the given username and password in the model.
rules ( ) Declares the validation rules.

메소드 상세

attributeLabels() 공개 메소드

Declares attribute labels.
public attributeLabels ( )

authenticate() 공개 메소드

This is the 'authenticate' validator as declared in rules().
public authenticate ( $attribute, $params )

login() 공개 메소드

Logs in the user using the given username and password in the model.
public login ( ) : boolean
리턴 boolean whether login is successful

rules() 공개 메소드

The rules state that username and password are required, and password needs to be authenticated.
public rules ( )

프로퍼티 상세

$password 공개적으로 프로퍼티

public $password

$rememberMe 공개적으로 프로퍼티

public $rememberMe

$username 공개적으로 프로퍼티

public $username