| 1 | <?php /** MicroFormWidget */ |
||
| 21 | class FormWidget extends Widget |
||
| 22 | { |
||
| 23 | /** @var string $action action url */ |
||
| 24 | public $action = ''; |
||
| 25 | /** @var string $method send form method */ |
||
| 26 | public $method = 'GET'; |
||
| 27 | /** @var string $type type of form */ |
||
| 28 | public $type = 'text/plain'; |
||
| 29 | /** @var string $client client js code */ |
||
| 30 | public $client = ''; |
||
| 31 | /** @var array $attributes attributes for form element */ |
||
| 32 | public $attributes = []; |
||
| 33 | |||
| 34 | |||
| 35 | /** |
||
| 36 | * Initialize widget |
||
| 37 | * |
||
| 38 | * @access public |
||
| 39 | * |
||
| 40 | * @return Form |
||
| 41 | */ |
||
| 42 | public function init() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Running widget |
||
| 52 | * |
||
| 53 | * @access public |
||
| 54 | * |
||
| 55 | * @return void |
||
| 56 | */ |
||
| 57 | public function run() |
||
| 65 | } |
||
| 66 |