1 | <?php |
||
34 | class MediaGalleryUpdateObserver extends MediaGalleryObserver |
||
35 | { |
||
36 | |||
37 | /** |
||
38 | * Initialize the product media gallery with the passed attributes and returns an instance. |
||
39 | * |
||
40 | * @param array $attr The product media gallery attributes |
||
41 | * |
||
42 | * @return array The initialized product media gallery |
||
43 | */ |
||
44 | protected function initializeProductMediaGallery(array $attr) |
||
59 | |||
60 | /** |
||
61 | * Initialize the product media gallery value to entity with the passed attributes and returns an instance. |
||
62 | * |
||
63 | * @param array $attr The product media gallery value to entity attributes |
||
64 | * |
||
65 | * @return array|null The initialized product media gallery value to entity, or NULL if the product media gallery value to entity already exists |
||
66 | */ |
||
67 | protected function initializeProductMediaGalleryValueToEntity(array $attr) |
||
82 | |||
83 | /** |
||
84 | * Load's the product media gallery with the passed attribute ID + value. |
||
85 | * |
||
86 | * @param integer $attributeId The attribute ID of the product media gallery to load |
||
87 | * @param string $value The value of the product media gallery to load |
||
88 | * |
||
89 | * @return array The product media gallery |
||
90 | */ |
||
91 | protected function loadProductMediaGallery($attributeId, $value) |
||
95 | |||
96 | /** |
||
97 | * Load's the product media gallery with the passed value/entity ID. |
||
98 | * |
||
99 | * @param integer $valueId The value ID of the product media gallery value to entity to load |
||
100 | * @param integer $entityId The entity ID of the product media gallery value to entity to load |
||
101 | * |
||
102 | * @return array The product media gallery |
||
103 | */ |
||
104 | protected function loadProductMediaGalleryValueToEntity($valueId, $entityId) |
||
108 | } |
||
109 |