1 | <?php |
||
36 | class ClearProductObserver extends AbstractProductImportObserver |
||
37 | { |
||
38 | |||
39 | /** |
||
40 | * Will be invoked by the action on the events the listener has been registered for. |
||
41 | * |
||
42 | * @param array $row The row to handle |
||
43 | * |
||
44 | * @return array The modified row |
||
45 | * @see \TechDivision\Import\Product\Observers\ImportObserverInterface::handle() |
||
46 | */ |
||
47 | 1 | public function handle(array $row) |
|
71 | |||
72 | /** |
||
73 | * Remove's the entity with the passed attributes. |
||
74 | * |
||
75 | * @param array $row The attributes of the entity to remove |
||
76 | * @param string|null $name The name of the prepared statement that has to be executed |
||
77 | * |
||
78 | * @return void |
||
79 | */ |
||
80 | 1 | public function removeProduct($row, $name = null) |
|
84 | |||
85 | /** |
||
86 | * Delete's the URL rewrite(s) with the passed attributes. |
||
87 | * |
||
88 | * @param array $row The attributes of the entity to remove |
||
89 | * @param string|null $name The name of the prepared statement that has to be executed |
||
90 | * |
||
91 | * @return void |
||
92 | */ |
||
93 | 1 | public function removeUrlRewrite($row, $name = null) |
|
97 | |||
98 | /** |
||
99 | * Delete's the stock item(s) with the passed attributes. |
||
100 | * |
||
101 | * @param array $row The attributes of the entity to remove |
||
102 | * @param string|null $name The name of the prepared statement that has to be executed |
||
103 | * |
||
104 | * @return void |
||
105 | */ |
||
106 | 1 | public function removeStockItem($row, $name = null) |
|
110 | |||
111 | /** |
||
112 | * Delete's the stock status with the passed attributes. |
||
113 | * |
||
114 | * @param array $row The attributes of the entity to remove |
||
115 | * @param string|null $name The name of the prepared statement that has to be executed |
||
116 | * |
||
117 | * @return void |
||
118 | */ |
||
119 | 1 | public function removeStockStatus($row, $name = null) |
|
123 | |||
124 | /** |
||
125 | * Delete's the product website relations with the passed attributes. |
||
126 | * |
||
127 | * @param array $row The attributes of the entity to remove |
||
128 | * @param string|null $name The name of the prepared statement that has to be executed |
||
129 | * |
||
130 | * @return void |
||
131 | */ |
||
132 | 1 | public function removeProductWebsite($row, $name = null) |
|
136 | |||
137 | /** |
||
138 | * Delete's the product category relations with the passed attributes. |
||
139 | * |
||
140 | * @param array $row The attributes of the entity to remove |
||
141 | * @param string|null $name The name of the prepared statement that has to be executed |
||
142 | * |
||
143 | * @return void |
||
144 | */ |
||
145 | 1 | public function removeProductCategory($row, $name = null) |
|
149 | } |
||
150 |