| @@ 36-50 (lines=15) @@ | ||
| 33 | * |
|
| 34 | * @return array |
|
| 35 | */ |
|
| 36 | protected function configureVariables() |
|
| 37 | { |
|
| 38 | return array( |
|
| 39 | 'question' => array( |
|
| 40 | 'type' => 'string', |
|
| 41 | 'required' => true, |
|
| 42 | 'label' => 'The question to ask' |
|
| 43 | ), |
|
| 44 | 'default' => array( |
|
| 45 | 'type' => 'string|numeric', |
|
| 46 | 'label' => 'Default value (shown to the user as well)' |
|
| 47 | ), |
|
| 48 | '--' |
|
| 49 | ) + parent::configureVariables(); |
|
| 50 | } |
|
| 51 | ||
| 52 | /** |
|
| 53 | * Format a question |
|
| @@ 54-68 (lines=15) @@ | ||
| 51 | * |
|
| 52 | * @return array |
|
| 53 | */ |
|
| 54 | protected function configureVariables() |
|
| 55 | { |
|
| 56 | return array( |
|
| 57 | 'action' => array( |
|
| 58 | 'type' => 'string', |
|
| 59 | 'required' => true, |
|
| 60 | 'label' => 'Method of \Netresearch\Kite\Service\Filesystem to execute', |
|
| 61 | ), |
|
| 62 | 'arguments' => array( |
|
| 63 | 'type' => 'array', |
|
| 64 | 'default' => array(), |
|
| 65 | 'label' => 'Arguments for action method', |
|
| 66 | ) |
|
| 67 | ) + parent::configureVariables(); |
|
| 68 | } |
|
| 69 | ||
| 70 | /** |
|
| 71 | * Call the action method or set it for later execution |
|
| @@ 47-60 (lines=14) @@ | ||
| 44 | * |
|
| 45 | * @return array |
|
| 46 | */ |
|
| 47 | protected function configureVariables() |
|
| 48 | { |
|
| 49 | return array( |
|
| 50 | 'onCatch' => array( |
|
| 51 | 'type' => 'array', |
|
| 52 | 'label' => 'Task to execute when an exception was catched' |
|
| 53 | ), |
|
| 54 | 'errorMessage' => array( |
|
| 55 | 'type' => 'string', |
|
| 56 | 'label' => 'Message to display on error' |
|
| 57 | ), |
|
| 58 | '--' |
|
| 59 | ) + parent::configureVariables(); |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * Set a variable or it's value |
|