SurveyManager
class SurveyManager extends TranslatableManager implements JQGridInterface
Class SurveyManager is injected as alligator.survey_manager service. SurveyManager handles the logic for managed entity.
Traits
Properties
| protected SurveyRepository | $repository | ||
| protected SurveyCategoryRepository | $categoryRepository | ||
| protected SurveyQuestionRepository | $surveyQuestionRepository | ||
| protected SurveyQuestionAggregationRepository | $aggregationRepository | ||
| protected ChoiceRepository | $choiceRepository | ||
| protected SurveyCategoryEventContainer | $container |
Methods
Sets the repository request default locale
No description
No description
No description
Get entities from database by ids
No description
Get all survey categories
Get all survey questions by locale
Find survey category by slug
Find one by primary key and locale
Prepare survey for edit new
Remove current surveys that are not selected on the front end
Delete surveys by array of ids
Find featured surveys by locale and optional slug
Get all surveys for send mail
Get all categories for category tree
Dispatch survey tree generate signal
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)
in BlockElementManagerTrait at line 28
array
getEntitiesForBlockElementsExtension(array $ids)
Get entities from database by ids
in BlockElementManagerTrait at line 40
array
getEntityNamesForIds(array $ids)
Get id and name of entity
at line 76
__construct(SurveyRepository $repository, SurveyCategoryRepository $categoryRepository, SurveyQuestionRepository $surveyQuestionRepository, SurveyQuestionAggregationRepository $aggregationRepository, ChoiceRepository $choiceRepository, SurveyCategoryEventContainer $container)
at line 90
array
getAllSurveyCategories()
Get all survey categories
at line 102
mixed
getAllSurveyQuestions(string $locale)
Get all survey questions by locale
at line 143
mixed
findSurveyCategoryBySlug(string $slug)
Find survey category by slug
at line 158
array
findOneByIdForEdit(int $id, string $locale)
Find one by primary key and locale
at line 172
mixed
editSurvey(Survey $survey)
Edit survey object
at line 213
prepareSurveyForEditNew(Survey $survey, array $tempArray, array $tempArrayDelete)
Prepare survey for edit new
at line 238
removeCurrentSurveysThatAreNotSelectedOnTheFrontEnd(Survey $oldSurvey, Survey $newSurvey)
Remove current surveys that are not selected on the front end
at line 272
prepareSurveyForSave(Survey $survey)
Prepare survey object for save
at line 290
prepareAggregationForSurveyEdit(Survey $oldSurvey)
Prepare aggregation for survey edit
at line 308
Survey
deleteSurveys(array $arrayId)
Delete surveys by array of ids
at line 332
mixed
findFeaturedSurveys(string $locale, null $slug = null)
Find featured surveys by locale and optional slug
at line 344
array
getAllSurveysForSendMail(null $locale = null)
Get all surveys for send mail
at line 356
array|string
getAllTreeCategoriesForCategoryAddTree(null|string $locale = null)
Get all categories for category tree
at line 368
SurveySignalTreeEvent
dispatchSurveyTreeGenerateSignal(string $locale)
Dispatch survey tree generate signal