PHP Class UserLoginForm, gxc-cms

Inheritance: extends CFormModel
Afficher le fichier Open project: nganhtuan63/gxc-cms Class Usage Examples

Méthodes publiques

Свойство Type Description
$password
$rememberMe
$username

Méthodes publiques

Méthode 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 méthode

Declares attribute labels.
public attributeLabels ( )

authenticate() public méthode

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

login() public méthode

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

rules() public méthode

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