SaveService
in package
Question Aggregate Save Service
Table of Contents
Properties
- $answersService : AnswersService
- $attributesService : AttributesService
- $l10nService : L10nService
- $proxyExpressionManager : ProxyExpressionManager
- $questionService : QuestionService
- $subQuestionsService : SubQuestionsService
Methods
- __construct() : mixed
- normaliseInput() : array<string|int, mixed>
- Normalise input
- save() : Question
- Based on QuestionAdministrationController::actionSaveQuestionData()
Properties
$answersService
private
AnswersService
$answersService
$attributesService
private
AttributesService
$attributesService
$l10nService
private
L10nService
$l10nService
$proxyExpressionManager
private
ProxyExpressionManager
$proxyExpressionManager
$questionService
private
QuestionService
$questionService
$subQuestionsService
private
SubQuestionsService
$subQuestionsService
Methods
__construct()
public
__construct(QuestionService $questionService, L10nService $l10nService, AttributesService $attributesService, AnswersService $answersService, SubQuestionsService $subQuestionsService, ProxyExpressionManager $proxyExpressionManager) : mixed
Parameters
- $questionService : QuestionService
- $l10nService : L10nService
- $attributesService : AttributesService
- $answersService : AnswersService
- $subQuestionsService : SubQuestionsService
- $proxyExpressionManager : ProxyExpressionManager
normaliseInput()
Normalise input
public
normaliseInput(mixed $surveyId, mixed $input) : array<string|int, mixed>
Parameters
- $surveyId : mixed
- $input : mixed
Return values
array<string|int, mixed>save()
Based on QuestionAdministrationController::actionSaveQuestionData()
public
save(int $surveyId, mixed $input) : Question
Parameters
- $surveyId : int
- $input : mixed