class BlockElementsEventContainer

Class BlockElementsEventContainer

Traits

Class LayoutManagementEventContainerTrait

Constants

BLOCK_ELEMENTS_CACHE_PREFIX

Methods

array
getLayoutsForRoute(string $param)

Return all layouts for selected page

bool|mixed
getEntityParamFromCache(string $key)

Find cached entity params

Response|bool
getRouteContent(string $path)

Get route content

__construct(ContainerInterface $container)

No description

array
getBrands(array $ids)

No description

clearTwigCache()

Clear cached twigs

QueryBuilder
doProductSearch(ProductSearchWrapper $searchWrapper)

Main product search. Sets all preconditions and do database search

getPluginsManager()

No description

array
getCategories(array $ids)

Get category entities from database by ids

array
getAttributeValues(array $ids)

Get attribute value entities from database by ids

array
getBrandsForIds(array $ids)

Get brand entities from database by ids

array
getProductsByIds(array $ids)

No description

mixed|null
getLoggedUser()

No description

mixed
getDataFromCache(string $key)

No description

mixed
setDataToCache(string $key, mixed $data)

No description

dispatchBlockElementsEntitiesEvent(mixed $entity = null)

No description

dispatchBlockElementsContentEvent(array $paramBag)

Dispatch event that returns content for block element

dispatchBlockElementsNamesEvent(mixed $entity, array $ids)

No description

dispatchBlockElementsAlgorithmParamEvent(mixed $entity, mixed $algorithm)

No description

dispatchBlockPageUpdateEvent(mixed $entity, string $routeName, string $newRouteName, string $name)

No description

array
getProductsByNameJSON(mixed $searchParam, int $page, int $offset)

Do product search by text

array
getBrandsByNameJSON(mixed $searchParam, int $page, int $offset)

Get brands by search string

array
getCategoriesByNameJSON(mixed $searchParam, int $page, int $offset)

Get categories by search string

object|Twig_Environment
getTwigLoader()

No description

object
getTemplatingEngine()

No description

clearRoutesCache()

No description

array
getAllThemePages()

Return all pages to be managed

bool
addNewCustomLayout(string $layout)

Add new custom layout

Event
dispatchEvent(string|null $eventKey, Event|null $event = null)

No description

mixed
getCurrentThemeName()

No description

mixed
getCurrentDbTheme()

Find theme by name

mixed
getThemeByName(string $themeName)

Find theme by name

saveTheme(Theme $theme)

Persist new theme

array
getProductsByAlgorithm(mixed $algorithm, integer $numberOfProducts)

Find products based on algorithm type

mixed
findAllActivePluginConfigLayouts()

Find all active plugin configuration templates for specific plugin

array
findAllActivePluginsForTheme(string $theme = null)

Find all active plugin names for specific theme

setActivePluginConfigLayouts(array $activeBlocks)

Activate provided plugin layouts

array
getEntityRelationshipNames()

Get all distinct relationship names

array
findAllTemplatesForTheme(bool $loadContent = false, null $entityType = null)

Get all templates for specified params

Event
dispatchBlockTemplateRemoveEvent()

Dispatch event when template is removed

clearBlockElementCacheContent(string|null $template = null)

No description

mixed
getCacheDir()

Retrieve cache dir path

getFSasFilter()

Get FSaS filter for block rendering

Details

array getLayoutsForRoute(string $param)

Return all layouts for selected page

Parameters

string $param

Return Value

array

bool|mixed getEntityParamFromCache(string $key)

Find cached entity params

Parameters

string $key

Return Value

bool|mixed

Response|bool getRouteContent(string $path)

Get route content

Parameters

string $path

Return Value

Response|bool

at line 49
__construct(ContainerInterface $container)

Parameters

ContainerInterface $container

at line 59
array getBrands(array $ids)

Parameters

array $ids

Return Value

array

at line 67
reCachePluginsLayouts()

Re cache

at line 78
clearTwigCache()

Clear cached twigs

at line 93
QueryBuilder doProductSearch(ProductSearchWrapper $searchWrapper)

Main product search. Sets all preconditions and do database search

Parameters

ProductSearchWrapper $searchWrapper

Return Value

QueryBuilder

at line 101
PluginSettingsManager|object getPluginsManager()

Return Value

PluginSettingsManager|object

at line 112
array getCategories(array $ids)

Get category entities from database by ids

Parameters

array $ids

Return Value

array

at line 123
array getAttributeValues(array $ids)

Get attribute value entities from database by ids

Parameters

array $ids

Return Value

array

at line 134
array getBrandsForIds(array $ids)

Get brand entities from database by ids

Parameters

array $ids

Return Value

array

