class ProductOnModelEventContainer

Class ProductOnModelEventContainer is injected as alligator.product.on.model.event.container. This container is connecting manager to other services

Methods

__construct(ContainerInterface $container)

No description

array
getProductsArray(array $productsArray)

Get products array

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

Search products by name with page and offset parameters

mixed
hasRoleAdmin()

Check if current user has fore admin

mixed
editTags(ProductOnModel $productOnModelDB, ProductOnModel $productOnModel)

Edit product tags

string
getDefaultLocale()

Get default locale from request stack

mixed
deleteImages(mixed $images)

Delete images

mixed
getTagsArray(array $array)

Get product tags array from database

mixed
getProductOnModelByTagId(String $id)

Get product on model by product tag primary key

mixed
removeProductsOnModelWithNoProducts()

Delete products on model without products

Details

at line 31
__construct(ContainerInterface $container)

Parameters

ContainerInterface $container

at line 43
array getProductsArray(array $productsArray)

Get products array

Parameters

array $productsArray

Return Value

array

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

Search products by name with page and offset parameters

Parameters

mixed $searchParam
int $page
int $offset

Return Value

array

at line 69
mixed hasRoleAdmin()

Check if current user has fore admin

Return Value

mixed

at line 81
mixed editTags(ProductOnModel $productOnModelDB, ProductOnModel $productOnModel)

Edit product tags

Parameters

ProductOnModel $productOnModelDB
ProductOnModel $productOnModel

Return Value

mixed

at line 90
string getDefaultLocale()

Get default locale from request stack

Return Value

string

at line 101
mixed deleteImages(mixed $images)

Delete images

Parameters

mixed $images

Return Value

mixed

at line 112
mixed getTagsArray(array $array)

Get product tags array from database

Parameters

array $array

Return Value

mixed

at line 123
mixed getProductOnModelByTagId(String $id)

Get product on model by product tag primary key

Parameters

String $id

Return Value

mixed

at line 132
mixed removeProductsOnModelWithNoProducts()

Delete products on model without products

Return Value

mixed