Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (29 sloc) 0.811 kB
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Form\Util;
/**
* Iterator that traverses fields of a field group
*
* If the iterator encounters a virtual field group, it enters the field
* group and traverses its children as well.
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class VirtualFormAwareIterator extends \ArrayIterator implements \RecursiveIterator
{
public function getChildren()
{
return new self($this->current()->getChildren());
}
public function hasChildren()
{
return $this->current()->getConfig()->getVirtual();
}
}
Jump to Line
Something went wrong with that request. Please try again.