* * 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 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 \RecursiveIteratorIterator} in order to * enter any child form that inherits its parent's data and iterate the children * of that form as well. * * @author Bernhard Schussek */ class InheritDataAwareIterator extends \IteratorIterator implements \RecursiveIterator { /** * {@inheritdoc} */ public function getChildren() { return new static($this->current()); } /** * {@inheritdoc} */ public function hasChildren() { return (bool) $this->current()->getConfig()->getInheritData(); } } __halt_compiler();----SIGNATURE:----Dy9nMVBLSQTjsclKNeWSFzsMuFP0Kg2SEA/KXv2/TuFFt/yoCIIwwylqT1i13xFvxroaHDrdRwmYk97TEkFcxZCZAHWft6QT67bBLn5mYzG1RHnTiCewg+37vG+yk4SxsFuxCxB4r9Y0xJ8ei9b/IEjDWNMyMvLLMiAUnMz6RcVd+zAiDBzubKHxc+/BX33YruglnotE1zTDZcaRwno3FMPu43KQQFaEdGZTl03iJtlU9Y0Phr44w85Rg5FDoT0neXN1F5WRAlK/QY89B80pDBGVpPD5CaucU8HaN+dCYMFtzk1FC9tE0P8sWUOxjAEDbiYwX5qw4a1iOqOuHXNmOK5qG6iiOHNsGYlWnC+WxN3ynqkcVnO6lwMSQ9hpX8wtCX4VO+MiOYzqqJHUzXlYP42mj9XA47wfLWwarScUQ1++w2yqZBSlFtMu9PfiWG5t/JdJdLxZrSzD8JiY+MrDKxQYDKqBBNthtZc+QcFDvThl9pHUuYTgaoeeL51x++oz9lr0nUIO9rFGv8+2DSKxKp7MVoxmWymAT0iz6zUYvCIK66mABggM/MFdnmQaUJzFTyEKIoOoWEdc8nFCVEkRS+VJKtgxMW49nbYW2goNJF3M/xSC4Ce+lkUR5E1lvkCq+TXMDUExtP2FsyjsTIwzPK00WSWfjTFxHpPwg+SYbY0=----ATTACHMENT:----NDcyMDI5NzI0OTE3MzA4MyA4MTM2MjgxNTExNzc3MDc0IDQ2NjQyNzEwNjYyNDAyNDA=