PromptDisplayRuleService
Table of Contents
Methods
-
__construct()
: mixed
-
getForbiddenPrompts()
: array<string|int, int>
-
updateRulesForPrompt()
: void
__construct()
public
__construct(PromptDisplayRuleRepository $promptDisplayRuleRepository) : mixed
Parameters
-
$promptDisplayRuleRepository
: PromptDisplayRuleRepository
-
getForbiddenPrompts()
public
getForbiddenPrompts(array<string|int, int> $promptsIds, string $userLang) : array<string|int, int>
Parameters
-
$promptsIds
: array<string|int, int>
-
-
$userLang
: string
-
Return values
array<string|int, int>
updateRulesForPrompt()
public
updateRulesForPrompt(int $promptId, array<string|int, RuleDto> $rules[, bool $needDeleteOld = false ]) : void
Parameters
-
$promptId
: int
-
-
$rules
: array<string|int, RuleDto>
-
-
$needDeleteOld
: bool
= false
-