1 | <?php |
||
34 | abstract class AbstractAttributeImportObserver extends AbstractObserver implements AttributeImportObserverInterface |
||
35 | { |
||
36 | |||
37 | /** |
||
38 | * Will be invoked by the action on the events the listener has been registered for. |
||
39 | * |
||
40 | * @param array $row The row to handle |
||
41 | * |
||
42 | * @return array The modified row |
||
43 | * @see \TechDivision\Import\Product\Observers\ImportObserverInterface::handle() |
||
44 | */ |
||
45 | public function handle(array $row) |
||
57 | |||
58 | /** |
||
59 | * Map's the passed attribute code to the attribute ID that has been created recently. |
||
60 | * |
||
61 | * @param string $attributeCode The attribute code that has to be mapped |
||
62 | * |
||
63 | * @return void |
||
64 | */ |
||
65 | protected function addAttributeCodeIdMapping($attributeCode) |
||
69 | |||
70 | /** |
||
71 | * Queries whether or not the attribute with the passed code has already been processed. |
||
72 | * |
||
73 | * @param string $attributeCode The attribute code to check |
||
74 | * |
||
75 | * @return boolean TRUE if the path has been processed, else FALSE |
||
76 | */ |
||
77 | protected function hasBeenProcessed($attributeCode) |
||
81 | |||
82 | /** |
||
83 | * Process the observer's business logic. |
||
84 | * |
||
85 | * @return void |
||
86 | */ |
||
87 | abstract protected function process(); |
||
88 | } |
||
89 |