public function getChunkIterator($refresh = false)
    {
        if ($refresh || $this->_chunkIterator === null) {
            $this->_chunkIterator = new \IteratorIterator($this->getChunkCursor($refresh));
            $this->_chunkIterator->rewind();
        }
        return $this->_chunkIterator;
    }
public function getChunkIterator($refresh = false)
    {
        if ($refresh || $this->_chunkIterator === null) {
            $this->_chunkIterator = new \IteratorIterator($this->getChunkCursor($refresh));
            $this->_chunkIterator->rewind();
        }
        return $this->_chunkIterator;
    }
public function getChunkIterator ( $ refresh = false ) { if ( $ refresh || $ this -> _chunkIterator === null ) { $ this -> _chunkIterator = new \ IteratorIterator ( $ this -> getChunkCursor ( $ refresh ) ) ; $ this -> _chunkIterator -> rewind ( ) ; } return $ this -> _chunkIterator ; }
Returns iterator for the file chunks cursor.
@param bool $refresh whether to recreate iterator, if it is already exist.
@return \Iterator chuck cursor iterator.
Returns iterator for the file chunks cursor .