1 | <?php |
||
16 | class YouTube_UploadTask extends BaseTask |
||
17 | { |
||
18 | /** |
||
19 | * Define settings. |
||
20 | * |
||
21 | * @return array |
||
22 | */ |
||
23 | protected function defineSettings() |
||
24 | { |
||
25 | return array( |
||
26 | 'id' => AttributeType::Number, |
||
27 | 'model' => AttributeType::Mixed, |
||
28 | 'assets' => AttributeType::Mixed, |
||
29 | 'user' => AttributeType::Number, |
||
30 | ); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Return description. |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getDescription() |
||
42 | |||
43 | /** |
||
44 | * Return total steps. |
||
45 | * |
||
46 | * @return int |
||
47 | */ |
||
48 | public function getTotalSteps() |
||
56 | |||
57 | /** |
||
58 | * Run step. |
||
59 | * |
||
60 | * @param int $step |
||
61 | * |
||
62 | * @return string|bool |
||
63 | */ |
||
64 | public function runStep($step) |
||
83 | } |
||
84 |