| @@ 17-31 (lines=15) @@ | ||
| 14 | { |
|
| 15 | public $component_type = 'code'; |
|
| 16 | ||
| 17 | public function default_model() |
|
| 18 | { |
|
| 19 | return array( |
|
| 20 | 'name' => '', |
|
| 21 | 'id' => null, |
|
| 22 | 'disabled' => false, |
|
| 23 | 'readonly' => false, |
|
| 24 | 'default' => null, |
|
| 25 | 'language' => null, |
|
| 26 | 'theme' => 'github', |
|
| 27 | 'max_lines' => 5, // Or Infinity |
|
| 28 | 'filter' => null, |
|
| 29 | 'validation' => null |
|
| 30 | ); |
|
| 31 | } |
|
| 32 | ||
| 33 | public function required_arguments() |
|
| 34 | { |
|
| @@ 16-30 (lines=15) @@ | ||
| 13 | { |
|
| 14 | public $component_type = 'slider'; |
|
| 15 | ||
| 16 | public function default_model() |
|
| 17 | { |
|
| 18 | return array( |
|
| 19 | 'name' => '', |
|
| 20 | 'id' => '', |
|
| 21 | 'disabled' => false, |
|
| 22 | 'required' => false, |
|
| 23 | 'readonly' => false, |
|
| 24 | 'default' => null, |
|
| 25 | 'min' => null, |
|
| 26 | 'max' => null, |
|
| 27 | 'step' => 1, |
|
| 28 | 'filter' => array( $this, 'filter' ) |
|
| 29 | ); |
|
| 30 | } |
|
| 31 | ||
| 32 | public function required_arguments() |
|
| 33 | { |
|
| @@ 17-31 (lines=15) @@ | ||
| 14 | { |
|
| 15 | public $component_type = 'text'; |
|
| 16 | ||
| 17 | public function default_model() |
|
| 18 | { |
|
| 19 | return array( |
|
| 20 | 'name' => '', |
|
| 21 | 'id' => '', |
|
| 22 | 'disabled' => false, |
|
| 23 | 'placeholder' => null, |
|
| 24 | 'size' => null, |
|
| 25 | 'required' => false, |
|
| 26 | 'readonly' => false, |
|
| 27 | 'default' => null, |
|
| 28 | 'filter' => null, |
|
| 29 | 'validation' => null |
|
| 30 | ); |
|
| 31 | } |
|
| 32 | ||
| 33 | public function required_arguments() |
|
| 34 | { |
|