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|null $type = null, array $options = array()) Unsupported method. | |
FormBuilderInterface | create(string $name, string|null $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. | |
FormInterface | 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. | |
FormConfigBuilderInterface | 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|string|PropertyPathInterface $propertyPath) Unsupported method. | |
FormConfigBuilderInterface | setMapped(bool $mapped) Unsupported method. | |
FormConfigBuilderInterface | setByReference(bool $byReference) Unsupported method. | |
FormConfigBuilderInterface | setCompound(bool $compound) Unsupported method. | |
FormConfigBuilderInterface | 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. | |
FormConfigBuilderInterface | 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. | |
DataTransformerInterface[] | getViewTransformers() Unsupported method. | |
DataTransformerInterface[] | 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
__construct(string $name, array $options = array())
Creates a new button builder.
FormBuilderInterface add(string|int|FormBuilderInterface $child, string|null $type = null, array $options = array())
Unsupported method.
This method should not be invoked.
FormBuilderInterface create(string $name, string|null $type = null, array $options = array())
Unsupported method.
This method should not be invoked.
FormBuilderInterface get(string $name)
Unsupported method.
This method should not be invoked.
FormBuilderInterface remove(string $name)
Unsupported method.
This method should not be invoked.
bool has(string $name)
Unsupported method.
array all()
Returns the children.
FormInterface getForm()
Creates the button.
FormConfigBuilderInterface addEventListener(string $eventName, callable $listener, int $priority)
Unsupported method.
This method should not be invoked.
FormConfigBuilderInterface addEventSubscriber(EventSubscriberInterface $subscriber)
Unsupported method.
This method should not be invoked.
FormConfigBuilderInterface addViewTransformer(DataTransformerInterface $viewTransformer, bool $forcePrepend = false)
Unsupported method.
This method should not be invoked.
FormConfigBuilderInterface resetViewTransformers()
Unsupported method.
This method should not be invoked.
FormConfigBuilderInterface addModelTransformer(DataTransformerInterface $modelTransformer, bool $forceAppend = false)
Unsupported method.
This method should not be invoked.
FormConfigBuilderInterface resetModelTransformers()
Unsupported method.
This method should not be invoked.
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.
This method should not be invoked.
FormConfigBuilderInterface setDisabled(bool $disabled)
Set whether the button is disabled.
FormConfigBuilderInterface setEmptyData(mixed $emptyData)
Unsupported method.
This method should not be invoked.
FormConfigBuilderInterface setErrorBubbling(bool $errorBubbling)
Unsupported method.
This method should not be invoked.
FormConfigBuilderInterface setRequired(bool $required)
Unsupported method.
This method should not be invoked.
FormConfigBuilderInterface setPropertyPath(null|string|PropertyPathInterface $propertyPath)
Unsupported method.
This method should not be invoked.
FormConfigBuilderInterface setMapped(bool $mapped)
Unsupported method.
This method should not be invoked.
FormConfigBuilderInterface setByReference(bool $byReference)
Unsupported method.
This method should not be invoked.
FormConfigBuilderInterface setCompound(bool $compound)
Unsupported method.
This method should not be invoked.
FormConfigBuilderInterface setType(ResolvedFormTypeInterface $type)
Sets the type of the button.
FormConfigBuilderInterface setData(mixed $data)
Unsupported method.
This method should not be invoked.
FormConfigBuilderInterface setDataLocked(bool $locked)
Unsupported method.
This method should not be invoked.
setFormFactory(FormFactoryInterface $formFactory)
Unsupported method.
This method should not be invoked.
FormConfigBuilderInterface setAction(string $action)
Unsupported method.
FormConfigBuilderInterface setMethod(string $method)
Unsupported method.
FormConfigBuilderInterface setRequestHandler(RequestHandlerInterface $requestHandler)
Unsupported method.
FormConfigBuilderInterface 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.
DataTransformerInterface[] getViewTransformers()
Unsupported method.
DataTransformerInterface[] 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.
Please login to continue.