PHP Class amnah\yii2\user\components\User

Inheritance: extends yii\web\User
Afficher le fichier Open project: amnah/yii2-user

Méthodes publiques

Свойство Type Description
$enableAutoLogin
$identityClass
$loginUrl

Méthodes publiques

Méthode Description
afterLogin ( $identity, $cookieBased, $duration )
can ( string $permissionName, array $params = [], boolean $allowCaching = true ) : boolean Check if user can do $permissionName.
getDisplayName ( ) : string Get user's display name
getIsGuest ( )
getIsLoggedIn ( ) : boolean Check if user is logged in

Method Details

afterLogin() public méthode

public afterLogin ( $identity, $cookieBased, $duration )

can() public méthode

If "authManager" component is set, this will simply use the default functionality. Otherwise, it will use our custom permission system
public can ( string $permissionName, array $params = [], boolean $allowCaching = true ) : boolean
$permissionName string
$params array
$allowCaching boolean
Résultat boolean

getDisplayName() public méthode

Get user's display name
public getDisplayName ( ) : string
Résultat string

getIsGuest() public méthode

public getIsGuest ( )

getIsLoggedIn() public méthode

Check if user is logged in
public getIsLoggedIn ( ) : boolean
Résultat boolean

Property Details

$enableAutoLogin public_oe property

public $enableAutoLogin

$identityClass public_oe property

public $identityClass

$loginUrl public_oe property

public $loginUrl