ProductImportRideauxCommand
extends ContainerAwareCommand
in package
uses
LockableTrait
Table of Contents
Properties
- $attributeService : AttributeService
- $attributeSetId : mixed
- $attributeSetService : AttributeSetService
- $catIds : mixed
- $color : mixed
- $colorFamily : mixed
- $manufactor : mixed
- $matiere : mixed
- $newProductService : NewProductService
- $statProductCreationService : StatProductCreationService
- $typeAttachment : mixed
Methods
- __construct() : mixed
- ProductImportCommand constructor.
- configure() : mixed
- Configure command
- execute() : int|void|null
- getIdAttributeByCodeAndValue() : false|int|string
- getProductVariations() : mixed
- getSkuColorRegx() : string
Properties
$attributeService
private
AttributeService
$attributeService
$attributeSetId
private
mixed
$attributeSetId
= 72
$attributeSetService
private
AttributeSetService
$attributeSetService
$catIds
private
mixed
$catIds
= [84, 182]
$color
private
mixed
$color
= ["Gris clair" => 580, "Gris foncé" => 581, "Marron" => 59, "Café" => 0, "Beige clair" => 0, "Beige" => 143, "Beige jaune" => 0, "Noir" => 24, "Bleu foncé" => 0, "Bleu clair" => 579, "Marron clair" => 0, "Azur" => 0, "Jaune" => 519, "Gris" => 61, "Vert" => 22, "Bordeaux" => 642, "Orange" => 226, "Violet" => 227, "Blanc" => 60, "Crème" => 513, "Gris bleu" => 0, "Gris vert" => 0, "Marine" => 0, "Rose" => 57, "Rouge" => 26, "Pourpre" => 604, "Argent" => 23, "Bleu" => 25, "Arc-en-ciel" => 254, "Doré" => 341]
$colorFamily
private
mixed
$colorFamily
= ["Gris" => 572, "Marron" => 571, "Beige" => 568, "Noir" => 573, "Bleu" => 569, "Jaune" => 564, "Vert" => 567, "Bordeaux" => 570, "Orange" => 565, "Violet" => 566, "Blanc" => 574, "Crème" => 574, "Rose" => 563, "Rouge" => 570, "Gris " => 572, "Pourpre" => 566, "Argent" => 560, "Arc-en-ciel" => 605, "Doré" => 629]
$manufactor
private
mixed
$manufactor
= 698
$matiere
private
mixed
$matiere
= ["Polyester, coton" => [771, 770], "Coton, Polyester" => [771, 770], "100 % Polyester" => [771], "Polyester, Coton" => [771, 770], "100 Polyester" => [771], "100% Polyester" => [771], "Coton, polyester" => [771, 770], "Polyester, PVC" => [771, 191], "Aluminium" => [735], "Polyester" => [771]]
$newProductService
private
NewProductService
$newProductService
$statProductCreationService
private
StatProductCreationService
$statProductCreationService
$typeAttachment
private
mixed
$typeAttachment
Methods
__construct()
ProductImportCommand constructor.
public
__construct(NewProductService $newProductService, AttributeSetService $attributeSetService, AttributeService $attributeService, StatProductCreationService $statProductCreationService[, null $name = null ]) : mixed
Parameters
- $newProductService : NewProductService
- $attributeSetService : AttributeSetService
- $attributeService : AttributeService
- $statProductCreationService : StatProductCreationService
- $name : null = null
configure()
Configure command
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int|void|null
Parameters
- $input : InputInterface
- $output : OutputInterface
Tags
Return values
int|void|nullgetIdAttributeByCodeAndValue()
private
getIdAttributeByCodeAndValue(mixed $codeAttribute, mixed $value) : false|int|string
Parameters
- $codeAttribute : mixed
- $value : mixed
Return values
false|int|stringgetProductVariations()
private
getProductVariations(mixed $skus) : mixed
Parameters
- $skus : mixed
getSkuColorRegx()
private
getSkuColorRegx(mixed $sku) : string
Parameters
- $sku : mixed