1 | <?php |
||
39 | class BunchSubject extends AbstractAttributeSubject |
||
40 | { |
||
41 | |||
42 | /** |
||
43 | * The attribute processor instance. |
||
44 | * |
||
45 | * @var \TechDivision\Import\Attribute\Services\AttributeBunchProcessorInterface |
||
46 | */ |
||
47 | protected $attributeBunchProcessor; |
||
48 | |||
49 | /** |
||
50 | * The array with the pre-loaded attribute IDs. |
||
51 | * |
||
52 | * @var array |
||
53 | */ |
||
54 | protected $preLoadedAttributeIds = array(); |
||
55 | |||
56 | /** |
||
57 | * Initialize the subject instance. |
||
58 | * |
||
59 | * @param \TechDivision\Import\Configuration\SubjectConfigurationInterface $configuration The subject configuration instance |
||
60 | * @param \TechDivision\Import\Services\RegistryProcessorInterface $registryProcessor The registry processor instance |
||
61 | * @param \TechDivision\Import\Utils\Generators\GeneratorInterface $coreConfigDataUidGenerator The UID generator for the core config data |
||
62 | * @param array $systemLoggers The array with the system loggers instances |
||
63 | * @param \TechDivision\Import\Attribute\Services\AttributeBunchProcessorInterface $attributeBunchProcessor The attribute bunch processor instance |
||
64 | */ |
||
65 | public function __construct( |
||
79 | |||
80 | /** |
||
81 | * Clean up the global data after importing the bunch. |
||
82 | * |
||
83 | * @param string $serial The serial of the actual import |
||
84 | * |
||
85 | * @return void |
||
86 | */ |
||
87 | public function tearDown($serial) |
||
104 | |||
105 | /** |
||
106 | * Pre-load the attribute ID for the EAV attribute with the passed code. |
||
107 | * |
||
108 | * @param string $attributeCode The code of the EAV attribute to pre-load |
||
109 | * |
||
110 | * @return void |
||
111 | */ |
||
112 | public function preLoadAttributeId($attributeCode) |
||
121 | |||
122 | /** |
||
123 | * Return's the attribute bunch processor instance. |
||
124 | * |
||
125 | * @return \TechDivision\Import\Attribute\Services\AttributeBunchProcessorInterface The attribute bunch processor instance |
||
126 | */ |
||
127 | protected function getAttributeBunchProcessor() |
||
131 | |||
132 | /** |
||
133 | * Load's and return's the EAV attribute with the passed code. |
||
134 | * |
||
135 | * @param string $attributeCode The code of the EAV attribute to load |
||
136 | * |
||
137 | * @return array The EAV attribute |
||
138 | */ |
||
139 | protected function loadAttributeByAttributeCode($attributeCode) |
||
143 | } |
||
144 |