class Button implements IteratorAggregate, FormInterface
A form button.
Methods
__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(FormInterface|string|int $child, string|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(mixed $modelData) Unsupported method. | |
mixed | getData() Unsupported method. | |
mixed | getNormData() Unsupported method. | |
mixed | 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. | |
PropertyPathInterface | 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. | |
TransformationFailedException|null | getTransformationFailure() Unsupported method. | |
FormInterface | initialize() Unsupported method. | |
FormInterface | handleRequest(mixed $request = null) Unsupported method. | |
FormInterface | submit(null|string|array $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. |
Details
__construct(FormConfigInterface $config)
Creates a new button from a form configuration.
bool offsetExists(mixed $offset)
Unsupported method.
offsetGet(mixed $offset)
Unsupported method.
This method should not be invoked.
offsetSet(mixed $offset, mixed $value)
Unsupported method.
This method should not be invoked.
offsetUnset(mixed $offset)
Unsupported method.
This method should not be invoked.
FormInterface setParent(FormInterface $parent = null)
Sets the parent form.
FormInterface|null getParent()
Returns the parent form.
FormInterface add(FormInterface|string|int $child, string|null $type = null, array $options = array())
Unsupported method.
This method should not be invoked.
FormInterface get(string $name)
Unsupported method.
This method should not be invoked.
bool has(string $name)
Unsupported method.
FormInterface remove(string $name)
Unsupported method.
This method should not be invoked.
FormInterface[] all()
Returns all children in this group.
FormErrorIterator getErrors(bool $deep = false, bool $flatten = true)
Returns the errors of this form.
FormInterface setData(mixed $modelData)
Unsupported method.
This method should not be invoked.
mixed getData()
Unsupported method.
mixed getNormData()
Unsupported method.
mixed 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.
PropertyPathInterface 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.
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.
bool isEmpty()
Unsupported method.
bool isSynchronized()
Unsupported method.
TransformationFailedException|null getTransformationFailure()
Unsupported method.
FormInterface initialize()
Unsupported method.
FormInterface handleRequest(mixed $request = null)
Unsupported method.
FormInterface submit(null|string|array $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.
int count()
Unsupported method.
EmptyIterator getIterator()
Unsupported method.
Please login to continue.