CustomerAdministratorPermissionRepository
in package
Class CustomerSuperAdministratorRepository
Tags
Table of Contents
- CUSTOMER_ACCESS_GROUP_ID = '6'
- SUPER_ADMIN_ACCESS_ROLE_ID = '1'
- $connection : Connection
- __construct() : mixed
- getPermissions() : array<string|int, mixed>
- customerIsSuperAdministrator() : bool
- getCustomerPermissionsForGroup() : array<string|int, mixed>
Constants
CUSTOMER_ACCESS_GROUP_ID
private
mixed
CUSTOMER_ACCESS_GROUP_ID
= '6'
SUPER_ADMIN_ACCESS_ROLE_ID
private
mixed
SUPER_ADMIN_ACCESS_ROLE_ID
= '1'
Properties
$connection
private
Connection
$connection
Methods
__construct()
public
__construct(Connection $connection) : mixed
Parameters
- $connection : Connection
Return values
mixed —getPermissions()
public
getPermissions(int $customerId) : array<string|int, mixed>
Parameters
- $customerId : int
Return values
array<string|int, mixed> —customerIsSuperAdministrator()
private
customerIsSuperAdministrator(int $customerId) : bool
Parameters
- $customerId : int
Return values
bool —getCustomerPermissionsForGroup()
private
getCustomerPermissionsForGroup(int $roleId) : array<string|int, mixed>
Parameters
- $roleId : int