Skip to content

FormBuilder

FormBuilder factory


  • Full name: \Qubus\Form\FormBuilder

Properties

options

Default options.

public static array $options
  • This property is static.

elements

Element types.

public static array $elements
  • This property is static.

decorators

Decorator types.

public static array $decorators
  • 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.

public static decorator(string $type): \Qubus\Form\FormBuilder\Decorator
  • This method is static. Parameters:
Parameter Type Description
$type string Decorator type

Throws: