UserService
implements
UserService
Table of Contents
Interfaces
- UserService
Methods
-
__construct()
: mixed
-
clearCache()
: void
-
deleteById()
: Result
-
getCurrentExtranetUserIds()
: array<string|int, mixed>
-
getFormerExtranetUserIds()
: array<string|int, mixed>
-
getUserIdsByRole()
: array<string|int, mixed>
-
isCurrentExtranetUserById()
: bool
-
isFormerExtranetUserById()
: bool
-
setRoleById()
: Result
__construct()
public
__construct([ExtranetUserRepository|null $userRepository = null ]) : mixed
Parameters
-
$userRepository
: ExtranetUserRepository|null
= null
-
clearCache()
public
clearCache() : void
deleteById()
public
deleteById(int $userId) : Result
Parameters
-
$userId
: int
-
public
getCurrentExtranetUserIds() : array<string|int, mixed>
Return values
array<string|int, mixed>
public
getFormerExtranetUserIds() : array<string|int, mixed>
Return values
array<string|int, mixed>
getUserIdsByRole()
public
getUserIdsByRole(ExtranetRole $role) : array<string|int, mixed>
Parameters
-
$role
: ExtranetRole
-
Return values
array<string|int, mixed>
public
isCurrentExtranetUserById(int $userId) : bool
Parameters
-
$userId
: int
-
public
isFormerExtranetUserById(int $userId) : bool
Parameters
-
$userId
: int
-
setRoleById()
public
setRoleById(int $id, ExtranetRole $role) : Result
Parameters
-
$id
: int
-
-
$role
: ExtranetRole
-