. */ /** * Recursive iterator iterator * * * $files = \Txp::get('Textpattern\Iterator\RecDirIterator', $root); * $filter = \Txp::get('Textpattern\Iterator\RecFilterIterator', $files)->setNameIn($nameIn); * $filteredFiles = \Txp::get('Textpattern\Iterator\RecIteratorIterator', $filter); * $filteredFiles->setMaxDepth($maxDepth); * * foreach ($filteredFiles as $file) { * echo $file->getPathname(); * } * * * @since 4.7.0 * @package Iterator */ namespace Textpattern\Iterator { class RecIteratorIterator extends \RecursiveIteratorIterator { } }