SurveyCategoryManager
class SurveyCategoryManager extends CategoryTranslatableManager
Class SurveyCategoryManager is injected as alligator.survey_category_manager service. SurveyCategoryManager handles the logic for managed entity.
Properties
| protected SurveyCategoryRepository | $repository | ||
| protected SurveyCategoryEventContainer | $container |
Methods
Sets the repository request default locale
No description
Get all survey categories
Delete survey categories
Get all survey categories for tree
Find al categories for creating new category
Delete multiple survey categories by id
Prepare survey category for delete, remove children nad surveys connected to it
Get category cache tree
Set category tree to cache
Dispatch survey tree generate signal
Get all survey categories from cache
Get survey categories as tree for backend
Check if survey has root category
Details
in CategoryTranslatableManager at line 29
setRepositoryLocale(ContainerInterface|null $container)
Sets the repository request default locale
in CategoryTranslatableManager at line 55
setRepository(mixed $repository)
at line 36
__construct(SurveyCategoryRepository $repository, SurveyCategoryEventContainer $container)
at line 47
array
getAllSurveyCategories()
Get all survey categories
at line 61
int
deleteCats(array $arrayIds)
Delete survey categories
at line 75
array|string
getAllTreeCategoriesForCategoryAddTree(null $locale = null)
Get all survey categories for tree
at line 107
mixed
saveSurveyCategoryTree(SurveyCategory $category)
Save survey category to database
at line 127
array
findCategoriesForCatAdd()
Find al categories for creating new category
at line 139
SurveyCategory
saveSurveyCategory(SurveyCategory $surveyCategory)
Save survey category
at line 164
array
deleteSurveyCategories(array $surveyCategoriesIdArray)
Delete multiple survey categories by id
at line 179
prepareSurveyCategoryForDelete(SurveyCategory $surveyCategory)
Prepare survey category for delete, remove children nad surveys connected to it
at line 198
stdClass
edit(SurveyCategory $surveyCategory, bool $positionChanged, int $previous)
Edit survey category
at line 235
mixed
getCacheCategoryTree(string $locale)
Get category cache tree
at line 248
mixed
setCacheCategoryTree(string $data, string $locale)
Set category tree to cache
at line 258
dispatchSurveyTreeGenerateSignal(string $locale)
Dispatch survey tree generate signal
at line 270
array|string
getAllCatsForSidebarTree(string $locale)
Get all survey categories from cache
at line 316
array|string
getCatsAsTreeForBackend()
Get survey categories as tree for backend
at line 328
mixed
hasRootCategory()
Check if survey has root category