DeclarationManager
class DeclarationManager extends TranslatableManager implements JQGridInterface
Class DeclarationManager is injected as empire_declaration_plugin.declaration_manager service. DeclarationManager handles the logic for managed entity.
Traits
Properties
| protected DeclarationRepository | $repository |
Methods
Sets the repository request default locale
No description
No description
No description
No description
Get entities from database by ids
DeclarationManager constructor.
Find declaration(as array) by id
No description
Find all categories(as array)
Change category of declaration
Remove all declarations that match provided ids
Dispatch event for re-caching declaration category tree
Delete all cached results for declarations used in block elements
Find declaration(as array) with provided name
Details
in TranslatableManager at line 30
setRepositoryLocale(ContainerInterface|null $container)
Sets the repository request default locale
in TranslatableManager at line 63
setRepository(mixed $repository)
at line 264
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 55
__construct(DeclarationRepository $repository, DeclarationCategoryRepository $categoryRepository, DeclarationCategoryContainer $container)
DeclarationManager constructor.
at line 69
mixed
findOneByIdCustom(int $id)
Find declaration(as array) by id
at line 79
array|string
getAllTreeCategoriesForCategoryAddTree(string $locale = null)
at line 89
array
categoriesAll()
Find all categories(as array)
at line 103
mixed
saveItem(Declaration $declaration)
Persist new Declaration
at line 142
mixed
editItem(Declaration $declaration)
Updating existed Declaration
at line 197
setNewCategory(DeclarationCategory|null $old, DeclarationCategory|null $new, Declaration $dec)
Change category of declaration
at line 226
array
deleteItems(array $itemsId)
Remove all declarations that match provided ids
at line 254
DecSignalTreeEvent
dispatchDecTreeGenerateSignal(string|null $locale)
Dispatch event for re-caching declaration category tree
at line 272
deleteResultCaches()
Delete all cached results for declarations used in block elements
at line 285
array
searchDeclarationsByName(string $searchTerm, array $params)
Find declaration(as array) with provided name