Class ProductRepositoryWriter
category |
System |
---|---|
package |
Product |
subpackage |
Repositories |
__construct(\CI_DB_query_builder $db, \LanguageProviderInterface $languageProvider)
Throws |
|
---|
\CI_DB_query_builder
\LanguageProviderInterface
_parseProductData(\ProductInterface $product) : array
_parseProductDescriptionData(\ProductInterface $product, \LanguageCode $languageCode) : array
Throws |
|
---|
\ProductInterface
\LanguageCode
array
_parseProductsQuantityUnitData(\IdType $productId, \IdType $quantityUnitId) : array
insert(\ProductInterface $product) : integer
Saves a new product in the database.
Throws |
|
---|
integer
Id of inserted product.
update(\StoredProductInterface $product) : \ProductRepositoryWriter
Updates a product in the database.
Throws |
|
---|
\ProductRepositoryWriter
Same instance for chained method calls.
db : \CI_DB_query_builder
var |
---|
\CI_DB_query_builder
languageProvider : \LanguageProviderInterface