SurveyQuestionManager
class SurveyQuestionManager extends TranslatableManager implements JQGridInterface
Class SurveyQuestionManager is injected as alligator.survey_question_manager service. SurveyQuestionManager handles the logic for managed entity.
Traits
Properties
| protected SurveyQuestionRepository | $repository | ||
| protected SurveyRepository | $surveyRepository | ||
| protected ChoiceRepository | $choiceRepository |
Methods
Sets the repository request default locale
No description
No description
No description
No description
Get all surveys
Remove current questions that are not elected on the frontend
Add new aggregation for edit
Get all survey question
Delete survey questions
Find one question by primary key for edit
Details
in TranslatableManager at line 30
setRepositoryLocale(ContainerInterface|null $container)
Sets the repository request default locale
in TranslatableManager at line 63
setRepository(mixed $repository)
in TranslatableManager at line 73
mixed
getLanguagesForIds(array $ids)
in JQGridManagerTrait at line 26
mixed
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 40
mixed
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 53
mixed
getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)
at line 53
__construct(SurveyQuestionRepository $repository, SurveyRepository $surveyRepository, ChoiceRepository $choiceRepository)
at line 67
array
getAllSurveys(string $locale = null)
Get all surveys
at line 123
prepareQuestionForEditNew(Question $question, array $tempArray)
Prepare question for edit new
at line 139
removeCurrentQuestionsThatAreNotSelectedOnTheFrontEnd(Question $oldQuestion, Question $newQuestion)
Remove current questions that are not elected on the frontend
at line 169
array
addNewAggregationsForEdit(Question $oldQuestion, Question $newQuestions)
Add new aggregation for edit
at line 201
array
getAllSurveyQuestions(string $locale)
Get all survey question
at line 213
Question
deleteSurveyQuestions(array $arrayId)
Delete survey questions
at line 231
array
findOneByIdForEdit(int $id, null $locale = null)
Find one question by primary key for edit