ButtonBuilder (Component\Form)
Symfony\Component\Form\ButtonBuilder
class ButtonBuilder implements IteratorAggregate, FormBuilderInterface
A builder for {@link Button} instances.
Methods
__construct(string $name, array $options = array()) Creates a new button builder. | ||
FormBuilderInterface | add(string|int|FormBuilderInterface $child, string|FormTypeInterface $type = null, array $options = array()) Unsupported method. | |
FormBuilderInterface | create(string $name, string|FormTypeInterface $type = null, array $options = array()) Unsupported method. | |
FormBuilderInterface | get(string $name) Unsupported method. | |
FormBuilderInterface | remove(string $name) Unsupported method. | |
bool | has(string $name) Unsupported method. | |
array | all() Returns the children. | |
Button | getForm() Creates the button. | |
FormConfigBuilderInterface | addEventListener(string $eventName, callable $listener, int $priority) Unsupported method. | |
FormConfigBuilderInterface | addEventSubscriber(EventSubscriberInterface $subscriber) Unsupported method. | |
FormConfigBuilderInterface | addViewTransformer(DataTransformerInterface $viewTransformer, bool $forcePrepend = false) Unsupported method. | |
FormConfigBuilderInterface | resetViewTransformers() Unsupported method. | |
FormConfigBuilderInterface | addModelTransformer(DataTransformerInterface $modelTransformer, bool $forceAppend = false) Unsupported method. | |
FormConfigBuilderInterface | resetModelTransformers() Unsupported method. | |
FormConfigBuilderInterface | setAttribute(string $name, mixed $value) Sets the value for an attribute. | |
FormConfigBuilderInterface | setAttributes(array $attributes) Sets the attributes. | |
FormConfigBuilderInterface | setDataMapper(DataMapperInterface $dataMapper = null) Unsupported method. | |
ButtonBuilder | setDisabled(bool $disabled) Set whether the button is disabled. | |
FormConfigBuilderInterface | setEmptyData(mixed $emptyData) Unsupported method. | |
FormConfigBuilderInterface | setErrorBubbling(bool $errorBubbling) Unsupported method. | |
FormConfigBuilderInterface | setRequired(bool $required) Unsupported method. | |
FormConfigBuilderInterface | setPropertyPath(null $propertyPath) Unsupported method. | |
FormConfigBuilderInterface | setMapped(bool $mapped) Unsupported method. | |
FormConfigBuilderInterface | setByReference(bool $byReference) Unsupported method. | |
FormConfigBuilderInterface | setCompound(bool $compound) Unsupported method. | |
ButtonBuilder | setType(ResolvedFormTypeInterface $type) Sets the type of the button. | |
FormConfigBuilderInterface | setData(mixed $data) Unsupported method. | |
FormConfigBuilderInterface | setDataLocked(bool $locked) Unsupported method. | |
setFormFactory(FormFactoryInterface $formFactory) Unsupported method. | ||
FormConfigBuilderInterface | setAction(string $action) Unsupported method. | |
FormConfigBuilderInterface | setMethod(string $method) Unsupported method. | |
FormConfigBuilderInterface | setRequestHandler(RequestHandlerInterface $requestHandler) Unsupported method. | |
ButtonBuilder | setAutoInitialize(bool $initialize) Unsupported method. | |
FormConfigBuilderInterface | setInheritData(bool $inheritData) Unsupported method. | |
FormConfigInterface | getFormConfig() Builds and returns the button configuration. | |
EventDispatcherInterface | getEventDispatcher() Unsupported method. | |
string | getName() Returns the name of the form used as HTTP parameter. | |
null|PropertyPathInterface | getPropertyPath() Unsupported method. | |
bool | getMapped() Unsupported method. | |
bool | getByReference() Unsupported method. | |
bool | getCompound() Unsupported method. | |
ResolvedFormTypeInterface | getType() Returns the form type used to construct the button. | |
array | getViewTransformers() Unsupported method. | |
array | getModelTransformers() Unsupported method. | |
DataMapperInterface | getDataMapper() Unsupported method. | |
bool | getRequired() Unsupported method. | |
bool | getDisabled() Returns whether the button is disabled. | |
bool | getErrorBubbling() Unsupported method. | |
mixed | getEmptyData() Unsupported method. | |
array | getAttributes() Returns additional attributes of the button. | |
bool | hasAttribute(string $name) Returns whether the attribute with the given name exists. | |
mixed | getAttribute(string $name, mixed $default = null) Returns the value of the given attribute. | |
mixed | getData() Unsupported method. | |
string | getDataClass() Unsupported method. | |
bool | getDataLocked() Unsupported method. | |
FormFactoryInterface | getFormFactory() Unsupported method. | |
string | getAction() Unsupported method. | |
string | getMethod() Unsupported method. | |
RequestHandlerInterface | getRequestHandler() Unsupported method. | |
bool | getAutoInitialize() Unsupported method. | |
bool | getInheritData() Unsupported method. | |
array | getOptions() Returns all options passed during the construction of the button. | |
bool | hasOption(string $name) Returns whether a specific option exists. | |
mixed | getOption(string $name, mixed $default = null) Returns the value of a specific option. | |
int | count() Unsupported method. | |
EmptyIterator | getIterator() Unsupported method. |
Details
public __construct(string $name, array $options = array())
Creates a new button builder.
public FormBuilderInterface add(string|int|FormBuilderInterface $child, string|FormTypeInterface $type = null, array $options = array())
Unsupported method.
This method should not be invoked.
public FormBuilderInterface create(string $name, string|FormTypeInterface $type = null, array $options = array())
Unsupported method.
This method should not be invoked.
public FormBuilderInterface get(string $name)
Unsupported method.
This method should not be invoked.
public FormBuilderInterface remove(string $name)
Unsupported method.
This method should not be invoked.
public bool has(string $name)
Unsupported method.
public array all()
Returns the children.
public Button getForm()
Creates the button.
public FormConfigBuilderInterface addEventListener(string $eventName, callable $listener, int $priority)
Unsupported method.
This method should not be invoked.
public FormConfigBuilderInterface addEventSubscriber(EventSubscriberInterface $subscriber)
Unsupported method.
This method should not be invoked.
public FormConfigBuilderInterface addViewTransformer(DataTransformerInterface $viewTransformer, bool $forcePrepend = false)
Unsupported method.
This method should not be invoked.
public FormConfigBuilderInterface resetViewTransformers()
Unsupported method.
This method should not be invoked.
public FormConfigBuilderInterface addModelTransformer(DataTransformerInterface $modelTransformer, bool $forceAppend = false)
Unsupported method.
This method should not be invoked.
public FormConfigBuilderInterface resetModelTransformers()
Unsupported method.
This method should not be invoked.
public FormConfigBuilderInterface setAttribute(string $name, mixed $value)
Sets the value for an attribute.
public FormConfigBuilderInterface setAttributes(array $attributes)
Sets the attributes.
public FormConfigBuilderInterface setDataMapper(DataMapperInterface $dataMapper = null)
Unsupported method.
This method should not be invoked.
public ButtonBuilder setDisabled(bool $disabled)
Set whether the button is disabled.
public FormConfigBuilderInterface setEmptyData(mixed $emptyData)
Unsupported method.
This method should not be invoked.
public FormConfigBuilderInterface setErrorBubbling(bool $errorBubbling)
Unsupported method.
This method should not be invoked.
public FormConfigBuilderInterface setRequired(bool $required)
Unsupported method.
This method should not be invoked.
public FormConfigBuilderInterface setPropertyPath(null $propertyPath)
Unsupported method.
This method should not be invoked.
public FormConfigBuilderInterface setMapped(bool $mapped)
Unsupported method.
This method should not be invoked.
public FormConfigBuilderInterface setByReference(bool $byReference)
Unsupported method.
This method should not be invoked.
public FormConfigBuilderInterface setCompound(bool $compound)
Unsupported method.
This method should not be invoked.
public ButtonBuilder setType(ResolvedFormTypeInterface $type)
Sets the type of the button.
public FormConfigBuilderInterface setData(mixed $data)
Unsupported method.
This method should not be invoked.
public FormConfigBuilderInterface setDataLocked(bool $locked)
Unsupported method.
This method should not be invoked.
public setFormFactory(FormFactoryInterface $formFactory)
Unsupported method.
This method should not be invoked.
public FormConfigBuilderInterface setAction(string $action)
Unsupported method.
public FormConfigBuilderInterface setMethod(string $method)
Unsupported method.
public FormConfigBuilderInterface setRequestHandler(RequestHandlerInterface $requestHandler)
Unsupported method.
public ButtonBuilder setAutoInitialize(bool $initialize)
Unsupported method.
public FormConfigBuilderInterface setInheritData(bool $inheritData)
Unsupported method.
public FormConfigInterface getFormConfig()
Builds and returns the button configuration.
public EventDispatcherInterface getEventDispatcher()
Unsupported method.
public string getName()
Returns the name of the form used as HTTP parameter.
public null|PropertyPathInterface getPropertyPath()
Unsupported method.
public bool getMapped()
Unsupported method.
public bool getByReference()
Unsupported method.
public bool getCompound()
Unsupported method.
public ResolvedFormTypeInterface getType()
Returns the form type used to construct the button.
public array getViewTransformers()
Unsupported method.
public array getModelTransformers()
Unsupported method.
public DataMapperInterface getDataMapper()
Unsupported method.
public bool getRequired()
Unsupported method.
public bool getDisabled()
Returns whether the button is disabled.
public bool getErrorBubbling()
Unsupported method.
public mixed getEmptyData()
Unsupported method.
public array getAttributes()
Returns additional attributes of the button.
public bool hasAttribute(string $name)
Returns whether the attribute with the given name exists.
public mixed getAttribute(string $name, mixed $default = null)
Returns the value of the given attribute.
public mixed getData()
Unsupported method.
public string getDataClass()
Unsupported method.
public bool getDataLocked()
Unsupported method.
public FormFactoryInterface getFormFactory()
Unsupported method.
public string getAction()
Unsupported method.
public string getMethod()
Unsupported method.
public RequestHandlerInterface getRequestHandler()
Unsupported method.
public bool getAutoInitialize()
Unsupported method.
public bool getInheritData()
Unsupported method.
public array getOptions()
Returns all options passed during the construction of the button.
public bool hasOption(string $name)
Returns whether a specific option exists.
public mixed getOption(string $name, mixed $default = null)
Returns the value of a specific option.
public int count()
Unsupported method.
public EmptyIterator getIterator()
Unsupported method.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Form/ButtonBuilder.html