code/controller/toolbar/iterator/recursive.php
protected static function _createInnerIterator(ControllerToolbarInterface $toolbar)
    {
        $iterator = new \RecursiveArrayIterator($toolbar->getIterator());
        $iterator = new \RecursiveCachingIterator($iterator, \CachingIterator::TOSTRING_USE_KEY);

        return $iterator;
    }
protected static function _createInnerIterator(ControllerToolbarInterface $toolbar)
    {
        $iterator = new \RecursiveArrayIterator($toolbar->getIterator());
        $iterator = new \RecursiveCachingIterator($iterator, \CachingIterator::TOSTRING_USE_KEY);

        return $iterator;
    }
protected static function _createInnerIterator ( ControllerToolbarInterface $ toolbar ) { $ iterator = new \ RecursiveArrayIterator ( $ toolbar -> getIterator ( ) ) ; $ iterator = new \ RecursiveCachingIterator ( $ iterator , \ CachingIterator :: TOSTRING_USE_KEY ) ; return $ iterator ; }
Create a recursive iterator from a toolbar

@param ControllerToolbarInterface $toolbar
@return \RecursiveIterator
Create a recursive iterator from a toolbar