You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Methods can be called like enable(), disable(), remove(), makeDefault() etc.
90
-
* If any array item has an associative key => value pair, value will be considered as the method name and key will be the associated path to be used with the action.
93
+
* If any array item has an associative key => value pair, value will be considered as the method name
94
+
* and key will be the associated path to be used with the action.
91
95
*
92
-
* @var array
96
+
* @var array $customGetActions
97
+
* @var array $customPostActions
98
+
* @var array $customPutActions
99
+
* @var array $customDeleteActions
93
100
*/
94
101
protected$customGetActions = array();
95
102
protected$customPostActions = array();
@@ -98,6 +105,7 @@ abstract class ShopifyAPI
98
105
99
106
/**
100
107
* The ID of the resource
108
+
*
101
109
* If provided, the actions will be called against that specific resource ID
102
110
*
103
111
* @var integer
@@ -125,6 +133,7 @@ public function __construct($config, $id = null)
125
133
126
134
/**
127
135
* Return ShopifyAPI instance for the child resource.
136
+
*
128
137
* @example $shopify->Product($productID)->Image->get(); //Here Product is the parent resource and Image is a child resource
129
138
* Called like an object properties (without parenthesis)
130
139
*
@@ -139,6 +148,7 @@ public function __get($childName)
139
148
140
149
/**
141
150
* Return ShopifyAPI instance for the child resource or call a custom action for the resource
151
+
*
142
152
* @example $shopify->Product($productID)->Image($imageID)->get(); //Here Product is the parent resource and Image is a child resource
143
153
* Called like an object method (with parenthesis) optionally with the resource ID as the first argument
144
154
* @example $shopify->Discount($discountID)->enable(); //Calls custom action enable() on Discount resource
@@ -240,6 +250,7 @@ public function getResourceName()
240
250
241
251
/**
242
252
* Get the resource key to be used for while sending data to the API
253
+
*
243
254
* Normally its the same as $resourceKey, when it's different, the specific resource class will override this function
244
255
*
245
256
* @return string
@@ -251,6 +262,7 @@ public function getResourcePostKey()
251
262
252
263
/**
253
264
* Get the pluralized version of the resource key
265
+
*
254
266
* Normally its the same as $resourceKey appended with 's', when it's different, the specific resource class will override this function
255
267
*
256
268
* @return string
@@ -262,6 +274,7 @@ protected function pluralizeKey()
262
274
263
275
/**
264
276
* Get the resource path to be used to generate the api url
277
+
*
265
278
* Normally its the same as the pluralized version of the resource key,
266
279
* when it's different, the specific resource class will override this function
267
280
*
@@ -450,6 +463,8 @@ public function prepareRequest($dataArray = array())
0 commit comments