AbstractUser Declares user-resolution methods required by identity behavior traits.
The default manager resolves users from the configured model service and caches the effective/original user on the manager instance for the duration of the request.
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