sellbrite - Version 1.1.1.0

Version Notes

- add new Sellbrite product list SOAP api with pagination
- remove using REST API

Download this release

Release Info

Developer Sellbrite
Extension sellbrite
Version 1.1.1.0
Comparing to
See all releases


Code changes from version 1.1.0.2 to 1.1.1.0

Files changed (25) hide show
  1. app/code/community/Sellbrite/.idea/.name +0 -1
  2. app/code/community/Sellbrite/.idea/Sellbrite.iml +0 -8
  3. app/code/community/Sellbrite/.idea/encodings.xml +0 -4
  4. app/code/community/Sellbrite/.idea/modules.xml +0 -8
  5. app/code/community/Sellbrite/.idea/scopes/scope_settings.xml +0 -5
  6. app/code/community/Sellbrite/.idea/vcs.xml +0 -6
  7. app/code/community/Sellbrite/.idea/workspace.xml +0 -272
  8. app/code/community/Sellbrite/Api/Block/Adminhtml/System/Config/Fieldset/Hint.php +3 -71
  9. app/code/community/Sellbrite/Api/Model/Catalog/Api2/Product/Rest/Admin/V1/Interceptor.php +0 -1037
  10. app/code/community/Sellbrite/Api/Model/Catalog/Product/Api.php +141 -0
  11. app/code/community/Sellbrite/Api/Model/Catalog/Product/Api/V2.php +8 -0
  12. app/code/community/Sellbrite/Api/Model/Catalog/Product/Format/ProductType/Configurable.php +0 -71
  13. app/code/community/Sellbrite/Api/Model/Catalog/Product/Plugin.php +0 -40
  14. app/code/community/Sellbrite/Api/Model/Catalog/ProductCollection/Plugin.php +0 -43
  15. app/code/community/Sellbrite/Api/Model/Credentials.php +0 -106
  16. app/code/community/Sellbrite/Api/Model/Resource/Token.php +0 -33
  17. app/code/community/Sellbrite/Api/Model/Token.php +0 -78
  18. app/code/community/Sellbrite/Api/data/sellbrite_setup/data-install-1.1.0.php +1 -106
  19. app/code/community/Sellbrite/Api/etc/api.xml +38 -0
  20. app/code/community/Sellbrite/Api/etc/api2.xml +0 -19
  21. app/code/community/Sellbrite/Api/etc/config.xml +1 -47
  22. app/code/community/Sellbrite/Api/etc/wsdl.xml +158 -0
  23. app/code/community/Sellbrite/Api/etc/wsi.xml +148 -0
  24. app/design/adminhtml/base/default/template/sellbrite/api/system/config/fieldset/hint.phtml +3 -14
  25. package.xml +9 -8
app/code/community/Sellbrite/.idea/.name DELETED
@@ -1 +0,0 @@
1
- Sellbrite
 
app/code/community/Sellbrite/.idea/Sellbrite.iml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$" />
5
- <orderEntry type="inheritedJdk" />
6
- <orderEntry type="sourceFolder" forTests="false" />
7
- </component>
8
- </module>
 
 
 
 
 
 
 
 
app/code/community/Sellbrite/.idea/encodings.xml DELETED
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
- </project>
 
 
 
 
app/code/community/Sellbrite/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/Sellbrite.iml" filepath="$PROJECT_DIR$/.idea/Sellbrite.iml" />
6
- </modules>
7
- </component>
8
- </project>
 
 
 
 
 
 
 
 
app/code/community/Sellbrite/.idea/scopes/scope_settings.xml DELETED
@@ -1,5 +0,0 @@
1
- <component name="DependencyValidationManager">
2
- <state>
3
- <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
- </state>
5
- </component>
 
 
 
 
 
