Свойство | Type | Description | |
---|---|---|---|
$currentPassword | Current password - for account page updates | ||
$module | |||
$newPassword | New password - for registration and changing password | ||
$newPasswordConfirm | New password confirmation - for reset |
Свойство | Type | Description | |
---|---|---|---|
$permissionCache | Permission cache array |
Méthode | Description | |
---|---|---|
attributeLabels ( ) | ||
beforeSave ( $insert ) | ||
behaviors ( ) | ||
can ( string $permissionName, array $params = [], boolean $allowCaching = true ) : boolean | Check if user can do specified $permission | |
checkEmailChange ( ) : string | boolean | Check for email change | |
confirm ( string $newEmail ) : boolean | Confirm user email | |
findIdentity ( $id ) | ||
findIdentityByAccessToken ( $token, $type = null ) | ||
getAuthKey ( ) | ||
getDisplayName ( ) : string | integer | Get display name for the user | |
getId ( ) | ||
getProfile ( ) : |
||
getRole ( ) : |
||
getUserAuths ( ) : |
||
getUserTokens ( ) : |
||
init ( ) | ||
rules ( ) | ||
sendEmailConfirmation ( amnah\yii2\user\models\UserToken $userToken ) : integer | Send email confirmation to user | |
setRegisterAttributes ( integer $roleId, string $status = null ) : static | Set attributes for registration | |
statusDropdown ( ) : array | Get list of statuses for creating dropdowns | |
updateLoginMeta ( ) : boolean | Update login info (ip and time) | |
validateAuthKey ( $authKey ) | ||
validateCurrentPassword ( ) | Validate current password (account page) | |
validatePassword ( string $password ) : boolean | Validate password |
public checkEmailChange ( ) : string | boolean | ||
Résultat | string | boolean |
public static findIdentityByAccessToken ( $token, $type = null ) |
public getDisplayName ( ) : string | integer | ||
Résultat | string | integer |
public sendEmailConfirmation ( amnah\yii2\user\models\UserToken $userToken ) : integer | ||
$userToken | amnah\yii2\user\models\UserToken | |
Résultat | integer |
public setRegisterAttributes ( integer $roleId, string $status = null ) : static | ||
$roleId | integer | |
$status | string | |
Résultat | static |
public static statusDropdown ( ) : array | ||
Résultat | array |
public updateLoginMeta ( ) : boolean | ||
Résultat | boolean |
public validateCurrentPassword ( ) |
public validatePassword ( string $password ) : boolean | ||
$password | string | |
Résultat | boolean |
public $currentPassword |
public $newPassword |
public $newPasswordConfirm |