]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/iterator/file/class_FileIterator.php
writeData() also belongs here.
[core.git] / inc / classes / main / iterator / file / class_FileIterator.php
index f8fadbde41e3ab1ea5de5dcfc04c4014214a8a48..e0c4b3dcdd71d815c5d78bcd8855bacd048da706 100644 (file)
@@ -263,6 +263,19 @@ class FileIterator extends BaseIterator implements SeekableWritableFileIterator
                // Call block instance
                return $this->getBlockInstance()->getFileSize();
        }
+
+       /**
+        * Writes data at given position
+        *
+        * @param       $seekPosition   Seek position
+        * @param       $data                   Data to be written
+        * @param       $flushHeader    Whether to flush the header (default: flush)
+        * @return      void
+        */
+       public function writeData ($seekPosition, $data, $flushHeader = TRUE) {
+               // Call block instance
+               $this->getBlockInstance()->writeData($seekPosition, $data, $flushHeader);
+       }
 }
 
 // [EOF]