芝麻web文件管理V1.00
编辑当前文件:/home/strato/chroot/opt/RZphp80/includes/HTML/QuickForm2/ContainerIterator.php
* @author Bertrand Mansion
* @copyright 2006-2019 Alexey Borzov
, Bertrand Mansion
* @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License * @link https://pear.php.net/package/HTML_QuickForm2 */ /** * Implements a recursive iterator for the container elements * * @category HTML * @package HTML_QuickForm2 * @author Alexey Borzov
* @author Bertrand Mansion
* @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License * @version Release: 2.1.0 * @link https://pear.php.net/package/HTML_QuickForm2 */ class HTML_QuickForm2_ContainerIterator extends RecursiveArrayIterator implements RecursiveIterator { public function __construct(HTML_QuickForm2_Container $container) { parent::__construct($container->getElements()); } public function hasChildren() { return $this->current() instanceof HTML_QuickForm2_Container; } public function getChildren() { return new HTML_QuickForm2_ContainerIterator($this->current()); } } ?>