PHP Class common\models\LoginForm

Inheritance: extends yii\base\Model
Afficher le fichier Open project: yiisoft/yii2-app-advanced Class Usage Examples

Méthodes publiques

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

Méthodes publiques

Méthode Description
login ( ) : boolean Logs in a user using the provided username and password.
rules ( )
validatePassword ( string $attribute, array $params ) Validates the password.

Méthodes protégées

Méthode Description
getUser ( ) : User | null Finds user by [[username]]

Method Details

getUser() protected méthode

Finds user by [[username]]
protected getUser ( ) : User | null
Résultat User | null

login() public méthode

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

rules() public méthode

public rules ( )

validatePassword() public méthode

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

Property Details

$password public_oe property

public $password

$rememberMe public_oe property

public $rememberMe

$username public_oe property

public $username