AbstractUser
- Full name:
\PhalconKit\Identity\Traits\Abstracts\AbstractUser
Methods
getUser
public getUser(bool $as = false, ?bool $force = null): ?\PhalconKit\Models\Interfaces\UserInterface
- This method is abstract. Parameters:
| Parameter | Type | Description |
$as | bool | |
$force | ?bool | |
setUser
public setUser(?\PhalconKit\Models\Interfaces\UserInterface $user): void
- This method is abstract. 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
- This method is abstract. Parameters:
| Parameter | Type | Description |
$user | ?\PhalconKit\Models\Interfaces\UserInterface | |
getUserId
public getUserId(bool $as = false): ?int
- This method is abstract. 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
- This method is abstract. Parameters:
| Parameter | Type | Description |
$as | bool | |
$force | bool | |
isLoggedInAs
public isLoggedInAs(bool $force = false): bool
- This method is abstract. Parameters:
| Parameter | Type | Description |
$force | bool | |
findUserById
public findUserById(int $id): ?\PhalconKit\Models\Interfaces\UserInterface
- This method is abstract. Parameters:
| Parameter | Type | Description |
$id | int | |
findUserByEmail
public findUserByEmail(string $string): ?\PhalconKit\Models\Interfaces\UserInterface
- This method is abstract. Parameters:
| Parameter | Type | Description |
$string | string | |