FormView (Component\Form)
Symfony\Component\Form\FormView
class FormView implements ArrayAccess, IteratorAggregate, Countable
Properties
array | $vars | The variables assigned to this view. |
FormView | $parent | The parent view. |
FormView[] | $children | The child views. |
Methods
__construct(FormView $parent = null) | ||
bool | isRendered() Returns whether the view was already rendered. | |
FormView | setRendered() Marks the view as rendered. | |
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 | getIterator() Returns an iterator to iterate over children (implements \IteratorAggregate). | |
int | count() Implements \Countable. |
Details
public __construct(FormView $parent = null)
public bool isRendered()
Returns whether the view was already rendered.
public FormView setRendered()
Marks the view as rendered.
public FormView offsetGet(string $name)
Returns a child by name (implements \ArrayAccess).
public bool offsetExists(string $name)
Returns whether the given child exists (implements \ArrayAccess).
public offsetSet($name, $value)
Implements \ArrayAccess.
public offsetUnset(string $name)
Removes a child (implements \ArrayAccess).
public ArrayIterator getIterator()
Returns an iterator to iterate over children (implements \IteratorAggregate).
public int count()
Implements \Countable.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Form/FormView.html