Overview

Namespaces

  • Charcoal
    • Ui
      • Dashboard
      • Form
      • FormGroup
      • FormInput
      • Layout
      • Menu
      • MenuItem
      • ServiceProvider

Classes

  • AbstractForm
  • FormBuilder
  • FormConfig
  • GenericForm

Interfaces

  • FormInterface

Traits

  • FormTrait
  • Overview
  • Namespace
  • Class

Class FormBuilder

Form Builder

Namespace: Charcoal\Ui\Form
Located at Charcoal/Ui/Form/FormBuilder.php
Methods summary
public
# __construct( Charcoal\Factory\FactoryInterface $factory )

Return a new form builder.

Return a new form builder.

Parameters

$factory
An form factory.
public DashboardInterface
# build( array|ArrayAccess $options )

Build and return a new form.

Build and return a new form.

Parameters

$options
The form build options.

Returns

DashboardInterface
Constants summary
string DEFAULT_TYPE

The default, concrete, form model.

The default, concrete, form model.

Const

string
# 'charcoal/ui/form/generic'
Properties summary
protected Charcoal\Factory\FactoryInterface $factory

Store the form factory instance.

Store the form factory instance.

#
protected Pimple\Container $container

Store the dependency-injection container to fulfill the required services.

Store the dependency-injection container to fulfill the required services.

#
API documentation generated by ApiGen