PHP Class UserLoginForm, gxc-cms

Inheritance: extends CFormModel
Mostra file Open project: nganhtuan63/gxc-cms Class Usage Examples

Public Properties

Property Type Description
$password
$rememberMe
$username

Public Methods

Method Description
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.

Method Details

attributeLabels() public method

Declares attribute labels.
public attributeLabels ( )

authenticate() public method

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

login() public method

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

rules() public method

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

Property Details

$password public_oe property

public $password

$rememberMe public_oe property

public $rememberMe

$username public_oe property

public $username