class FormView implements ArrayAccess, IteratorAggregate, Countable
$vars | The variables assigned to this view. | ||
$parent | The parent view. | ||
FormView[] | $children | The child views. |
__construct(FormView $parent = null) | ||
bool | isRendered() Returns whether the view was already rendered. | |
$this | setRendered() Marks the view as rendered. | |
bool | isMethodRendered() | |
setMethodRendered() | ||
FormView | offsetGet(string $name) Returns a child by name (implements \ArrayAccess). | |
bool | offsetExists(string $name) Returns whether the given child exists (implements \ArrayAccess). | |
offsetSet($name, $value) Implements \ArrayAccess. | ||
offsetUnset(string $name) Removes a child (implements \ArrayAccess). | ||
ArrayIterator|FormView[] | getIterator() Returns an iterator to iterate over children (implements \IteratorAggregate). | |
int | count() Implements \Countable. |
FormView | $parent |
Returns whether the view was already rendered.
bool | Whether this view's widget is rendered |
Marks the view as rendered.
$this |
bool |
Returns a child by name (implements \ArrayAccess).
string | $name | The child name |
FormView | The child view |
Returns whether the given child exists (implements \ArrayAccess).
string | $name | The child name |
bool | Whether the child view exists |
Implements \ArrayAccess.
$name | ||
$value |
BadMethodCallException | always as setting a child by name is not allowed |
Removes a child (implements \ArrayAccess).
string | $name | The child name |
Returns an iterator to iterate over children (implements \IteratorAggregate).
ArrayIterator|FormView[] | The iterator |
Implements \Countable.
int | The number of children views |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Form/FormView.html