StaticPageCategoryManager
class StaticPageCategoryManager extends CategoryTranslatableManager implements JQGridInterface
Class StaticPageCategoryManager is injected as alligator.static_page_category_manager service. StaticPageCategoryManager handles the logic for entity.
Traits
Properties
| protected StaticPageCategoryRepository | $repository | ||
| protected StaticPageCategoryContainer | $container | ||
| protected Router | $router | ||
| protected array | $leafsArray |
Methods
Sets the repository request default locale
No description
No description
No description
No description
No description
Get Decorated tree
Get tree for Static Page Category
Get tree for backend Static Page Category
Set generated tree to cache
Get single StaticPageCategory from database
Edit StaticPageCategory, $positionChanged parameter describes if only position of node hase changed or its data
Delete all Static Page Categories whose id is in specified array
Dispatch event to cache category tree for specified locale
Dispatch event to re cache html content
Get cached tree content for Static Page Categories
Get cached megamenu content, if there is no content in cache re cache it
Set rendered content to cache
Dispatch signal for re caching megamenu content
Get distinct languages for specified ids
Dispatch menu builder update event
Get 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)
at line 401
getEntitiesForBlockElementsExtension($ids)
in BlockElementManagerTrait at line 40
array
getEntityNamesForIds(array $ids)
Get id and name of entity
at line 48
__construct(StaticPageCategoryRepository $repository, StaticPageCategoryContainer $container, Router $router)
at line 61
StaticPageCategory
saveStaticPageCategory(StaticPageCategory $category)
Save new Static Page Category
at line 85
array|string
getAllTreeCategoriesForCategoryAddTree(null $locale = null)
Get Decorated tree
at line 110
object
saveStaticPageCategoryForAdd(StaticPageCategory $category)
Save new Static Page Category
at line 143
array|string
getAllBlogCategoriesForSidebar(string $locale)
Get tree for Static Page Category
at line 186
array|string
getCatsAsTreeForBackend(string $locale)
Get tree for backend Static Page Category
at line 198
setCashCategoryTree(string $data, string $locale)
Set generated tree to cache
at line 209
StaticPageCategory
findOneById(int $id)
Get single StaticPageCategory from database
at line 223
object
edit(StaticPageCategory $blogCategory, bool $positionChanged, mixed $previous)
Edit StaticPageCategory, $positionChanged parameter describes if only position of node hase changed or its data
at line 274
bool
deleteStaticPageCategories(array $ids)
Delete all Static Page Categories whose id is in specified array
at line 289
dispatchTeeGenerateSignal(string $locale)
Dispatch event to cache category tree for specified locale
at line 301
dispatchSidebarBlogsEvent(string $theme, string $locale)
Dispatch event to re cache html content
at line 312
mixed
getCashCategoryTree(string $locale)
Get cached tree content for Static Page Categories
at line 325
mixed
getMegamenuFromCache(string $theme, null $locale = null)
Get cached megamenu content, if there is no content in cache re cache it
at line 343
mixed
setMegamenuForFrontend(string $theme, null $locale = null)
Set rendered content to cache
at line 371
dispatchMegamenuSignal(string $theme, string $locale)
Dispatch signal for re caching megamenu content
at line 382
array
getLanguagesForIds(array $ids)
Get distinct languages for specified ids
at line 393
dispatchMenuUpdateRemoveSignal(int $id, string $slug, null|string $name = null)
Dispatch menu builder update event
at line 412
array
getChildrenInOrder(StaticPageCategory $category)
Get children for category
at line 421
mixed
hasRootCategory()
Get root node