app/code/community/Sellbrite/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="" />
5
- </component>
6
- </project>
 
 
 
 
 
 
app/code/community/Sellbrite/.idea/workspace.xml DELETED
@@ -1,272 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ChangeListManager">
4
- <list default="true" id="b5dcfef6-b38b-4aa8-a345-bd26b96761cc" name="Default" comment="" />
5
- <ignored path="Sellbrite.iws" />
6
- <ignored path=".idea/workspace.xml" />
7
- <ignored path=".idea/dataSources.local.xml" />
8
- <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9
- <option name="TRACKING_ENABLED" value="true" />
10
- <option name="SHOW_DIALOG" value="false" />
11
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
13
- <option name="LAST_RESOLUTION" value="IGNORE" />
14
- </component>
15
- <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
16
- <component name="CreatePatchCommitExecutor">
17
- <option name="PATCH_PATH" value="" />
18
- </component>
19
- <component name="DaemonCodeAnalyzer">
20
- <disable_hints />
21
- </component>
22
- <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
23
- <component name="FavoritesManager">
24
- <favorites_list name="Sellbrite" />
25
- </component>
26
- <component name="FileEditorManager">
27
- <leaf>
28
- <file leaf-file-name="Data.php" pinned="false" current-in-tab="false">
29
- <entry file="file://$PROJECT_DIR$/Api/Helper/Data.php">
30
- <provider selected="true" editor-type-id="text-editor">
31
- <state vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="195">
32
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
33
- <folding />
34
- </state>
35
- </provider>
36
- </entry>
37
- </file>
38
- <file leaf-file-name="Token.php" pinned="false" current-in-tab="false">
39
- <entry file="file://$PROJECT_DIR$/Api/Model/Token.php">
40
- <provider selected="true" editor-type-id="text-editor">
41
- <state vertical-scroll-proportion="26.291666" vertical-offset="631" max-vertical-offset="1245">
42
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
43
- <folding />
44
- </state>
45
- </provider>
46
- </entry>
47
- </file>
48
- <file leaf-file-name="Hint.php" pinned="false" current-in-tab="true">
49
- <entry file="file://$PROJECT_DIR$/Api/Block/Adminhtml/System/Config/Fieldset/Hint.php">
50
- <provider selected="true" editor-type-id="text-editor">
51
- <state vertical-scroll-proportion="0.3668478" vertical-offset="120" max-vertical-offset="2745">
52
- <caret line="17" column="7" selection-start-line="17" selection-start-column="7" selection-end-line="17" selection-end-column="7" />
53
- <folding />
54
- </state>
55
- </provider>
56
- </entry>
57
- </file>
58
- <file leaf-file-name="config.xml" pinned="false" current-in-tab="false">
59
- <entry file="file://$PROJECT_DIR$/Api/etc/config.xml">
60
- <provider selected="true" editor-type-id="text-editor">
61
- <state vertical-scroll-proportion="0.0" vertical-offset="931" max-vertical-offset="1350">
62
- <caret line="84" column="9" selection-start-line="84" selection-start-column="9" selection-end-line="84" selection-end-column="9" />
63
- <folding />
64
- </state>
65
- </provider>
66
- </entry>
67
- </file>
68
- </leaf>
69
- </component>
70
- <component name="IdeDocumentHistory">
71
- <option name="CHANGED_PATHS">
72
- <list>
73
- <option value="$PROJECT_DIR$/Api/etc/config.xml" />
74
- <option value="$PROJECT_DIR$/Api/Block/Adminhtml/System/Config/Fieldset/Hint.php" />
75
- </list>
76
- </option>
77
- </component>
78
- <component name="JsGulpfileManager">
79
- <detection-done>true</detection-done>
80
- </component>
81
- <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
82
- <component name="ProjectFrameBounds">
83
- <option name="y" value="23" />
84
- <option name="width" value="1280" />
85
- <option name="height" value="735" />
86
- </component>
87
- <component name="ProjectLevelVcsManager" settingsEditedManually="false">
88
- <OptionsSetting value="true" id="Add" />
89
- <OptionsSetting value="true" id="Remove" />
90
- <OptionsSetting value="true" id="Checkout" />
91
- <OptionsSetting value="true" id="Update" />
92
- <OptionsSetting value="true" id="Status" />
93
- <OptionsSetting value="true" id="Edit" />
94
- <ConfirmationsSetting value="0" id="Add" />
95
- <ConfirmationsSetting value="0" id="Remove" />
96
- </component>
97
- <component name="ProjectView">
98
- <navigator currentView="ProjectPane" proportions="" version="1">
99
- <flattenPackages />
100
- <showMembers />
101
- <showModules />
102
- <showLibraryContents />
103
- <hideEmptyPackages />
104
- <abbreviatePackageNames />
105
- <autoscrollToSource />
106
- <autoscrollFromSource />
107
- <sortByType />
108
- </navigator>
109
- <panes>
110
- <pane id="ProjectPane">
111
- <subPane>
112
- <PATH>
113
- <PATH_ELEMENT>
114
- <option name="myItemId" value="Sellbrite" />
115
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
116
- </PATH_ELEMENT>
117
- </PATH>
118
- <PATH>
119
- <PATH_ELEMENT>
120
- <option name="myItemId" value="Sellbrite" />
121
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
122
- </PATH_ELEMENT>
123
- <PATH_ELEMENT>
124
- <option name="myItemId" value="Sellbrite" />
125
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
126
- </PATH_ELEMENT>
127
- <PATH_ELEMENT>
128
- <option name="myItemId" value="Api" />
129
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
130
- </PATH_ELEMENT>
131
- </PATH>
132
- <PATH>
133
- <PATH_ELEMENT>
134
- <option name="myItemId" value="Sellbrite" />
135
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
136
- </PATH_ELEMENT>
137
- <PATH_ELEMENT>
138
- <option name="myItemId" value="Sellbrite" />
139
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
140
- </PATH_ELEMENT>
141
- <PATH_ELEMENT>
142
- <option name="myItemId" value="Api" />
143
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
144
- </PATH_ELEMENT>
145
- <PATH_ELEMENT>
146
- <option name="myItemId" value="etc" />
147
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
148
- </PATH_ELEMENT>
149
- </PATH>
150
- </subPane>
151
- </pane>
152
- <pane id="Scope" />
153
- </panes>
154
- </component>
155
- <component name="PropertiesComponent">
156
- <property name="WebServerToolWindowFactoryState" value="true" />
157
- <property name="last_opened_file_path" value="$PROJECT_DIR$/../../../design/adminhtml/base" />
158
- </component>
159
- <component name="RunManager">
160
- <configuration default="true" type="PHPUnitRunConfigurationType" factoryName="PHPUnit">
161
- <TestRunner />
162
- <method />
163
- </configuration>
164
- <configuration default="true" type="PhpLocalRunConfigurationType" factoryName="PHP Console">
165
- <method />
166
- </configuration>
167
- <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
168
- <method />
169
- </configuration>
170
- <configuration default="true" type="PhpBehatConfigurationType" factoryName="Behat">
171
- <BehatRunner />
172
- <method />
173
- </configuration>
174
- <configuration default="true" type="PhpUnitRemoteRunConfigurationType" factoryName="PHPUnit on Server">
175
- <method />
176
- </configuration>
177
- <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
178
- <method />
179
- </configuration>
180
- <list size="0" />
181
- </component>
182
- <component name="ShelveChangesManager" show_recycled="false" />
183
- <component name="TaskManager">
184
- <task active="true" id="Default" summary="Default task">
185
- <changelist id="b5dcfef6-b38b-4aa8-a345-bd26b96761cc" name="Default" comment="" />
186
- <created>1444188511065</created>
187
- <option name="number" value="Default" />
188
- <updated>1444188511065</updated>
189
- </task>
190
- <servers />
191
- </component>
192
- <component name="ToolWindowManager">
193
- <frame x="0" y="23" width="1280" height="735" extended-state="0" />
194
- <editor active="true" />
195
- <layout>
196
- <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
197
- <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
198
- <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
199
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32882884" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
200
- <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
201
- <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
202
- <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
203
- <window_info id="Remote Host" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
204
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
205
- <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
206
- <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
207
- <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
208
- <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
209
- <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
210
- <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
211
- <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
212
- <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
213
- <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
214
- <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
215
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
216
- </layout>
217
- </component>
218
- <component name="Vcs.Log.UiProperties">
219
- <option name="RECENTLY_FILTERED_USER_GROUPS">
220
- <collection />
221
- </option>
222
- <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
223
- <collection />
224
- </option>
225
- </component>
226
- <component name="VcsContentAnnotationSettings">
227
- <option name="myLimit" value="2678400000" />
228
- </component>
229
- <component name="VcsManagerConfiguration">
230
- <option name="myTodoPanelSettings">
231
- <TodoPanelSettings />
232
- </option>
233
- </component>
234
- <component name="XDebuggerManager">
235
- <breakpoint-manager />
236
- <watches-manager />
237
- </component>
238
- <component name="editorHistoryManager">
239
- <entry file="file://$PROJECT_DIR$/Api/Helper/Data.php">
240
- <provider selected="true" editor-type-id="text-editor">
241
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="638">
242
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
243
- <folding />
244
- </state>
245
- </provider>
246
- </entry>
247
- <entry file="file://$PROJECT_DIR$/Api/Model/Token.php">
248
- <provider selected="true" editor-type-id="text-editor">
249
- <state vertical-scroll-proportion="26.291666" vertical-offset="631" max-vertical-offset="1245">
250
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
251
- <folding />
252
- </state>
253
- </provider>
254
- </entry>
255
- <entry file="file://$PROJECT_DIR$/Api/etc/config.xml">
256
- <provider selected="true" editor-type-id="text-editor">
257
- <state vertical-scroll-proportion="0.0" vertical-offset="931" max-vertical-offset="1350">
258
- <caret line="84" column="9" selection-start-line="84" selection-start-column="9" selection-end-line="84" selection-end-column="9" />
259
- <folding />
260
- </state>
261
- </provider>
262
- </entry>
263
- <entry file="file://$PROJECT_DIR$/Api/Block/Adminhtml/System/Config/Fieldset/Hint.php">
264
- <provider selected="true" editor-type-id="text-editor">
265
- <state vertical-scroll-proportion="0.3668478" vertical-offset="120" max-vertical-offset="2745">
266
- <caret line="17" column="7" selection-start-line="17" selection-start-column="7" selection-end-line="17" selection-end-column="7" />
267
- <folding />
268
- </state>
269
- </provider>
270
- </entry>
271
- </component>
272
- </project>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Sellbrite/Api/Block/Adminhtml/System/Config/Fieldset/Hint.php CHANGED
@@ -15,13 +15,6 @@ class Sellbrite_Api_Block_Adminhtml_System_Config_Fieldset_Hint
15
  */
