PHP Класс UserLoginForm, gxc-cms

Наследование: extends CFormModel
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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