1 | <?php |
||
35 | abstract class AbstractProductImportObserver extends AbstractObserver implements ProductImportObserverInterface |
||
36 | { |
||
37 | |||
38 | /** |
||
39 | * Set's the array containing header row. |
||
40 | * |
||
41 | * @param array $headers The array with the header row |
||
42 | * |
||
43 | * @return void |
||
44 | */ |
||
45 | public function setHeaders(array $headers) |
||
49 | |||
50 | /** |
||
51 | * Return's the array containing header row. |
||
52 | * |
||
53 | * @return array The array with the header row |
||
54 | */ |
||
55 | 6 | public function getHeaders() |
|
59 | |||
60 | /** |
||
61 | * Return's TRUE if the passed SKU is the actual one. |
||
62 | * |
||
63 | * @param string $sku The SKU to check |
||
64 | * |
||
65 | * @return boolean TRUE if the passed SKU is the actual one |
||
66 | */ |
||
67 | 6 | public function isLastSku($sku) |
|
71 | |||
72 | /** |
||
73 | * Return's the ID of the product that has been created recently. |
||
74 | * |
||
75 | * @return string The entity Id |
||
76 | */ |
||
77 | 3 | public function getLastEntityId() |
|
81 | |||
82 | /** |
||
83 | * Return's the source date format to use. |
||
84 | * |
||
85 | * @return string The source date format |
||
86 | */ |
||
87 | public function getSourceDateFormat() |
||
91 | |||
92 | /** |
||
93 | * Cast's the passed value based on the backend type information. |
||
94 | * |
||
95 | * @param string $backendType The backend type to cast to |
||
96 | * @param mixed $value The value to be casted |
||
97 | * |
||
98 | * @return mixed The casted value |
||
99 | */ |
||
100 | public function castValueByBackendType($backendType, $value) |
||
104 | |||
105 | /** |
||
106 | * Set's the store view code the create the product/attributes for. |
||
107 | * |
||
108 | * @param string $storeViewCode The store view code |
||
109 | * |
||
110 | * @return void |
||
111 | */ |
||
112 | public function setStoreViewCode($storeViewCode) |
||
116 | |||
117 | /** |
||
118 | * Return's the store view code the create the product/attributes for. |
||
119 | * |
||
120 | * @param string|null $default The default value to return, if the store view code has not been set |
||
121 | * |
||
122 | * @return string The store view code |
||
123 | */ |
||
124 | public function getStoreViewCode($default = null) |
||
128 | |||
129 | /** |
||
130 | * Prepare's the store view code in the subject. |
||
131 | * |
||
132 | * @param array $row The row with the data |
||
133 | * |
||
134 | * @return void |
||
135 | */ |
||
136 | 3 | public function prepareStoreViewCode($row) |
|
153 | } |
||
154 |