at line 144
array getProductsByIds(array $ids)

Parameters

array $ids

Return Value

array

at line 152
mixed|null getLoggedUser()

Return Value

mixed|null

at line 164
mixed getDataFromCache(string $key)

Parameters

string $key

Return Value

mixed

at line 175
mixed setDataToCache(string $key, mixed $data)

Parameters

string $key
mixed $data

Return Value

mixed

at line 185
EventWithResult dispatchBlockElementsEntitiesEvent(mixed $entity = null)

Parameters

mixed $entity

Return Value

EventWithResult

at line 202
EventWithResult dispatchBlockElementsContentEvent(array $paramBag)

Dispatch event that returns content for block element

Parameters

array $paramBag

Return Value

EventWithResult

at line 216
EventWithResult dispatchBlockElementsNamesEvent(mixed $entity, array $ids)

Parameters

mixed $entity
array $ids

Return Value

EventWithResult

at line 230
EventWithResult dispatchBlockElementsAlgorithmParamEvent(mixed $entity, mixed $algorithm)

Parameters

mixed $entity
mixed $algorithm

Return Value

EventWithResult

at line 243
EventWithResult dispatchBlockElementsAvailableAlgorithmEvent(mixed $entity)

Parameters

mixed $entity

Return Value

EventWithResult

at line 259
BlockPageEvent|Event dispatchBlockPageUpdateEvent(mixed $entity, string $routeName, string $newRouteName, string $name)

Parameters

mixed $entity
string $routeName
string $newRouteName
string $name

Return Value

BlockPageEvent|Event

at line 272
array getProductsByNameJSON(mixed $searchParam, int $page, int $offset)

Do product search by text

Parameters

mixed $searchParam
int $page
int $offset

Return Value

array

at line 287
array getBrandsByNameJSON(mixed $searchParam, int $page, int $offset)

Get brands by search string

Parameters

mixed $searchParam
int $page
int $offset

Return Value

array

at line 300
array getCategoriesByNameJSON(mixed $searchParam, int $page, int $offset)

Get categories by search string

Parameters

mixed $searchParam
int $page
int $offset

Return Value

array

at line 308
object|Twig_Environment getTwigLoader()

Return Value

object|Twig_Environment

at line 316
object getTemplatingEngine()

Return Value

object

at line 324
clearRoutesCache()

at line 344
array getAllThemePages()

Return all pages to be managed

Return Value

array

at line 357
bool addNewCustomLayout(string $layout)

Add new custom layout

Parameters

string $layout

Return Value

bool

Exceptions

NonUniqueResultException

at line 368
Event dispatchEvent(string|null $eventKey, Event|null $event = null)

Parameters

string|null $eventKey
Event|null $event

Return Value

Event

at line 376
mixed getCurrentThemeName()

Return Value

mixed

at line 387
mixed getCurrentDbTheme()

Find theme by name

Return Value

mixed

Exceptions

NonUniqueResultException

at line 400
mixed getThemeByName(string $themeName)

Find theme by name

Parameters

string $themeName

Return Value

mixed

Exceptions

NonUniqueResultException

at line 411
saveTheme(Theme $theme)

Persist new theme

Parameters

Theme $theme

Exceptions

Exception

at line 423
array getProductsByAlgorithm(mixed $algorithm, integer $numberOfProducts)

Find products based on algorithm type

Parameters

mixed $algorithm
integer $numberOfProducts

Return Value

array

at line 432
mixed findAllActivePluginConfigLayouts()

Find all active plugin configuration templates for specific plugin

Return Value

mixed

at line 443
array findAllActivePluginsForTheme(string $theme = null)

Find all active plugin names for specific theme

Parameters

string $theme

Return Value

array

at line 452
setActivePluginConfigLayouts(array $activeBlocks)

Activate provided plugin layouts

Parameters

array $activeBlocks

at line 461
array getEntityRelationshipNames()

Get all distinct relationship names

Return Value

array

at line 473
array findAllTemplatesForTheme(bool $loadContent = false, null $entityType = null)

Get all templates for specified params

Parameters

bool $loadContent
null $entityType

Return Value

array

at line 483
object|BlockElementsTemplatesManager getBlockTemplatesManager()

Return Value

object|BlockElementsTemplatesManager

at line 492
Event dispatchBlockTemplateRemoveEvent()

Dispatch event when template is removed

Return Value

Event

at line 500
clearBlockElementCacheContent(string|null $template = null)

Parameters

string|null $template

at line 518
mixed getCacheDir()

Retrieve cache dir path

Return Value

mixed

at line 527
FSassFilter getFSasFilter()

Get FSaS filter for block rendering

Return Value

FSassFilter