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

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

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

@param DatabaseRowsetInterface $rowset
@return \RecursiveIterator
Create a recursive iterator from a rowset