DeclarationCategoryManager
class DeclarationCategoryManager extends CategoryTranslatableManager implements JQGridInterface, BasicEntityManagerInterface
Class DeclarationCategoryManager is injected as empire_declaration_plugin.declaration_category_manager service. DeclarationCategoryManager handles the logic for managed entity.
Traits
Properties
| protected DeclarationCategoryRepository | $repository | ||
| protected DeclarationCategoryContainer | $container |
Methods
Sets the repository request default locale
No description
No description
No description
Get entities from database by ids
DeclarationCategoryManager constructor.
Generate html for frontend
Find all categories(as array)
Generate html for frontend
No description
No description
No description
No description
Retrieve declaration category tree from cache for provided locale
Set declaration category tree to cache for provided locale
dispatchSignal
Find language locale for category that match provided id. NULL on missing category
Delete all cached results for declaration categories used in block elements
Find root node
Details
in CategoryTranslatableManager at line 29
setRepositoryLocale(ContainerInterface|null $container)
Sets the repository request default locale
in CategoryTranslatableManager at line 55
setRepository(mixed $repository)
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 46
__construct(DeclarationCategoryRepository $repository, DeclarationCategoryContainer $container)
DeclarationCategoryManager constructor.
at line 59
array|string
getAllTreeCategoriesForCategoryAddTree(string|null $locale = null)
Generate html for frontend
at line 89
array
getAllCategories()
Find all categories(as array)
at line 99
array|string
getCatsAsTreeForBackend()
Generate html for frontend
at line 116
DeclarationCategory
saveDeclarationCategory(DeclarationCategory $category)
Persist new Declaration Category
at line 130
mixed
saveTreeCategoryForAdd(DeclarationCategory $category)
Persist new declaration category
at line 159
mixed
editCatTree(DeclarationCategory $newCategory, mixed $positionChanged, string $previous)
at line 201
int
deleteTreeCategories(array $id)
at line 229
array|string
getAllCatsForFrontendContent(string $locale)
at line 242
array
getAllCatsForSidebarTree()
at line 271
string
getCacheCategoryTree(string $locale)
Retrieve declaration category tree from cache for provided locale
at line 284
mixed
setCacheCategoryTree(string $data, string $locale)
Set declaration category tree to cache for provided locale
at line 293
dispatchDecTreeGenerateSignal(string|null $locale)
dispatchSignal
at line 307
mixed
getLanguageForId(int $id)
Find language locale for category that match provided id. NULL on missing category
at line 315
deleteResultCaches()
Delete all cached results for declaration categories used in block elements
at line 325
array
hasRootCategory()
Find root node
at line 336
protected
setImage(DeclarationCategory $category, Image $image)
Set new image to provided category