ProductInfoService
extends TransactionalService
in package
Class ProductService
Table of Contents
Constants
- STORE_ID_DEPOT = 8
- STORE_ID_DROP = 9
- STORE_ID_FRANCE = 3
Properties
- $container : ContainerInterface
- $em : EntityManager
- $productInfoRepository : mixed
Methods
- addRepository() : void
- Add a repository to this service
- addService() : void
- Add a service to this service
- getEntityManager() : EntityManager
- Getter of the Entity Manager
- getEuStoresProduct() : mixed
- getRepo() : mixed
- Get ProductInfoRepository
- save() : ProductInfo
- Save a Product Info
- saveProductInfoFromData() : Product
- Save information for product
- setEntityManager() : mixed
- Setter of the Entity Manager
- updateProductShippingAmounts() : Product
- Updating shipping amount from magento
Constants
STORE_ID_DEPOT
public
mixed
STORE_ID_DEPOT
= 8
STORE_ID_DROP
public
mixed
STORE_ID_DROP
= 9
STORE_ID_FRANCE
public
mixed
STORE_ID_FRANCE
= 3
Properties
$container
protected
ContainerInterface
$container
$em
protected
EntityManager
$em
The Entity Manager
$productInfoRepository
protected
mixed
$productInfoRepository
Methods
addRepository()
Add a repository to this service
public
addRepository(int $key, string $class) : void
Parameters
- $key : int
-
Key
- $class : string
-
Class
addService()
Add a service to this service
public
addService(int $key, mixed $service) : void
Parameters
- $key : int
-
Key
- $service : mixed
getEntityManager()
Getter of the Entity Manager
public
getEntityManager() : EntityManager
Return values
EntityManagergetEuStoresProduct()
public
getEuStoresProduct(mixed $productId[, mixed $storeId = null ]) : mixed
Parameters
- $productId : mixed
- $storeId : mixed = null
getRepo()
Get ProductInfoRepository
public
getRepo() : mixed
save()
Save a Product Info
public
save(ProductInfo $productInfo) : ProductInfo
Parameters
- $productInfo : ProductInfo
Tags
Return values
ProductInfosaveProductInfoFromData()
Save information for product
public
saveProductInfoFromData(mixed $data, Product $product) : Product
Parameters
- $data : mixed
- $product : Product
Tags
Return values
ProductsetEntityManager()
Setter of the Entity Manager
public
setEntityManager(EntityManager $em) : mixed
Parameters
- $em : EntityManager
-
the Entity Manager
updateProductShippingAmounts()
Updating shipping amount from magento
public
updateProductShippingAmounts(mixed $data, Product $product) : Product
Parameters
- $data : mixed
- $product : Product