PHP 클래스 amnah\yii2\user\components\User

상속: extends yii\web\User
파일 보기 프로젝트 열기: amnah/yii2-user

공개 프로퍼티들

프로퍼티 타입 설명
$enableAutoLogin
$identityClass
$loginUrl

공개 메소드들

메소드 설명
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

메소드 상세

afterLogin() 공개 메소드

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

can() 공개 메소드

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
리턴 boolean

getDisplayName() 공개 메소드

Get user's display name
public getDisplayName ( ) : string
리턴 string

getIsGuest() 공개 메소드

public getIsGuest ( )

getIsLoggedIn() 공개 메소드

Check if user is logged in
public getIsLoggedIn ( ) : boolean
리턴 boolean

프로퍼티 상세

$enableAutoLogin 공개적으로 프로퍼티

public $enableAutoLogin

$identityClass 공개적으로 프로퍼티

public $identityClass

$loginUrl 공개적으로 프로퍼티

public $loginUrl