InheritDataAwareIterator

class InheritDataAwareIterator extends VirtualFormAwareIterator

Iterator that traverses an array of forms.

Contrary to \ArrayIterator, this iterator recognizes changes in the original array during iteration.

You can wrap the iterator into a {@link \RecursiveIterator} in order to enter any child form that inherits its parent's data and iterate the children of that form as well.

Methods

getChildren()

{@inheritdoc}

from VirtualFormAwareIterator
hasChildren()

{@inheritdoc}

from VirtualFormAwareIterator

Details

getChildren()

{@inheritdoc}

hasChildren()

{@inheritdoc}

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Form/Util/InheritDataAwareIterator.html