|
@@ 1246-1252 (lines=7) @@
|
| 1243 |
|
$deadline_data = ['deadline' => $deadline]; |
| 1244 |
|
|
| 1245 |
|
//Add allow late uploads if specified |
| 1246 |
|
if (!empty($allow_late_uploads)) { |
| 1247 |
|
//Invalid Format |
| 1248 |
|
if (!in_array($allow_late_uploads, ['one_day','two_days','seven_days','thirty_days','always'])) { |
| 1249 |
|
throw new DropboxClientException("Invalid format. Must be any of 'one_day', 'two_days', 'seven_days', 'thirty_days' or 'always'."); |
| 1250 |
|
} |
| 1251 |
|
$deadline_data['allow_late_uploads'] = $allow_late_uploads; |
| 1252 |
|
} |
| 1253 |
|
|
| 1254 |
|
$params['deadline'] = new FileRequestDeadline($deadline_data); |
| 1255 |
|
} |
|
@@ 1305-1311 (lines=7) @@
|
| 1302 |
|
$deadline_data = ['.tag' => 'update', 'deadline' => $deadline]; |
| 1303 |
|
|
| 1304 |
|
//Add allow late uploads if specified |
| 1305 |
|
if (!empty($allow_late_uploads)) { |
| 1306 |
|
//Invalid Format |
| 1307 |
|
if (!in_array($allow_late_uploads, ['one_day','two_days','seven_days','thirty_days','always'])) { |
| 1308 |
|
throw new DropboxClientException("Invalid format. Must be any of 'one_day', 'two_days', 'seven_days', 'thirty_days' or 'always'."); |
| 1309 |
|
} |
| 1310 |
|
$deadline_data['allow_late_uploads'] = $allow_late_uploads; |
| 1311 |
|
} |
| 1312 |
|
|
| 1313 |
|
$params['deadline'] = $deadline_data; |
| 1314 |
|
} |