Symfony\Component\Form\ButtonBuilder
A builder for {@link Button} instances.
- Author: Bernhard Schussek <bschussek@gmail.com>
Synopsis
class ButtonBuilder
implements
IteratorAggregate,FormBuilderInterface
{
- // members
- protected Boolean $locked;
- private Boolean $disabled;
- private ResolvedFormTypeInterface $type;
- private string $name;
- private array $attributes;
- private array $options;
- // methods
- public void __construct()
- public void add()
- public void create()
- public void get()
- public void remove()
- public Boolean has()
- public array all()
- public Button getForm()
- public void addEventListener()
- public void addEventSubscriber()
- public void addViewTransformer()
- public void resetViewTransformers()
- public void addModelTransformer()
- public void resetModelTransformers()
- public void setAttribute()
- public void setAttributes()
- public void setDataMapper()
- public ButtonBuilder setDisabled()
- public void setEmptyData()
- public void setErrorBubbling()
- public void setRequired()
- public void setPropertyPath()
- public void setMapped()
- public void setByReference()
- public void setVirtual()
- public void setCompound()
- public ButtonBuilder setType()
- public void setData()
- public void setDataLocked()
- public void setFormFactory()
- public void setAction()
- public void setMethod()
- public void setRequestHandler()
- public void setAutoInitialize()
- public void setInheritData()
- public FormConfigInterface getFormConfig()
- public null getEventDispatcher()
- public void getName()
- public null getPropertyPath()
- public Boolean getMapped()
- public Boolean getByReference()
- public Boolean getVirtual()
- public Boolean getCompound()
- public ResolvedFormTypeInterface getType()
- public array getViewTransformers()
- public array getModelTransformers()
- public null getDataMapper()
- public Boolean getRequired()
- public Boolean getDisabled()
- public Boolean getErrorBubbling()
- public null getEmptyData()
- public array getAttributes()
- public Boolean hasAttribute()
- public mixed getAttribute()
- public null getData()
- public null getDataClass()
- public Boolean getDataLocked()
- public null getFormFactory()
- public null getAction()
- public null getMethod()
- public null getRequestHandler()
- public Boolean getAutoInitialize()
- public Boolean getInheritData()
- public array getOptions()
- public Boolean hasOption()
- public mixed getOption()
- public integer count()
- public EmptyIterator getIterator()
Hierarchy
Extended by
Implements
Members
private
- $attributes — array
- $disabled — Symfony\Component\Form\Boolean
- $name — string
- $options — array
- $type — Symfony\Component\Form\ResolvedFormTypeInterface
protected
- $locked — Symfony\Component\Form\Boolean
Methods
public
- __construct() — Creates a new button builder.
- add() — Unsupported method.
- addEventListener() — Unsupported method.
- addEventSubscriber() — Unsupported method.
- addModelTransformer() — Unsupported method.
- addViewTransformer() — Unsupported method.
- all() — Returns the children.
- count() — Unsupported method.
- create() — Unsupported method.
- get() — Unsupported method.
- getAction() — Unsupported method.
- getAttribute() — Returns the value of the given attribute.
- getAttributes() — Returns additional attributes of the button.
- getAutoInitialize() — Unsupported method.
- getByReference() — Unsupported method.
- getCompound() — Unsupported method.
- getData() — Unsupported method.
- getDataClass() — Unsupported method.
- getDataLocked() — Unsupported method.
- getDataMapper() — Unsupported method.
- getDisabled() — Returns whether the button is disabled.
- getEmptyData() — Unsupported method.
- getErrorBubbling() — Unsupported method.
- getEventDispatcher() — Unsupported method.
- getForm() — Creates the button.
- getFormConfig() — Builds and returns the button configuration.
- getFormFactory() — Unsupported method.
- getInheritData() — Unsupported method.
- getIterator() — Unsupported method.
- getMapped() — Unsupported method.
- getMethod() — Unsupported method.
- getModelTransformers() — Unsupported method.
- getName() — {@inheritdoc}
- getOption() — Returns the value of a specific option.
- getOptions() — Returns all options passed during the construction of the button.
- getPropertyPath() — Unsupported method.
- getRequestHandler() — Unsupported method.
- getRequired() — Unsupported method.
- getType() — Returns the form type used to construct the button.
- getViewTransformers() — Unsupported method.
- getVirtual() — Unsupported method.
- has() — Unsupported method.
- hasAttribute() — Returns whether the attribute with the given name exists.
- hasOption() — Returns whether a specific option exists.
- remove() — Unsupported method.
- resetModelTransformers() — Unsupported method.
- resetViewTransformers() — Unsupported method.
- setAction() — Unsupported method.
- setAttribute() — {@inheritdoc}
- setAttributes() — {@inheritdoc}
- setAutoInitialize() — Unsupported method.
- setByReference() — Unsupported method.
- setCompound() — Unsupported method.
- setData() — Unsupported method.
- setDataLocked() — Unsupported method.
- setDataMapper() — Unsupported method.
- setDisabled() — Set whether the button is disabled.
- setEmptyData() — Unsupported method.
- setErrorBubbling() — Unsupported method.
- setFormFactory() — Unsupported method.
- setInheritData() — Unsupported method.
- setMapped() — Unsupported method.
- setMethod() — Unsupported method.
- setPropertyPath() — Unsupported method.
- setRequestHandler() — Unsupported method.
- setRequired() — Unsupported method.
- setType() — Sets the type of the button.
- setVirtual() — Unsupported method.