class Button implements IteratorAggregate, FormInterface
A form button.
__construct(FormConfigInterface $config) Creates a new button from a form configuration. | ||
bool | offsetExists(mixed $offset) Unsupported method. | |
offsetGet(mixed $offset) Unsupported method. | ||
offsetSet(mixed $offset, mixed $value) Unsupported method. | ||
offsetUnset(mixed $offset) Unsupported method. | ||
FormInterface | setParent(FormInterface $parent = null) Sets the parent form. | |
FormInterface|null | getParent() Returns the parent form. | |
FormInterface | add(int|string|FormInterface $child, null $type = null, array $options = array()) Unsupported method. | |
FormInterface | get(string $name) Unsupported method. | |
bool | has(string $name) Unsupported method. | |
FormInterface | remove(string $name) Unsupported method. | |
FormInterface[] | all() Returns all children in this group. | |
FormErrorIterator | getErrors(bool $deep = false, bool $flatten = true) Returns the errors of this form. | |
FormInterface | setData(string $modelData) Unsupported method. | |
null | getData() Unsupported method. | |
null | getNormData() Unsupported method. | |
null | getViewData() Unsupported method. | |
array | getExtraData() Unsupported method. | |
FormConfigInterface | getConfig() Returns the button's configuration. | |
bool | isSubmitted() Returns whether the button is submitted. | |
string | getName() Returns the name by which the button is identified in forms. | |
null | getPropertyPath() Unsupported method. | |
FormInterface | addError(FormError $error) Unsupported method. | |
bool | isValid() Unsupported method. | |
bool | isRequired() Unsupported method. | |
bool | isDisabled() Returns whether this form is disabled. | |
bool | isEmpty() Unsupported method. | |
bool | isSynchronized() Unsupported method. | |
null | getTransformationFailure() Unsupported method. | |
FormInterface | initialize() Unsupported method. | |
FormInterface | handleRequest(mixed $request = null) Unsupported method. | |
Button | submit(null|string $submittedData, bool $clearMissing = true) Submits data to the button. | |
FormInterface | getRoot() Returns the root of the form tree. | |
bool | isRoot() Returns whether the field is the root of the form tree. | |
FormView | createView(FormView $parent = null) Creates a view. | |
int | count() Unsupported method. | |
EmptyIterator | getIterator() Unsupported method. |
Creates a new button from a form configuration.
Unsupported method.
Unsupported method.
This method should not be invoked.
Unsupported method.
This method should not be invoked.
Unsupported method.
This method should not be invoked.
Sets the parent form.
Returns the parent form.
Unsupported method.
This method should not be invoked.
Unsupported method.
This method should not be invoked.
Unsupported method.
Unsupported method.
This method should not be invoked.
Returns all children in this group.
Returns the errors of this form.
Unsupported method.
This method should not be invoked.
Unsupported method.
Unsupported method.
Unsupported method.
Unsupported method.
Returns the button's configuration.
Returns whether the button is submitted.
Returns the name by which the button is identified in forms.
Unsupported method.
Unsupported method.
Unsupported method.
Unsupported method.
Returns whether this form is disabled.
The content of a disabled form is displayed, but not allowed to be modified. The validation of modified disabled forms should fail.
Forms whose parents are disabled are considered disabled regardless of their own state.
Unsupported method.
Unsupported method.
Unsupported method.
Unsupported method.
Unsupported method.
Submits data to the button.
Returns the root of the form tree.
Returns whether the field is the root of the form tree.
Creates a view.
Unsupported method.
Unsupported method.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Form/Button.html