Class yeesoft\components\User

Inheritanceyeesoft\components\User » yii\web\User

Class User

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getIsSuperadmin() Allows to call Yii::$app->user->isSuperadmin yeesoft\components\User
getSettings() Returns the settings identity object associated with the currently logged-in user. yeesoft\components\User
getUsername() yeesoft\components\User
loginRequired() yeesoft\components\User
setSettings() Sets the user's settings identity object. yeesoft\components\User

Property Details

$enableAutoLogin public property
public $enableAutoLogin true
$identityClass public property
public $identityClass 'yeesoft\models\User'
$loginUrl public property
public $loginUrl = ['/auth/login']
$settingsClass public property
public $settingsClass 'yeesoft\models\UserSetting'

Method Details

afterLogin() protected method

protected void afterLogin ( $identity, $cookieBased, $duration )
$identity
$cookieBased
$duration
getIsSuperadmin() public method

Allows to call Yii::$app->user->isSuperadmin

public bool getIsSuperadmin ( )
getSettings() public method

Returns the settings identity object associated with the currently logged-in user.

public void getSettings ( $autoRenew true )
$autoRenew
getUsername() public method

public string getUsername ( )
loginRequired() public method

public void loginRequired ( $checkAjax true, $checkAcceptHeader true )
$checkAjax
$checkAcceptHeader
renewSettings() protected method

protected void renewSettings ( )
setSettings() public method

Sets the user's settings identity object.

public void setSettings ( $identity )
$identity