Symfony\Component\Form\Test\FormInterface
Synopsis
interface FormInterface
extends Iterator, FormInterface
{
- // Inherited methods from Iterator
- public mixed current()
- public scalar key()
- public void next()
- public void rewind()
- public boolean valid()
- // Inherited methods from FormInterface
- public FormInterface setParent()
- public FormInterface|null getParent()
- public FormInterface add()
- public FormInterface get()
- public Boolean has()
- public FormInterface remove()
- public array all()
- public array getErrors()
- public FormInterface setData()
- public mixed getData()
- public mixed getNormData()
- public mixed getViewData()
- public array getExtraData()
- public FormConfigInterface getConfig()
- public Boolean isSubmitted()
- public string getName()
- public PropertyPathInterface getPropertyPath()
- public FormInterface addError()
- public Boolean isValid()
- public Boolean isRequired()
- public Boolean isDisabled()
- public Boolean isEmpty()
- public Boolean isSynchronized()
- public FormInterface initialize()
- public FormInterface handleRequest()
- public FormInterface submit()
- public FormInterface getRoot()
- public Boolean isRoot()
- public FormView createView()
- // Inherited methods from ArrayAccess
- public boolean offsetExists()
- public mixed offsetGet()
- public void offsetSet()
- public void offsetUnset()
- // Inherited methods from Countable
- public int count()
Hierarchy
Methods
Inherited from Iterator
public
- current() — Return the current element
- key() — Return the key of the current element
- next() — Move forward to next element
- rewind() — Rewind the Iterator to the first element
- valid() — Checks if current position is valid
Inherited from Symfony\Component\Form\FormInterface
public
- add() — Adds a child to the form.
- addError() — Adds an error to this form.
- all() — Returns all children in this group.
- createView() — Creates a view.
- get() — Returns the child with the given name.
- getConfig() — Returns the form's configuration.
- getData() — Returns the data in the format needed for the underlying object.
- getErrors() — Returns all errors.
- getExtraData() — Returns the extra data.
- getName() — Returns the name by which the form is identified in forms.
- getNormData() — Returns the normalized data of the field.
- getParent() — Returns the parent form.
- getPropertyPath() — Returns the property path that the form is mapped to.
- getRoot() — Returns the root of the form tree.
- getViewData() — Returns the data transformed by the value transformer.
- handleRequest() — Inspects the given request and calls {@link submit()} if the form was submitted.
- has() — Returns whether a child with the given name exists.
- initialize() — Initializes the form tree.
- isDisabled() — Returns whether this form is disabled.
- isEmpty() — Returns whether the form is empty.
- isRequired() — Returns whether the form is required to be filled out.
- isRoot() — Returns whether the field is the root of the form tree.
- isSubmitted() — Returns whether the form is submitted.
- isSynchronized() — Returns whether the data in the different formats is synchronized.
- isValid() — Returns whether the form and all children are valid.
- remove() — Removes a child from the form.
- setData() — Updates the form with default data.
- setParent() — Sets the parent form.
- submit() — Submits data to the form, transforms and validates it.
Inherited from ArrayAccess
public
- offsetExists() — Whether a offset exists
- offsetGet() — Offset to retrieve
- offsetSet() — Offset to set
- offsetUnset() — Offset to unset
Inherited from Countable
public
- count() — Count elements of an object