@@ -33,6 +33,7 @@ class Material extends Api
33
33
* Upload image.
34
34
* @param string $path
35
35
* @return mixed
36
+ * @throws \yii\httpclient\Exception
36
37
*/
37
38
public function uploadImage ($ path )
38
39
{
@@ -43,6 +44,7 @@ public function uploadImage($path)
43
44
* Upload voice.
44
45
* @param string $path
45
46
* @return mixed
47
+ * @throws \yii\httpclient\Exception
46
48
*/
47
49
public function uploadVoice ($ path )
48
50
{
@@ -53,6 +55,7 @@ public function uploadVoice($path)
53
55
* Upload thumb.
54
56
* @param string $path
55
57
* @return mixed
58
+ * @throws \yii\httpclient\Exception
56
59
*/
57
60
public function uploadThumb ($ path )
58
61
{
@@ -65,6 +68,7 @@ public function uploadThumb($path)
65
68
* @param string $title
66
69
* @param string $description
67
70
* @return mixed
71
+ * @throws \yii\httpclient\Exception
68
72
*/
69
73
public function uploadVideo ($ path , $ title , $ description )
70
74
{
@@ -83,6 +87,7 @@ public function uploadVideo($path, $title, $description)
83
87
* Upload articles.
84
88
* @param array|Article $articles
85
89
* @return array
90
+ * @throws \yii\httpclient\Exception
86
91
*/
87
92
public function uploadArticle ($ articles )
88
93
{
@@ -108,6 +113,7 @@ public function uploadArticle($articles)
108
113
* @param string $article
109
114
* @param int $index
110
115
* @return array
116
+ * @throws \yii\httpclient\Exception
111
117
*/
112
118
public function updateArticle ($ mediaId , $ article , $ index = 0 )
113
119
{
@@ -123,6 +129,7 @@ public function updateArticle($mediaId, $article, $index = 0)
123
129
* Upload image for article.
124
130
* @param string $path
125
131
* @return mixed
132
+ * @throws \yii\httpclient\Exception
126
133
*/
127
134
public function uploadArticleImage ($ path )
128
135
{
@@ -171,6 +178,7 @@ public function get1($mediaId)
171
178
* Delete material by media ID.
172
179
* @param string $mediaId
173
180
* @return array
181
+ * @throws \yii\httpclient\Exception
174
182
*/
175
183
public function delete ($ mediaId )
176
184
{
@@ -199,6 +207,7 @@ public function delete($mediaId)
199
207
* @param int $count
200
208
*
201
209
* @return array
210
+ * @throws \yii\httpclient\Exception
202
211
*/
203
212
public function lists ($ type , $ offset = 0 , $ count = 20 )
204
213
{
@@ -216,6 +225,7 @@ public function lists($type, $offset = 0, $count = 20)
216
225
* @param string $path
217
226
* @param array $form
218
227
* @return mixed
228
+ * @throws \yii\httpclient\Exception
219
229
*/
220
230
protected function uploadMedia ($ type , $ path , array $ form = [])
221
231
{
@@ -230,6 +240,7 @@ protected function uploadMedia($type, $path, array $form = [])
230
240
* Get stats of materials.
231
241
*
232
242
* @return array
243
+ * @throws \yii\httpclient\Exception
233
244
*/
234
245
public function stats ()
235
246
{
0 commit comments