1 | <?php |
||
34 | class MediaGalleryUpdateObserver extends MediaGalleryObserver |
||
35 | { |
||
36 | |||
37 | /** |
||
38 | * Merge's and return's the entity with the passed attributes and set's the |
||
39 | * passed status. |
||
40 | * |
||
41 | * @param array $entity The entity to merge the attributes into |
||
42 | * @param array $attr The attributes to be merged |
||
43 | * @param string|null $changeSetName The change set name to use |
||
44 | * |
||
45 | * @return array The merged entity |
||
46 | */ |
||
47 | protected function mergeEntity(array $entity, array $attr, $changeSetName = null) |
||
56 | |||
57 | /** |
||
58 | * Initialize the product media gallery with the passed attributes and returns an instance. |
||
59 | * |
||
60 | * @param array $attr The product media gallery attributes |
||
61 | * |
||
62 | * @return array The initialized product media gallery |
||
63 | */ |
||
64 | protected function initializeProductMediaGallery(array $attr) |
||
79 | |||
80 | /** |
||
81 | * Initialize the product media gallery value to entity with the passed attributes and returns an instance. |
||
82 | * |
||
83 | * @param array $attr The product media gallery value to entity attributes |
||
84 | * |
||
85 | * @return array|null The initialized product media gallery value to entity, or NULL if the product media gallery value to entity already exists |
||
86 | */ |
||
87 | protected function initializeProductMediaGalleryValueToEntity(array $attr) |
||
102 | |||
103 | /** |
||
104 | * Load's the product media gallery with the passed attribute ID + value. |
||
105 | * |
||
106 | * @param integer $attributeId The attribute ID of the product media gallery to load |
||
107 | * @param string $value The value of the product media gallery to load |
||
108 | * |
||
109 | * @return array The product media gallery |
||
110 | */ |
||
111 | protected function loadProductMediaGallery($attributeId, $value) |
||
115 | |||
116 | /** |
||
117 | * Load's the product media gallery with the passed value/entity ID. |
||
118 | * |
||
119 | * @param integer $valueId The value ID of the product media gallery value to entity to load |
||
120 | * @param integer $entityId The entity ID of the product media gallery value to entity to load |
||
121 | * |
||
122 | * @return array The product media gallery |
||
123 | */ |
||
124 | protected function loadProductMediaGalleryValueToEntity($valueId, $entityId) |
||
128 | } |
||
129 |