1 | <?php |
||
27 | class ProductAttribute extends MagentoModuleAbstract |
||
28 | { |
||
29 | /** |
||
30 | * Allows you to add a new option for attributes with selectable fields. |
||
31 | * |
||
32 | * @param string $attribute |
||
33 | * @param array $data |
||
34 | * |
||
35 | * @return ActionInterface |
||
36 | */ |
||
37 | public function addOption($attribute, $data) |
||
41 | |||
42 | /** |
||
43 | * Allows you to create a new product attribute. |
||
44 | * |
||
45 | * @param array $data |
||
46 | * |
||
47 | * @return ActionInterface |
||
48 | */ |
||
49 | public function create($data) |
||
53 | |||
54 | /** |
||
55 | * Allows you to set/get the current store view. |
||
56 | * |
||
57 | * @param string $storeView |
||
58 | * |
||
59 | * @return ActionInterface |
||
60 | */ |
||
61 | public function setCurrentStore($storeView) |
||
65 | |||
66 | /** |
||
67 | * Allows you to get full information about a required attribute with the list of options. |
||
68 | * |
||
69 | * @param string $attribute |
||
70 | * |
||
71 | * @return ActionInterface |
||
72 | */ |
||
73 | public function getInfo($attribute) |
||
77 | |||
78 | /** |
||
79 | * Allows you to retrieve the list of product attributes. |
||
80 | * |
||
81 | * @param string $setId |
||
82 | * |
||
83 | * @return ActionInterface |
||
84 | */ |
||
85 | public function getList($setId) |
||
89 | |||
90 | /** |
||
91 | * Allows you to retrieve the product attribute options. |
||
92 | * |
||
93 | * @param string $attributeId |
||
94 | * @param string $storeView |
||
95 | * |
||
96 | * @return ActionInterface |
||
97 | */ |
||
98 | public function getOptions($attributeId, $storeView = null) |
||
102 | |||
103 | /** |
||
104 | * Allows you to remove the required attribute from a product. |
||
105 | * |
||
106 | * @param string $attribute |
||
107 | * |
||
108 | * @return ActionInterface |
||
109 | */ |
||
110 | public function remove($attribute) |
||
114 | |||
115 | /** |
||
116 | * Allows you to remove the option for an attribute. |
||
117 | * |
||
118 | * @param string $attribute |
||
119 | * @param string $optionId |
||
120 | * |
||
121 | * @return ActionInterface |
||
122 | */ |
||
123 | public function removeOption($attribute, $optionId) |
||
127 | |||
128 | /** |
||
129 | * Allows you to retrieve the list of possible attribute types. |
||
130 | * |
||
131 | * @return ActionInterface |
||
132 | */ |
||
133 | public function getTypes() |
||
137 | |||
138 | /** |
||
139 | * Allows you to update the required attribute. |
||
140 | * |
||
141 | * @param string $attribute |
||
142 | * @param array $data |
||
143 | * |
||
144 | * @return ActionInterface |
||
145 | */ |
||
146 | public function update($attribute, $data) |
||
150 | } |
||
151 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.