16
  protected $minVersion = '1.7.0.0';
17
 
18
- /**
19
- * Maximum supported Magento version
20
- *
21
- * @var string
22
- */
23
- protected $maxVersion = '1.9.3.0';
24
-
25
  /**
26
  * Fieldset render template
27
  *
@@ -64,16 +57,6 @@ class Sellbrite_Api_Block_Adminhtml_System_Config_Fieldset_Hint
64
  return $this->minVersion;
65
  }
66
 
67
- /**
68
- * Get max version
69
- *
70
- * @return string
71
- */
72
- public function getMaxVersion()
73
- {
74
- return $this->maxVersion;
75
- }
76
-
77
  /**
78
  * Check if current Magento version is supported by extension
79
  *
@@ -95,46 +78,6 @@ class Sellbrite_Api_Block_Adminhtml_System_Config_Fieldset_Hint
95
  return Mage::getVersion();
96
  }
97
 
98
- /**
99
- * Get consumer key
100
- *
101
- * @return string
102
- */
103
- public function getConsumerKey()
104
- {
105
- return $this->credentials->getConsumerKey();
106
- }
107
-
108
- /**
109
- * Get consumer secret
110
- *
111
- * @return string
112
- */
113
- public function getConsumerSecret()
114
- {
115
- return $this->credentials->getConsumerSecret();
116
- }
117
-
118
- /**
119
- * Get access key
120
- *
121
- * @return string
122
- */
123
- public function getAccessToken()
124
- {
125
- return $this->credentials->getAccessToken();
126
- }
127
-
128
- /**
129
- * Get access secret
130
- *
131
- * @return string
132
- */
133
- public function getAccessSecret()
134
- {
135
- return $this->credentials->getAccessSecret();
136
- }
137
-
138
  /**
139
  * Get SOAP user
140
  *
@@ -145,15 +88,14 @@ class Sellbrite_Api_Block_Adminhtml_System_Config_Fieldset_Hint
145
  return $this->credentials->getSoapUser();
146
  }
147
 
148
-
149
  /**
150
- * Get site URL
151
  *
152
  * @return string
153
  */
154
- public function getSiteURL()
155
  {
156
- return $this->credentials->getSiteURL();
157
  }
158
 
159
  /**
@@ -165,14 +107,4 @@ class Sellbrite_Api_Block_Adminhtml_System_Config_Fieldset_Hint
165
  {
166
  return $this->credentials->getEndPointUrl();
167
  }
168
-
169
- /**
170
- * Get API Key
171
- *
172
- * @return string
173
- */
174
- public function getApiKey()
175
- {
176
- return $this->credentials->getApiKey();
177
- }
178
  }
15
  */
16
  protected $minVersion = '1.7.0.0';
17
 
 
 
 
 
 
 
 
18
  /**
19
  * Fieldset render template
20
  *
57
  return $this->minVersion;
58
  }
59
 
 
 
 
 
 
 
 
 
 
 
60
  /**
61
  * Check if current Magento version is supported by extension
62
  *
78
  return Mage::getVersion();
79
  }
80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  /**
82
  * Get SOAP user
83
  *
88
  return $this->credentials->getSoapUser();
89
  }
90
 
 
91
  /**
92
+ * Get API Key
93
  *
94
  * @return string
95
  */
96
+ public function getApiKey()
97
  {
98
+ return $this->credentials->getApiKey();
99
  }
100
 
