Added missing methods which wraps the block instances for callbacks.
authorRoland Haeder <roland@mxchange.org>
Sat, 24 May 2014 13:35:13 +0000 (15:35 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 24 May 2014 13:35:13 +0000 (15:35 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/classes/main/file_directories/class_BaseFile.php

index c596fcb4a31f4ce8891b9cb9cc9b12b00fae5e29..e918c80b07fc391e71b52dfbecfde3a9cbd914b5 100644 (file)
@@ -218,7 +218,7 @@ y    * @return      void
                        } // END - if
 
                        // Read file header
-                       $this->getBlockInstance()->readFileHeader();
+                       $this->readFileHeader()
 
                        // The above method does already check the header
                        $isInitialized = TRUE;
@@ -267,7 +267,7 @@ y    * @return      void
                assert(!$this->isFileHeaderInitialized());
 
                // Simple flush file header which will create it.
-               $this->getBlockInstance()->flushFileHeader();
+               $this->flushFileHeader();
 
                // Rewind seek position (to beginning of file) and update/flush file header
                $this->rewineUpdateSeekPosition();
@@ -565,6 +565,26 @@ y   * @return      void
                // Call pointer instance
                return $this->getPointerInstance()->determineSeekPosition();
        }
+
+       /**
+        * Reads the file header
+        *
+        * @return      void
+        */
+       public function readFileHeader () {
+               // Call block instance
+               $this->getBlockInstance()->readFileHeader()
+       }
+
+       /**
+        * Flushes the file header
+        *
+        * @return      void
+        */
+       public function flushFileHeader () {
+               // Call block instance
+               $this->getBlockInstance()->flushFileHeader()
+       }
 }
 
 // [EOF]