ShareRepository
extends BaseRepository
Table of Contents
Methods
-
__construct()
: mixed
-
create()
: AddResult
-
deleteRoleId()
: void
-
findByRoleId()
: array<string|int, mixed>
-
getAccessCodesForRole()
: array<int, array{ACCESS_CODE: string}>
-
getInfoAccessRole()
: array<string|int, mixed>
-
getInfoAccessRoleByCode()
: bool
__construct()
public
__construct(UserAccessRepository $userAccessRepository) : mixed
Parameters
-
$userAccessRepository
: UserAccessRepository
-
create()
public
create(CreateDto $createRequestDTO) : AddResult
Parameters
-
$createRequestDTO
: CreateDto
-
-
throws
-
ArgumentException
-
throws
-
SystemException
deleteRoleId()
public
deleteRoleId(int $roleId) : void
Parameters
-
$roleId
: int
-
findByRoleId()
public
findByRoleId(int $roleId) : array<string|int, mixed>
Parameters
-
$roleId
: int
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
Return values
array<string|int, mixed>
getAccessCodesForRole()
public
getAccessCodesForRole(int $roleId) : array<int, array{ACCESS_CODE: string}>
Parameters
-
$roleId
: int
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
Return values
array<int, array{ACCESS_CODE: string}>
getInfoAccessRole()
public
getInfoAccessRole(array<string|int, int> $roleId, int $userId) : array<string|int, mixed>
Parameters
-
$roleId
: array<string|int, int>
-
-
$userId
: int
-
-
throws
-
SqlQueryException
Return values
array<string|int, mixed>
getInfoAccessRoleByCode()
public
getInfoAccessRoleByCode(string $roleCode, int $userId) : bool
Parameters
-
$roleCode
: string
-
-
$userId
: int
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException