-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathProductGalleryManagementInterface.php
More file actions
64 lines (55 loc) · 1.71 KB
/
ProductGalleryManagementInterface.php
File metadata and controls
64 lines (55 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
namespace Cloudinary\Cloudinary\Api;
interface ProductGalleryManagementInterface
{
/**
* [!] DEPRECATED, please use addProductMedia() instead.
* Add product gallery item from Cloudinary URL.
* @method addItem
* @param string $url
* @param string $sku
* @param string|null $publicId
* @param string|null $roles
* @param string|null $label
* @param bool|int|null $disabled
* @param string $cldspinset
* @return string
*/
public function addItem($url = null, $sku = null, $publicId = null, $roles = null, $label = null, $disabled = 0, $cldspinset = null);
/**
* Add multiple gallery items to one or more products from Cloudinary URLs.
* @method addItems
* @param mixed $items
* @return string
*/
public function addItems($items);
/**
* Add product gallery items from Cloudinary URLs.
* @method addItem
* @param string $sku
* @param mixed $urls
* @return string
*/
public function addProductMedia($sku, $urls);
/**
* Get product gallery items as Cloudinary URLs.
* @method getProductMedia
* @param string $sku
* @return string
*/
public function getProductMedia($sku);
/**
* Get products gallery items as Cloudinary URLs.
* @method getProductsMedia
* @param mixed $skus
* @return string
*/
public function getProductsMedia($skus);
/** Remove Product images by publicIds
* @param string $sku
* @param mixed $urls
* @param bool | int | null $delete_all_gallery
* @return string
*/
public function removeProductMedia($sku, $urls, $delete_all_gallery = 0);
}