101
  /**
107
  {
108
  return $this->credentials->getEndPointUrl();
109
  }
 
 
 
 
 
 
 
 
 
 
110
  }
app/code/community/Sellbrite/Api/Model/Catalog/Api2/Product/Rest/Admin/V1/Interceptor.php DELETED
@@ -1,1037 +0,0 @@
1
- <?php
2
- /**
3
- * Class Sellbrite_Api_Model_Catalog_Api2_Product_Rest_Admin_V1_Interceptor
4
- *
5
- * How To Extend a Logic of This Class?
6
- *
7
- * This class is designed to provide new extension points for overridden class Mage_Catalog_Model_Api2_Product_Rest_Admin_V1
8
- * Every extension can decorate/pluginize all methods of Mage_Catalog_Model_Api2_Product_Rest_Admin_V1 (public and protected)
9
- * using config.xml file. Please, declare your configuration in the following format:
10
- * <config>
11
- * <global>
12
- * <catalog_product_list_item_plugins>
13
- * <{intercepted_method_name}>
14
- * <{strategy_type}>
15
- * <any_node_name>namespace_module/class_name</any_node_name>
16
- * </{strategy_type}>
17
- * </{intercepted_method_name}>
18
- * </catalog_product_list_item_plugins>
19
- * </global>
20
- * </config>
21
- *
22
- * where {intercepted_method_name} - one of the method of Mage_Catalog_Model_Api2_Product_Rest_Admin_V1,
23
- * {strategy_type} - interception strategy type:
24
- * - before (method invokeBefore of your class will be called before original call),
25
- * - after (method invokeAfter of your class will be called after original call),
26
- * - around (method invokeAround of your class will be called instead of original call)
27
- */
28
- class Sellbrite_Api_Model_Catalog_Api2_Product_Rest_Admin_V1_Interceptor extends
29
- Mage_Catalog_Model_Api2_Product_Rest_Admin_V1
30
- {
31
- const LISTENER_BEFORE = 'before';
32
- const LISTENER_AROUND = 'around';
33
- const LISTENER_AFTER = 'after';
34
-
35
- /**
36
- * Get declared plugins
37
- *
38
- * @param string $methodName
39
- * @return array|null
40
- */
41
- protected function _getPluginsInfo($methodName)
42
- {
43
- $pluginInfo = Mage::getConfig()->getNode(
44
- 'global/catalog_product_list_item_plugins/' . $methodName
45
- );
46
-
47
- if (!$pluginInfo) {
48
- return null;
49
- }
50
- return $pluginInfo->asArray();
51
- }
52
-
53
- /**
54
- * Call plugins
55
- *
56
- * @param string $method
57
- * @param array $arguments
58
- * @param array $pluginInfo
59
- * @return mixed
60
- */
61
- protected function ___callPlugins($method, array $arguments, array $pluginInfo)
62
- {
63
- $result = null;
64
- if (isset($pluginInfo[self::LISTENER_BEFORE])) {
65
- // Call 'before' listeners
66
- foreach ($pluginInfo[self::LISTENER_BEFORE] as $code) {
67
- $beforeResult = call_user_func_array(array(Mage::getSingleton($code), 'invokeBefore'), $arguments);
68
- if ($beforeResult) {
69
- $arguments = $beforeResult;
70
- }
71
- }
72
- }
73
-
74
- if (isset($pluginInfo[self::LISTENER_AROUND])) {
75
- // Call 'around' listener
76
- foreach ($pluginInfo[self::LISTENER_AFTER] as $code) {
77
- $result = call_user_func_array(
78
- array(Mage::getSingleton($code), 'invokeAround'),
79
- array_merge($arguments, $result)
80
- );
81
- }
82
- } else {
83
- // Call original method
84
- $result = call_user_func_array(array('parent', $method), $arguments);
85
- }
86
-
87
- if (isset($pluginInfo[self::LISTENER_AFTER])) {
88
- // Call 'after' listeners
89
- foreach ($pluginInfo[self::LISTENER_AFTER] as $code) {
90
- $result = call_user_func_array(array(Mage::getSingleton($code), 'invokeAfter'), array($result));
91
- }
92
- }
93
- return $result;
94
- }
95
-
96
-
97
- //======================================= Start Auto-generated Code ======================================//
98
-
99
- /**
100
- * {@inheritdoc}
101
- */
102
- public function getAvailableAttributes($userType, $operation)
103
- {
104
- $pluginInfo = $this->_getPluginsInfo('getAvailableAttributes');
105
- if (!$pluginInfo) {
106
- return parent::getAvailableAttributes($userType, $operation);
107
- } else {
108
- return $this->___callPlugins('getAvailableAttributes', func_get_args(), $pluginInfo);
109
- }
110
- }
111
-
112
- /**
113
- * {@inheritdoc}
114
- */
115
- protected function _isAttributeVisible(Mage_Catalog_Model_Resource_Eav_Attribute $attribute, $userType)
116
- {
117
- $pluginInfo = $this->_getPluginsInfo('_isAttributeVisible');
118
- if (!$pluginInfo) {
119
- return parent::_isAttributeVisible($attribute, $userType);
120
- } else {
121
- return $this->___callPlugins('_isAttributeVisible', func_get_args(), $pluginInfo);
122
- }
123
- }
124
-
125
- /**
126
- * {@inheritdoc}
127
- */
128
- public function dispatch()
129
- {
130
- $pluginInfo = $this->_getPluginsInfo('dispatch');
131
- if (!$pluginInfo) {
132
- parent::dispatch();
133
- } else {
134
- return $this->___callPlugins('dispatch', func_get_args(), $pluginInfo);
135
- }
136
- }
137
-
138
- /**
139
- * {@inheritdoc}
140
- */
141
- protected function _errorIfMethodNotExist($methodName)
142
- {
143
- $pluginInfo = $this->_getPluginsInfo('_errorIfMethodNotExist');
144
- if (!$pluginInfo) {
145
- parent::_errorIfMethodNotExist($methodName);
146
- } else {
147
- return $this->___callPlugins('_errorIfMethodNotExist', func_get_args(), $pluginInfo);
148
- }
149
- }
150
-
151
- /**
152
- * {@inheritdoc}
153
- */
154
- protected function _checkMethodExist($methodName)
155
- {
156
- $pluginInfo = $this->_getPluginsInfo('_checkMethodExist');
157
- if (!$pluginInfo) {
158
- return parent::_checkMethodExist($methodName);
159
- } else {
160
- return $this->___callPlugins('_checkMethodExist', func_get_args(), $pluginInfo);
161
- }
162
- }
163
-
164
- /**
165
- * {@inheritdoc}
166
- */
167
- public function getRequest()
168
- {
169
- $pluginInfo = $this->_getPluginsInfo('getRequest');
170
- if (!$pluginInfo) {
171
- return parent::getRequest();
172
- } else {
173
- return $this->___callPlugins('getRequest', func_get_args(), $pluginInfo);
174
- }
175
- }
176
-
177
- /**
178
- * {@inheritdoc}
179
- */
180
- public function setRequest(Mage_Api2_Model_Request $request)
181
- {
182
- $pluginInfo = $this->_getPluginsInfo('setRequest');
183
- if (!$pluginInfo) {
184
- return parent::setRequest($request);
185
- } else {
186
- return $this->___callPlugins('setRequest', func_get_args(), $pluginInfo);
187
- }
188
- }
189
-
190
- /**
191
- * {@inheritdoc}
192
- */
193
- public function getResourceType()
194
- {
195
- $pluginInfo = $this->_getPluginsInfo('getResourceType');
196
- if (!$pluginInfo) {
197
- return parent::getResourceType();
198
- } else {
199
- return $this->___callPlugins('getResourceType', func_get_args(), $pluginInfo);
200
- }
201
- }
202
-
203
- /**
204
- * {@inheritdoc}
205
- */
206
- public function setResourceType($resourceType)
207
- {
208
- $pluginInfo = $this->_getPluginsInfo('setResourceType');
209
- if (!$pluginInfo) {
210
- return parent::setResourceType($resourceType);
211
- } else {
212
- return $this->___callPlugins('setResourceType', func_get_args(), $pluginInfo);
213
- }
214
- }
215
-
216
- /**
217
- * {@inheritdoc}
218
- */
219
- public function getApiType()
220
- {
221
- $pluginInfo = $this->_getPluginsInfo('getApiType');
222
- if (!$pluginInfo) {
223
- return parent::getApiType();
224
- } else {
225
- return $this->___callPlugins('getApiType', func_get_args(), $pluginInfo);
226
- }
227
- }
228
-
229
- /**
230
- * {@inheritdoc}
231
- */
232
- public function setApiType($apiType)
233
- {
234
- $pluginInfo = $this->_getPluginsInfo('setApiType');
235
- if (!$pluginInfo) {
236
- return parent::setApiType($apiType);
237
- } else {
238
- return $this->___callPlugins('setApiType', func_get_args(), $pluginInfo);
239
- }
240
- }
241
-
242
- /**
243
- * {@inheritdoc}
244
- */
245
- public function getVersion()
246
- {
247
- $pluginInfo = $this->_getPluginsInfo('getVersion');
248
- if (!$pluginInfo) {
249
- return parent::getVersion();
250
- } else {
251
- return $this->___callPlugins('getVersion', func_get_args(), $pluginInfo);
252
- }
253
- }
254
-
255
- /**
256
- * {@inheritdoc}
257
- */
258
- public function setVersion($version)
259
- {
260
- $pluginInfo = $this->_getPluginsInfo('setVersion');
261
- if (!$pluginInfo) {
262
- parent::setVersion($version);
263
- } else {
264
- return $this->___callPlugins('setVersion', func_get_args(), $pluginInfo);
265
- }
266
- }
267
-
268
- /**
269
- * {@inheritdoc}
270
- */
271
- public function getResponse()
272
- {
273
- $pluginInfo = $this->_getPluginsInfo('getResponse');
274
- if (!$pluginInfo) {
275
- return parent::getResponse();
276
- } else {
277
- return $this->___callPlugins('getResponse', func_get_args(), $pluginInfo);
278
- }
279
- }
280
-
281
- /**
282
- * {@inheritdoc}
283
- */
284
- public function setResponse(Mage_Api2_Model_Response $response)
285
- {
286
- $pluginInfo = $this->_getPluginsInfo('setResponse');
287
- if (!$pluginInfo) {
288
- parent::setResponse($response);
289
- } else {
290
- return $this->___callPlugins('setResponse', func_get_args(), $pluginInfo);
291
- }
292
- }
293
-
294
- /**
295
- * {@inheritdoc}
296
- */
297
- public function getFilter()
298
- {
299
- $pluginInfo = $this->_getPluginsInfo('getFilter');
300
- if (!$pluginInfo) {
301
- return parent::getFilter();
302
- } else {
303
- return $this->___callPlugins('getFilter', func_get_args(), $pluginInfo);
304
- }
305
- }
306
-
307
- /**
308
- * {@inheritdoc}
309
- */
310
- public function setFilter(Mage_Api2_Model_Acl_Filter $filter)
311
- {
312
- $pluginInfo = $this->_getPluginsInfo('setFilter');
313
- if (!$pluginInfo) {
314
- parent::setFilter($filter);
315
- } else {
316
- return $this->___callPlugins('setFilter', func_get_args(), $pluginInfo);
317
- }
318
- }
319
-
320
- /**
321
- * {@inheritdoc}
322
- */
323
- public function getRenderer()
324
- {
325
- $pluginInfo = $this->_getPluginsInfo('getRenderer');
326
- if (!$pluginInfo) {
327
- return parent::getRenderer();
328
- } else {
329
- return $this->___callPlugins('getRenderer', func_get_args(), $pluginInfo);
330
- }
331
- }
332
-
333
- /**
334
- * {@inheritdoc}
335
- */
336
- public function setRenderer(Mage_Api2_Model_Renderer_Interface $renderer)
337
- {
338
- $pluginInfo = $this->_getPluginsInfo('setRenderer');
339
- if (!$pluginInfo) {
340
- parent::setRenderer($renderer);
341
- } else {
342
- return $this->___callPlugins('setRenderer', func_get_args(), $pluginInfo);
343
- }
344
- }
345
-
346
- /**
347
- * {@inheritdoc}
348
- */
349
- public function getUserType()
350
- {
351
- $pluginInfo = $this->_getPluginsInfo('getUserType');
352
- if (!$pluginInfo) {
353
- return parent::getUserType();
354
- } else {
355
- return $this->___callPlugins('getUserType', func_get_args(), $pluginInfo);
356
- }
357
- }
358
-
359
- /**
360
- * {@inheritdoc}
361
- */
362
- public function setUserType($userType)
363
- {
364
- $pluginInfo = $this->_getPluginsInfo('setUserType');
365
- if (!$pluginInfo) {
366
- return parent::setUserType($userType);
367
- } else {
368
- return $this->___callPlugins('setUserType', func_get_args(), $pluginInfo);
369
- }
370
- }
371
-
372
- /**
373
- * {@inheritdoc}
374
- */
375
- public function getApiUser()
376
- {
377
- $pluginInfo = $this->_getPluginsInfo('getApiUser');
378
- if (!$pluginInfo) {
379
- return parent::getApiUser();
380
- } else {
381
- return $this->___callPlugins('getApiUser', func_get_args(), $pluginInfo);
382
- }
383
- }
384
-
385
- /**
386
- * {@inheritdoc}
387
- */
388
- public function setApiUser(Mage_Api2_Model_Auth_User_Abstract $apiUser)
389
- {
390
- $pluginInfo = $this->_getPluginsInfo('setApiUser');
391
- if (!$pluginInfo) {
392
- return parent::setApiUser($apiUser);
393
- } else {
394
- return $this->___callPlugins('setApiUser', func_get_args(), $pluginInfo);
395
- }
396
- }
397
-
398
- /**
399
- * {@inheritdoc}
400
- */
401
- public function getActionType()
402
- {
403
- $pluginInfo = $this->_getPluginsInfo('getActionType');
404
- if (!$pluginInfo) {
405
- return parent::getActionType();
406
- } else {
407
- return $this->___callPlugins('getActionType', func_get_args(), $pluginInfo);
408
- }
409
- }
410
-
411
- /**
412
- * {@inheritdoc}
413
- */
414
- public function setActionType($actionType)
415
- {
416
- $pluginInfo = $this->_getPluginsInfo('setActionType');
417
- if (!$pluginInfo) {
418
- return parent::setActionType($actionType);
419
- } else {
420
- return $this->___callPlugins('setActionType', func_get_args(), $pluginInfo);
421
- }
422
- }
423
-
424
- /**
425
- * {@inheritdoc}
426
- */
427
- public function getOperation()
428
- {
429
- $pluginInfo = $this->_getPluginsInfo('getOperation');
430
- if (!$pluginInfo) {
431
- return parent::getOperation();
432
- } else {
433
- return $this->___callPlugins('getOperation', func_get_args(), $pluginInfo);
434
- }
435
- }
436
-
437
- /**
438
- * {@inheritdoc}
439
- */
440
- public function setOperation($operation)
441
- {
442
- $pluginInfo = $this->_getPluginsInfo('setOperation');
443
- if (!$pluginInfo) {
444
- return parent::setOperation($operation);
445
- } else {
446
- return $this->___callPlugins('setOperation', func_get_args(), $pluginInfo);
447
- }
448
- }
449
-
450
- /**
451
- * {@inheritdoc}
452
- */
453
- public function getConfig()
454
- {
455
- $pluginInfo = $this->_getPluginsInfo('getConfig');
456
- if (!$pluginInfo) {
457
- return parent::getConfig();
458
- } else {
459
- return $this->___callPlugins('getConfig', func_get_args(), $pluginInfo);
460
- }
461
- }
462
-
463
- /**
464
- * {@inheritdoc}
465
- */
466
- public function getWorkingModel()
467
- {
468
- $pluginInfo = $this->_getPluginsInfo('getWorkingModel');
469
- if (!$pluginInfo) {
470
- return parent::getWorkingModel();
471
- } else {
472
- return $this->___callPlugins('getWorkingModel', func_get_args(), $pluginInfo);
473
- }
474
- }
475
-
476
- /**
477
- * {@inheritdoc}
478
- */
479
- protected function _render($data)
480
- {
481
- $pluginInfo = $this->_getPluginsInfo('_render');
482
- if (!$pluginInfo) {
483
- parent::_render($data);
484
- } else {
485
- return $this->___callPlugins('_render', func_get_args(), $pluginInfo);
486
- }
487
- }
488
-
489
- /**
490
- * {@inheritdoc}
491
- */
492
- protected function _critical($message, $code = null)
493
- {
494
- $pluginInfo = $this->_getPluginsInfo('_critical');
495
- if (!$pluginInfo) {
496
- parent::_critical($message, $code);
497
- } else {
498
- return $this->___callPlugins('_critical', func_get_args(), $pluginInfo);
499
- }
500
- }
501
-
502
- /**
503
- * {@inheritdoc}
504
- */
505
- protected function _getCriticalErrors()
506
- {
507
- $pluginInfo = $this->_getPluginsInfo('_getCriticalErrors');
508
- if (!$pluginInfo) {
509
- return parent::_getCriticalErrors();
510
- } else {
511
- return $this->___callPlugins('_getCriticalErrors', func_get_args(), $pluginInfo);
512
- }
513
- }
514
-
515
- /**
516
- * {@inheritdoc}
517
- */
518
- protected function _error($message, $code)
519
- {
520
- $pluginInfo = $this->_getPluginsInfo('_error');
521
- if (!$pluginInfo) {
522
- return parent::_error($message, $code);
523
- } else {
524
- return $this->___callPlugins('_error', func_get_args(), $pluginInfo);
525
- }
526
- }
527
-
528
- /**
529
- * {@inheritdoc}
530
- */
531
- protected function _successMessage($message, $code, $params = array())
532
- {
533
- $pluginInfo = $this->_getPluginsInfo('_successMessage');
534
- if (!$pluginInfo) {
535
- return parent::_successMessage($message, $code, $params);
536
- } else {
537
- return $this->___callPlugins('_successMessage', func_get_args(), $pluginInfo);
538
- }
539
- }
540
-
541
- /**
542
- * {@inheritdoc}
543
- */
544
- protected function _errorMessage($message, $code, $params = array())
545
- {
546
- $pluginInfo = $this->_getPluginsInfo('_errorMessage');
547
- if (!$pluginInfo) {
548
- return parent::_errorMessage($message, $code, $params);
549
- } else {
550
- return $this->___callPlugins('_errorMessage', func_get_args(), $pluginInfo);
551
- }
552
- }
553
-
554
- /**
555
- * {@inheritdoc}
556
- */
557
- protected function _applyFilter(Varien_Data_Collection_Db $collection)
558
- {
559
- $pluginInfo = $this->_getPluginsInfo('_applyFilter');
560
- if (!$pluginInfo) {
561
- return parent::_applyFilter($collection);
562
- } else {
563
- return $this->___callPlugins('_applyFilter', func_get_args(), $pluginInfo);
564
- }
565
- }
566
-
567
- /**
568
- * {@inheritdoc}
569
- */
570
- protected function _multicall($resourceInstanceId)
571
- {
572
- $pluginInfo = $this->_getPluginsInfo('_multicall');
573
- if (!$pluginInfo) {
574
- return parent::_multicall($resourceInstanceId);
575
- } else {
576
- return $this->___callPlugins('_multicall', func_get_args(), $pluginInfo);
577
- }
578
- }
579
-
580
- /**
581
- * {@inheritdoc}
582
- */
583
- protected function _getSubModel($resourceId, array $requestParams)
584
- {
585
- $pluginInfo = $this->_getPluginsInfo('_getSubModel');
586
- if (!$pluginInfo) {
587
- return parent::_getSubModel($resourceId, $requestParams);
588
- } else {
589
- return $this->___callPlugins('_getSubModel', func_get_args(), $pluginInfo);
590
- }
591
- }
592
-
593
- /**
594
- * {@inheritdoc}
595
- */
596
- protected function _isSubCallAllowed($resourceId)
597
- {
598
- $pluginInfo = $this->_getPluginsInfo('_isSubCallAllowed');
599
- if (!$pluginInfo) {
600
- return parent::_isSubCallAllowed($resourceId);
601
- } else {
602
- return $this->___callPlugins('_isSubCallAllowed', func_get_args(), $pluginInfo);
603
- }
604
- }
605
-
606
- /**
607
- * {@inheritdoc}
608
- */
609
- public function setReturnData($flag)
610
- {
611
- $pluginInfo = $this->_getPluginsInfo('setReturnData');
612
- if (!$pluginInfo) {
613
- return parent::setReturnData($flag);
614
- } else {
615
- return $this->___callPlugins('setReturnData', func_get_args(), $pluginInfo);
616
- }
617
- }
618
-
619
- /**
620
- * {@inheritdoc}
621
- */
622
- protected function _getLocation($resource)
623
- {
624
- $pluginInfo = $this->_getPluginsInfo('_getLocation');
625
- if (!$pluginInfo) {
626
- return parent::_getLocation($resource);
627
- } else {
628
- return $this->___callPlugins('_getLocation', func_get_args(), $pluginInfo);
629
- }
630
- }
631
-
632
- /**
633
- * {@inheritdoc}
634
- */
635
- protected function _getResourceAttributes()
636
- {
637
- $pluginInfo = $this->_getPluginsInfo('_getResourceAttributes');
638
- if (!$pluginInfo) {
639
- return parent::_getResourceAttributes();
640
- } else {
641
- return $this->___callPlugins('_getResourceAttributes', func_get_args(), $pluginInfo);
642
- }
643
- }
644
-
645
- /**
646
- * {@inheritdoc}
647
- */
648
- public function getExcludedAttributes($userType, $operation)
649
- {
650
- $pluginInfo = $this->_getPluginsInfo('getExcludedAttributes');
651
- if (!$pluginInfo) {
652
- return parent::getExcludedAttributes($userType, $operation);
653
- } else {
654
- return $this->___callPlugins('getExcludedAttributes', func_get_args(), $pluginInfo);
655
- }
656
- }
657
-
658
- /**
659
- * {@inheritdoc}
660
- */
661
- public function getForcedAttributes()
662
- {
663
- $pluginInfo = $this->_getPluginsInfo('getForcedAttributes');
664
- if (!$pluginInfo) {
665
- return parent::getForcedAttributes();
666
- } else {
667
- return $this->___callPlugins('getForcedAttributes', func_get_args(), $pluginInfo);
668
- }
669
- }
670
-
671
- /**
672
- * {@inheritdoc}
673
- */
674
- public function getIncludedAttributes($userType, $operationType)
675
- {
676
- $pluginInfo = $this->_getPluginsInfo('getIncludedAttributes');
677
- if (!$pluginInfo) {
678
- return parent::getIncludedAttributes($userType, $operationType);
679
- } else {
680
- return $this->___callPlugins('getIncludedAttributes', func_get_args(), $pluginInfo);
681
- }
682
- }
683
-
684
- /**
685
- * {@inheritdoc}
686
- */
687
- public function getEntityOnlyAttributes($userType, $operationType)
688
- {
689
- $pluginInfo = $this->_getPluginsInfo('getEntityOnlyAttributes');
690
- if (!$pluginInfo) {
691
- return parent::getEntityOnlyAttributes($userType, $operationType);
692
- } else {
693
- return $this->___callPlugins('getEntityOnlyAttributes', func_get_args(), $pluginInfo);
694
- }
695
- }
696
-
697
- /**
698
- * {@inheritdoc}
699
- */
700
- public function getAvailableAttributesFromConfig()
701
- {
702
- $pluginInfo = $this->_getPluginsInfo('getAvailableAttributesFromConfig');
703
- if (!$pluginInfo) {
704
- return parent::getAvailableAttributesFromConfig();
705
- } else {
706
- return $this->___callPlugins('getAvailableAttributesFromConfig', func_get_args(), $pluginInfo);
707
- }
708
- }
709
-
710
- /**
711
- * {@inheritdoc}
712
- */
713
- public function getDbAttributes()
714
- {
715
- $pluginInfo = $this->_getPluginsInfo('getDbAttributes');
716
- if (!$pluginInfo) {
717
- return parent::getDbAttributes();
718
- } else {
719
- return $this->___callPlugins('getDbAttributes', func_get_args(), $pluginInfo);
720
- }
721
- }
722
-
723
- /**
724
- * {@inheritdoc}
725
- */
726
- public function getEavAttributes($onlyVisible = false, $excludeSystem = false)
727
- {
728
- $pluginInfo = $this->_getPluginsInfo('getEavAttributes');
729
- if (!$pluginInfo) {
730
- return parent::getEavAttributes($onlyVisible, $excludeSystem);
731
- } else {
732
- return $this->___callPlugins('getEavAttributes', func_get_args(), $pluginInfo);
733
- }
734
- }
735
-
736
- /**
737
- * {@inheritdoc}
738
- */
739
- protected function _getStore()
740
- {
741
- $pluginInfo = $this->_getPluginsInfo('_getStore');
742
- if (!$pluginInfo) {
743
- return parent::_getStore();
744
- } else {
745
- return $this->___callPlugins('_getStore', func_get_args(), $pluginInfo);
746
- }
747
- }
748
-
749
- /**
750
- * {@inheritdoc}
751
- */
752
- protected function _retrieve()
753
- {
754
- $pluginInfo = $this->_getPluginsInfo('_retrieve');
755
- if (!$pluginInfo) {
756
- return parent::_retrieve();
757
- } else {
758
- return $this->___callPlugins('_retrieve', func_get_args(), $pluginInfo);
759
- }
760
- }
761
-
762
- /**
763
- * {@inheritdoc}
764
- */
765
- protected function _applyCategoryFilter(Mage_Catalog_Model_Resource_Product_Collection $collection)
766
- {
767
- $pluginInfo = $this->_getPluginsInfo('_applyCategoryFilter');
768
- if (!$pluginInfo) {
769
- parent::_applyCategoryFilter($collection);
770
- } else {
771
- return $this->___callPlugins('_applyCategoryFilter', func_get_args(), $pluginInfo);
772
- }
773
- }
774
-
775
- /**
776
- * {@inheritdoc}
777
- */
778
- protected function _getProduct()
779
- {
780
- $pluginInfo = $this->_getPluginsInfo('_getProduct');
781
- if (!$pluginInfo) {
782
- return parent::_getProduct();
783
- } else {
784
- return $this->___callPlugins('_getProduct', func_get_args(), $pluginInfo);
785
- }
786
- }
787
-
788
- /**
789
- * {@inheritdoc}
790
- */
791
- protected function _setProduct(Mage_Catalog_Model_Product $product)
792
- {
793
- $pluginInfo = $this->_getPluginsInfo('_setProduct');
794
- if (!$pluginInfo) {
795
- parent::_setProduct($product);
796
- } else {
797
- return $this->___callPlugins('_setProduct', func_get_args(), $pluginInfo);
798
- }
799
- }
800
-
801
- /**
802
- * {@inheritdoc}
803
- */
804
- protected function _getCategoryById($categoryId)
805
- {
806
- $pluginInfo = $this->_getPluginsInfo('_getCategoryById');
807
- if (!$pluginInfo) {
808
- return parent::_getCategoryById($categoryId);
809
- } else {
810
- return $this->___callPlugins('_getCategoryById', func_get_args(), $pluginInfo);
811
- }
812
- }
813
-
814
- /**
815
- * {@inheritdoc}
816
- */
817
- protected function _getPrice($price, $includingTax = null, $shippingAddress = null,
818
- $billingAddress = null, $ctc = null, $priceIncludesTax = null
819
- )
820
- {
821
- $pluginInfo = $this->_getPluginsInfo('_getPrice');
822
- if (!$pluginInfo) {
823
- return parent::_getPrice($price, $includingTax, $shippingAddress, $billingAddress, $ctc, $priceIncludesTax);
824
- } else {
825
- return $this->___callPlugins('_getPrice', func_get_args(), $pluginInfo);
826
- }
827
- }
828
-
829
- /**
830
- * {@inheritdoc}
831
- */
832
- protected function _calculatePrice($price, $percent, $includeTax)
833
- {
834
- $pluginInfo = $this->_getPluginsInfo('_calculatePrice');
835
- if (!$pluginInfo) {
836
- return parent::_calculatePrice($price, $percent, $includeTax);
837
- } else {
838
- return $this->___callPlugins('_calculatePrice', func_get_args(), $pluginInfo);
839
- }
840
- }
841
-
842
- /**
843
- * {@inheritdoc}
844
- */
845
- protected function _getTierPrices()
846
- {
847
- $pluginInfo = $this->_getPluginsInfo('_getTierPrices');
848
- if (!$pluginInfo) {
849
- return parent::_getTierPrices();
850
- } else {
851
- return $this->___callPlugins('_getTierPrices', func_get_args(), $pluginInfo);
852
- }
853
- }
854
-
855
- /**
856
- * {@inheritdoc}
857
- */
858
- protected function _getCustomerGroupId()
859
- {
860
- $pluginInfo = $this->_getPluginsInfo('_getCustomerGroupId');
861
- if (!$pluginInfo) {
862
- return parent::_getCustomerGroupId();
863
- } else {
864
- return $this->___callPlugins('_getCustomerGroupId', func_get_args(), $pluginInfo);
865
- }
866
- }
867
-
868
- /**
869
- * {@inheritdoc}
870
- */
871
- protected function _applyTaxToPrice($price, $withTax = true)
872
- {
873
- $pluginInfo = $this->_getPluginsInfo('_applyTaxToPrice');
874
- if (!$pluginInfo) {
875
- return parent::_applyTaxToPrice($price, $withTax);
876
- } else {
877
- return $this->___callPlugins('_applyTaxToPrice', func_get_args(), $pluginInfo);
878
- }
879
- }
880
-
881
- /**
882
- * {@inheritdoc}
883
- */
884
- protected function _prepareProductForResponse(Mage_Catalog_Model_Product $product)
885
- {
886
- $pluginInfo = $this->_getPluginsInfo('_prepareProductForResponse');
887
- if (!$pluginInfo) {
888
- parent::_prepareProductForResponse($product);
889
- } else {
890
- return $this->___callPlugins('_prepareProductForResponse', func_get_args(), $pluginInfo);
891
- }
892
- }
893
-
894
- /**
895
- * {@inheritdoc}
896
- */
897
- protected function _filterOutArrayKeys(array $array, array $keys, $dropOrigKeys = false)
898
- {
899
- $pluginInfo = $this->_getPluginsInfo('_filterOutArrayKeys');
900
- if (!$pluginInfo) {
901
- return parent::_filterOutArrayKeys($array, $keys, $dropOrigKeys);
902
- } else {
903
- return $this->___callPlugins('_filterOutArrayKeys', func_get_args(), $pluginInfo);
904
- }
905
- }
906
-
907
- /**
908
- * {@inheritdoc}
909
- */
910
- protected function _retrieveCollection()
911
- {
912
- $pluginInfo = $this->_getPluginsInfo('_retrieveCollection');
913
- if (!$pluginInfo) {
914
- return parent::_retrieveCollection();
915
- } else {
916
- return $this->___callPlugins('_retrieveCollection', func_get_args(), $pluginInfo);
917
- }
918
- }
919
-
920
- /**
921
- * {@inheritdoc}
922
- */
923
- protected function _delete()
924
- {
925
- $pluginInfo = $this->_getPluginsInfo('_delete');
926
- if (!$pluginInfo) {
927
- parent::_delete();
928
- } else {
929
- return $this->___callPlugins('_delete', func_get_args(), $pluginInfo);
930
- }
931
- }
932
-
933
- /**
934
- * {@inheritdoc}
935
- */
936
- protected function _create(array $data)
937
- {
938
- $pluginInfo = $this->_getPluginsInfo('_create');
939
- if (!$pluginInfo) {
940
- return parent::_create($data);
941
- } else {
942
- return $this->___callPlugins('_create', func_get_args(), $pluginInfo);
943
- }
944
- }
945
-
946
- /**
947
- * {@inheritdoc}
948
- */
949
- protected function _update(array $data)
950
- {
951
- $pluginInfo = $this->_getPluginsInfo('_update');
952
- if (!$pluginInfo) {
953
- parent::_update($data);
954
- } else {
955
- return $this->___callPlugins('_update', func_get_args(), $pluginInfo);
956
- }
957
- }
958
-
959
- /**
960
- * {@inheritdoc}
961
- */
962
- protected function _isManageStockEnabled($stockData)
963
- {
964
- $pluginInfo = $this->_getPluginsInfo('_isManageStockEnabled');
965
- if (!$pluginInfo) {
966
- return parent::_isManageStockEnabled($stockData);
967
- } else {
968
- return $this->___callPlugins('_isManageStockEnabled', func_get_args(), $pluginInfo);
969
- }
970
- }
971
-
972
- /**
973
- * {@inheritdoc}
974
- */
975
- protected function _isConfigValueUsed($data, $field)
976
- {
977
- $pluginInfo = $this->_getPluginsInfo('_isConfigValueUsed');
978
- if (!$pluginInfo) {
979
- return parent::_isConfigValueUsed($data, $field);
980
- } else {
981
- return $this->___callPlugins('_isConfigValueUsed', func_get_args(), $pluginInfo);
982
- }
983
- }
984
-
985
- /**
986
- * {@inheritdoc}
987
- */
988
- protected function _prepareDataForSave($product, $productData)
989
- {
990
- $pluginInfo = $this->_getPluginsInfo('_prepareDataForSave');
991
- if (!$pluginInfo) {
992
- parent::_prepareDataForSave($product, $productData);
993
- } else {
994
- return $this->___callPlugins('_prepareDataForSave', func_get_args(), $pluginInfo);
995
- }
996
- }
997
-
998
- /**
999
- * {@inheritdoc}
1000
- */
1001
- protected function _filterStockData(&$stockData)
1002
- {
1003
- $pluginInfo = $this->_getPluginsInfo('_filterStockData');
1004
- if (!$pluginInfo) {
1005
- parent::_filterStockData($stockData);
1006
- } else {
1007
- return $this->___callPlugins('_filterStockData', func_get_args(), $pluginInfo);
1008
- }
1009
- }
1010
-
1011
- /**
1012
- * {@inheritdoc}
1013
- */
1014
- protected function _filterConfigValueUsed(&$data, $fields)
1015
- {
1016
- $pluginInfo = $this->_getPluginsInfo('_filterConfigValueUsed');
1017
- if (!$pluginInfo) {
1018
- parent::_filterConfigValueUsed($data, $fields);
1019
- } else {
1020
- return $this->___callPlugins('_filterConfigValueUsed', func_get_args(), $pluginInfo);
1021
- }
1022
- }
1023
-
1024
- /**
1025
- * {@inheritdoc}
1026
- */
1027
- protected function _isAllowedAttribute($attribute, $attributes = null)
1028
- {
1029
- $pluginInfo = $this->_getPluginsInfo('_isAllowedAttribute');
1030
- if (!$pluginInfo) {
1031
- return parent::_isAllowedAttribute($attribute, $attributes);
1032
- } else {
1033
- return $this->___callPlugins('_isAllowedAttribute', func_get_args(), $pluginInfo);
1034
- }
1035
- }
1036
- //======================================= Start Auto-generated Code ======================================//
1037
- }