IdentityInterface
- Full name: \Zemit\Mvc\Model\Interfaces\IdentityInterface
Methods
getIdentityService
public getIdentityService(): \Zemit\Identity
isLoggedIn
public isLoggedIn(bool $as = false): bool
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $as | bool | 
isLoggedInAs
public isLoggedInAs(): bool
getCurrentUser
public getCurrentUser(bool $as = false): ?\Zemit\Models\Interfaces\UserInterface
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $as | bool | 
getCurrentUserAs
public getCurrentUserAs(): ?\Zemit\Models\Interfaces\UserInterface
getCurrentUserId
public getCurrentUserId(bool $as = false): ?int
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $as | bool | 
getCurrentUserIdCallback
public getCurrentUserIdCallback(bool $as = false): \Closure
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $as | bool |