1 | <?php |
||
34 | class VariantUpdateObserver extends VariantObserver |
||
35 | { |
||
36 | |||
37 | /** |
||
38 | * Initialize the product relation with the passed attributes and returns an instance. |
||
39 | * |
||
40 | * @param array $attr The product relation attributes |
||
41 | * |
||
42 | * @return array|null The initialized product relation, or null if the relation already exsist |
||
43 | */ |
||
44 | protected function initializeProductRelation(array $attr) |
||
59 | |||
60 | /** |
||
61 | * Initialize the product super link with the passed attributes and returns an instance. |
||
62 | * |
||
63 | * @param array $attr The product super link attributes |
||
64 | * |
||
65 | * @return array|null The initialized product super link, or null if the super link already exsist |
||
66 | */ |
||
67 | protected function initializeProductSuperLink(array $attr) |
||
82 | |||
83 | /** |
||
84 | * Load's the product relation with the passed parent/child ID. |
||
85 | * |
||
86 | * @param integer $parentId The entity ID of the product relation's parent product |
||
87 | * @param integer $childId The entity ID of the product relation's child product |
||
88 | * |
||
89 | * @return array The product relation |
||
90 | */ |
||
91 | protected function loadProductRelation($parentId, $childId) |
||
95 | |||
96 | /** |
||
97 | * Load's the product super link with the passed product/parent ID. |
||
98 | * |
||
99 | * @param integer $productId The entity ID of the product super link's product |
||
100 | * @param integer $parentId The entity ID of the product super link's parent product |
||
101 | * |
||
102 | * @return array The product super link |
||
103 | */ |
||
104 | protected function loadProductSuperLink($productId, $parentId) |
||
108 | } |
||
109 |