ProductOnModelManager
class ProductOnModelManager implements BasicEntityManagerInterface, JQGridInterface
Class ProductOnModelManager is injected as empire_product_on_model_plugin.product_on_model_manager service. ProductOnModelManager handles the logic for managed entity.
Traits
Properties
| protected ProductOnModelRepository | $repository | ||
| protected ProductOnModelEventContainer | $eventContainer |
Methods
No description
No description
No description
No description
Find product on model by primary key
Check if current user has fore admin
Get default locale from request stack
Search products by name with page and offset parameters
Delete products on model using array of entities
Get product on models
Find all products on model with pagination or count them
Get product on model by tag id
Remove products on model with no products
Details
in JQGridManagerTrait at line 26
mixed
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 40
mixed
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 53
mixed
getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)
at line 43
__construct(ProductOnModelRepository $repository, ProductOnModelEventContainer $eventContainer)
at line 58
mixed
findProductOnModelByPk(int $id)
Find product on model by primary key
at line 68
mixed
hasRoleAdmin()
Check if current user has fore admin
at line 77
string
getCurrentLocale()
Get default locale from request stack
at line 88
save(ProductOnModel $productOnModel)
Persist product on model entity
at line 101
PrimaryKeyInterface
saveProductOnModel(ProductOnModel $productOnModel)
Persist product on model entity
at line 140
PrimaryKeyInterface
editProductOnModel(ProductOnModel $productOnModel)
Edit product on model
at line 171
array
getProductsByNameJSON(string $nameString, int $page, int $offset)
Search products by name with page and offset parameters
at line 181
deleteProductsOnModel(array $productsOnModel, array $productOnModelArrayDB)
Delete products on model using array of entities
at line 199
array
getModelsArray(array $productOnModelArray)
Get product on models
at line 215
array
findProductsOnModel(int $page = 1, int $offset = 12, bool $isCount = false)
Find all products on model with pagination or count them
at line 224
deleteProductOnModel(ProductOnModel $pom)
Delete products on model
at line 238
mixed
getProductOnModelByTagId(int $id)
Get product on model by tag id
at line 246
removeProductsOnModelWithNoProducts()
Remove products on model with no products
at line 257
protected ProductOnModel
setProductOnModelImage(ProductOnModel $productOnModel)
Add image to current product