FormBuilder
FormBuilder factory
- Full name:
\Qubus\Form\FormBuilder
Properties
options
Default options.
- This property is static.
elements
Element types.
- This property is static.
decorators
Decorator types.
- This property is static.
Methods
element
Create a form element.
public static element(string $type, array $options = [], array $attr = []): \Qubus\Form\FormBuilder\Element|\Qubus\Form\FormBuilder\Control
- This method is static. Parameters:
| Parameter | Type | Description |
|---|---|---|
$type | string | Element type |
$options | array | Element options |
$attr | array | HTML attributes |
Throws:
decorator
Create a form decorator.
- This method is static. Parameters:
| Parameter | Type | Description |
|---|---|---|
$type | string | Decorator type |
Throws: