1 | <?php |
||
11 | class ImageSetStorage extends Storage |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @return mixed |
||
16 | */ |
||
17 | public function getImageSet() |
||
21 | |||
22 | /** |
||
23 | * Get Image by slug |
||
24 | * |
||
25 | * @param $slug |
||
26 | * |
||
27 | * @return \stdClass |
||
28 | */ |
||
29 | public function getImageSetBySlug($slug) |
||
40 | |||
41 | /** |
||
42 | * Add image set |
||
43 | * |
||
44 | * @param $postValues |
||
45 | * |
||
46 | * @throws \Exception |
||
47 | */ |
||
48 | public function addImageSet($postValues) |
||
58 | |||
59 | /** |
||
60 | * Save Image Set by it's slug |
||
61 | * |
||
62 | * @param $slug |
||
63 | * @param $postValues |
||
64 | * |
||
65 | * @throws \Exception |
||
66 | */ |
||
67 | public function saveImageSet($slug, $postValues) |
||
80 | |||
81 | /** |
||
82 | * Delete Image Set by its slug |
||
83 | * |
||
84 | * @param $slug |
||
85 | * |
||
86 | * @throws \Exception |
||
87 | */ |
||
88 | public function deleteImageSetBySlug($slug) |
||
101 | |||
102 | /** |
||
103 | * Get the image set with the smallest size |
||
104 | * |
||
105 | * @return \stdClass |
||
106 | */ |
||
107 | public function getSmallestImageSet() |
||
129 | } |