class DeclarationCategoryContainer

Class DeclarationCategoryContainer

Constants

DEC_CATEGORY_SIDE_BAR_CACHE

Declaration category tree cache

DECORATOR_CATEGORY_DATA_EVENT

Event name for signaling custom decorator for category tree

Methods

__construct(ContainerInterface $container)

DeclarationCategoryContainer constructor.

Translator
getTranslator()

No description

Router
getRouter()

No description

array|string
getAllTreeCategoriesForCategoryAddTree(string $locale = null)

No description

string
getCacheCategoryTree(string $locale)

Cached html representing category tree

mixed
setCacheCategoryTree(string $data, string $locale)

Set category tree html to cache

dispatchTreeGenerateSignal(string $locale)

Dispatch signal to re-cache declaration category tree

dispatchRemoveImagesForDeletedCategories(array $imagesIds)

Dispatch event to remove images that match provided ids

dispatchDeclarationDataEvent()

Dispatch event for custom decorator

Details

at line 47
__construct(ContainerInterface $container)

DeclarationCategoryContainer constructor.

Parameters

ContainerInterface $container

at line 55
Translator getTranslator()

Return Value

Translator

at line 63
Router getRouter()

Return Value

Router

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

Parameters

string $locale

Return Value

array|string

at line 85
string getCacheCategoryTree(string $locale)

Cached html representing category tree

Parameters

string $locale

Return Value

string

at line 98
mixed setCacheCategoryTree(string $data, string $locale)

Set category tree html to cache

Parameters

string $data
string $locale

Return Value

mixed

at line 110
DecSignalTreeEvent dispatchTreeGenerateSignal(string $locale)

Dispatch signal to re-cache declaration category tree

Parameters

string $locale

Return Value

DecSignalTreeEvent

at line 120
dispatchRemoveImagesForDeletedCategories(array $imagesIds)

Dispatch event to remove images that match provided ids

Parameters

array $imagesIds

at line 130
CategoryEvent dispatchDeclarationDataEvent()

Dispatch event for custom decorator

Return Value

CategoryEvent