UserInterface
- Full name:
\PhalconKit\Identity\Traits\Interfaces\UserInterface
Methods
getUser
public getUser(bool $as = false, ?bool $force = null): ?\PhalconKit\Models\Interfaces\UserInterface
Parameters:
| Parameter | Type | Description |
|---|---|---|
$as | bool | |
$force | ?bool |
setUser
public setUser(?\PhalconKit\Models\Interfaces\UserInterface $user): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$user | ?\PhalconKit\Models\Interfaces\UserInterface |
getUserAs
public getUserAs(): ?\PhalconKit\Models\Interfaces\UserInterface
setUserAs
public setUserAs(?\PhalconKit\Models\Interfaces\UserInterface $user): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$user | ?\PhalconKit\Models\Interfaces\UserInterface |
getUserId
public getUserId(bool $as = false): ?int
Parameters:
| Parameter | Type | Description |
|---|---|---|
$as | bool |
getUserAsId
public getUserAsId(): ?int
getRoleList
public getRoleList(): array
getGroupList
public getGroupList(): array
getTypeList
public getTypeList(): array
isLoggedIn
public isLoggedIn(bool $as = false, bool $force = false): bool
Parameters:
| Parameter | Type | Description |
|---|---|---|
$as | bool | |
$force | bool |
isLoggedInAs
public isLoggedInAs(bool $force = false): bool
Parameters:
| Parameter | Type | Description |
|---|---|---|
$force | bool |
findUserById
public findUserById(int $id): ?\PhalconKit\Models\Interfaces\UserInterface
Parameters:
| Parameter | Type | Description |
|---|---|---|
$id | int |
findUserByEmail
public findUserByEmail(string $string): ?\PhalconKit\Models\Interfaces\UserInterface
Parameters:
| Parameter | Type | Description |
|---|---|---|
$string | string |