ProductOnModelEventContainer
class ProductOnModelEventContainer
Class ProductOnModelEventContainer is injected as alligator.product.on.model.event.container. This container is connecting manager to other services
Methods
No description
Get products array
Search products by name with page and offset parameters
Check if current user has fore admin
Get default locale from request stack
Delete images
Get product tags array from database
Get product on model by product tag primary key
Delete products on model without products
Details
at line 31
__construct(ContainerInterface $container)
at line 43
array
getProductsArray(array $productsArray)
Get products array
at line 57
array
getProductsByNameJSON(mixed $searchParam, int $page, int $offset)
Search products by name with page and offset parameters
at line 69
mixed
hasRoleAdmin()
Check if current user has fore admin
at line 81
mixed
editTags(ProductOnModel $productOnModelDB, ProductOnModel $productOnModel)
Edit product tags
at line 90
string
getDefaultLocale()
Get default locale from request stack
at line 101
mixed
deleteImages(mixed $images)
Delete images
at line 112
mixed
getTagsArray(array $array)
Get product tags array from database
at line 123
mixed
getProductOnModelByTagId(String $id)
Get product on model by product tag primary key
at line 132
mixed
removeProductsOnModelWithNoProducts()
Delete products on model without products