RoleDisplayRuleService
Table of Contents
Methods
-
__construct()
: mixed
-
getForbiddenRoles()
: array<string|int, int>
-
updateRulesForRole()
: void
__construct()
public
__construct(RoleDisplayRuleRepository $roleDisplayRuleRepository) : mixed
Parameters
-
$roleDisplayRuleRepository
: RoleDisplayRuleRepository
-
getForbiddenRoles()
public
getForbiddenRoles(array<string|int, int> $rolesIds, string $userLang) : array<string|int, int>
Parameters
-
$rolesIds
: array<string|int, int>
-
-
$userLang
: string
-
Return values
array<string|int, int>
updateRulesForRole()
public
updateRulesForRole(int $roleId, array<string|int, RuleDto> $rules[, bool $needDeleteOld = false ]) : void
Parameters
-
$roleId
: int
-
-
$rules
: array<string|int, RuleDto>
-
-
$needDeleteOld
: bool
= false
-