class StaticPageCategoryManager extends CategoryTranslatableManager implements JQGridInterface

Class StaticPageCategoryManager is injected as alligator.static_page_category_manager service. StaticPageCategoryManager handles the logic for entity.

Traits

Trait JQGridManagerTrait
Class BlockElementManagerTrait. Handles reading data for block elements

Properties

protected StaticPageCategoryRepository $repository
protected StaticPageCategoryContainer $container
protected Router $router
protected array $leafsArray

Methods

setRepositoryLocale(ContainerInterface|null $container)

Sets the repository request default locale

setRepository(mixed $repository)

No description

mixed
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

No description

mixed
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

No description

mixed
getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)

No description

array
getEntityNamesForIds(array $ids)

Get id and name of entity

__construct(StaticPageCategoryRepository $repository, StaticPageCategoryContainer $container, Router $router)

No description

saveStaticPageCategory(StaticPageCategory $category)

Save new Static Page Category

array|string
getAllTreeCategoriesForCategoryAddTree(null $locale = null)

Get Decorated tree

object
saveStaticPageCategoryForAdd(StaticPageCategory $category)

Save new Static Page Category

array|string
getAllBlogCategoriesForSidebar(string $locale)

Get tree for Static Page Category

array|string
getCatsAsTreeForBackend(string $locale)

Get tree for backend Static Page Category

setCashCategoryTree(string $data, string $locale)

Set generated tree to cache

findOneById(int $id)

Get single StaticPageCategory from database

object
edit(StaticPageCategory $blogCategory, bool $positionChanged, mixed $previous)

Edit StaticPageCategory, $positionChanged parameter describes if only position of node hase changed or its data

bool
deleteStaticPageCategories(array $ids)

Delete all Static Page Categories whose id is in specified array

dispatchTeeGenerateSignal(string $locale)

Dispatch event to cache category tree for specified locale

dispatchSidebarBlogsEvent(string $theme, string $locale)

Dispatch event to re cache html content

mixed
getCashCategoryTree(string $locale)

Get cached tree content for Static Page Categories

mixed
getMegamenuFromCache(string $theme, null $locale = null)

Get cached megamenu content, if there is no content in cache re cache it

mixed
setMegamenuForFrontend(string $theme, null $locale = null)

Set rendered content to cache

dispatchMegamenuSignal(string $theme, string $locale)

Dispatch signal for re caching megamenu content

array
getLanguagesForIds(array $ids)

Get distinct languages for specified ids

dispatchMenuUpdateRemoveSignal(int $id, string $slug, null|string $name = null)

Dispatch menu builder update event

array
getChildrenInOrder(StaticPageCategory $category)

Get children for category

mixed
hasRootCategory()

Get root node

Details

setRepositoryLocale(ContainerInterface|null $container)

Sets the repository request default locale

Parameters

ContainerInterface|null $container

Exceptions

InvalidArgumentException if repository is not an instance of TranslatableRepository

setRepository(mixed $repository)

Parameters

mixed $repository

in JQGridManagerTrait at line 26
mixed searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

Parameters

array $searchParams
array $sortParams
array $additionalParams
JQGridWrapper $jqGridWrapper

Return Value

mixed

in JQGridManagerTrait at line 40
mixed findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

Parameters

int $page
int $offset
array $sortParams
array $additionalParams
JQGridWrapper $jqGridWrapper

Return Value

mixed

in JQGridManagerTrait at line 53
mixed getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)

Parameters

array|null $searchParams
array|null $sortParams
array|null $additionalParams
JQGridWrapper|null $jqGridWrapper

Return Value

mixed

at line 401
getEntitiesForBlockElementsExtension($ids)

Parameters

$ids

array getEntityNamesForIds(array $ids)

Get id and name of entity

Parameters

array $ids

Return Value

array

at line 48
__construct(StaticPageCategoryRepository $repository, StaticPageCategoryContainer $container, Router $router)

Parameters

StaticPageCategoryRepository $repository
StaticPageCategoryContainer $container
Router $router

at line 61
StaticPageCategory saveStaticPageCategory(StaticPageCategory $category)

Save new Static Page Category

Parameters

StaticPageCategory $category

Return Value

StaticPageCategory

at line 85
array|string getAllTreeCategoriesForCategoryAddTree(null $locale = null)

Get Decorated tree

Parameters

null $locale

Return Value

array|string

at line 110
object saveStaticPageCategoryForAdd(StaticPageCategory $category)

Save new Static Page Category

Parameters

StaticPageCategory $category

Return Value

object

at line 143
array|string getAllBlogCategoriesForSidebar(string $locale)

Get tree for Static Page Category

Parameters

string $locale

Return Value

array|string

at line 186
array|string getCatsAsTreeForBackend(string $locale)

Get tree for backend Static Page Category

Parameters

string $locale

Return Value

array|string

at line 198
setCashCategoryTree(string $data, string $locale)

Set generated tree to cache

Parameters

string $data
string $locale

at line 209
StaticPageCategory findOneById(int $id)

Get single StaticPageCategory from database

Parameters

int $id

Return Value

StaticPageCategory

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

Parameters

StaticPageCategory $blogCategory
  • Category to change
bool $positionChanged
  • Defines if position or data od note has changed
mixed $previous
  • Previous node, required if position of node has changed

Return Value

object

at line 274
bool deleteStaticPageCategories(array $ids)

Delete all Static Page Categories whose id is in specified array

Parameters

array $ids
  • array of ids to delete

Return Value

bool

at line 289
dispatchTeeGenerateSignal(string $locale)

Dispatch event to cache category tree for specified locale

Parameters

string $locale

at line 301
dispatchSidebarBlogsEvent(string $theme, string $locale)

Dispatch event to re cache html content

Parameters

string $theme
string $locale

at line 312
mixed getCashCategoryTree(string $locale)

Get cached tree content for Static Page Categories

Parameters

string $locale

Return Value

mixed

at line 325
mixed getMegamenuFromCache(string $theme, null $locale = null)

Get cached megamenu content, if there is no content in cache re cache it

Parameters

string $theme
null $locale

Return Value

mixed

at line 343
mixed setMegamenuForFrontend(string $theme, null $locale = null)

Set rendered content to cache

Parameters

string $theme
null $locale

Return Value

mixed

at line 371
dispatchMegamenuSignal(string $theme, string $locale)

Dispatch signal for re caching megamenu content

Parameters

string $theme
string $locale

at line 382
array getLanguagesForIds(array $ids)

Get distinct languages for specified ids

Parameters

array $ids

Return Value

array

at line 393
dispatchMenuUpdateRemoveSignal(int $id, string $slug, null|string $name = null)

Dispatch menu builder update event

Parameters

int $id
string $slug
null|string $name

at line 412
array getChildrenInOrder(StaticPageCategory $category)

Get children for category

Parameters

StaticPageCategory $category

Return Value

array

at line 421
mixed hasRootCategory()

Get root node

Return Value

mixed