1 | <?php |
||
35 | class EeMediaGalleryObserver extends MediaGalleryObserver |
||
36 | { |
||
37 | |||
38 | /** |
||
39 | * Prepare the product media gallery value to entity that has to be persisted. |
||
40 | * |
||
41 | * @return array The prepared product media gallery value to entity attributes |
||
42 | */ |
||
43 | protected function prepareProductMediaGalleryValueToEntityAttributes() |
||
54 | |||
55 | /** |
||
56 | * Map's the passed SKU of the parent product to it's PK. |
||
57 | * |
||
58 | * @param string $parentSku The SKU of the parent product |
||
59 | * |
||
60 | * @return integer The primary key used to create relations |
||
61 | */ |
||
62 | protected function mapParentSku($parentSku) |
||
66 | |||
67 | /** |
||
68 | * Return the row ID for the passed SKU. |
||
69 | * |
||
70 | * @param string $sku The SKU to return the row ID for |
||
71 | * |
||
72 | * @return integer The mapped row ID |
||
73 | * @throws \Exception Is thrown if the SKU is not mapped yet |
||
74 | */ |
||
75 | protected function mapSkuToRowId($sku) |
||
79 | } |
||
80 |