From 36f5d94d9913ec95b2545e1fce1abbfdb556c992 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 24 May 2014 15:35:13 +0200 Subject: [PATCH] Added missing methods which wraps the block instances for callbacks. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../main/file_directories/class_BaseFile.php | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/inc/classes/main/file_directories/class_BaseFile.php b/inc/classes/main/file_directories/class_BaseFile.php index c596fcb4..e918c80b 100644 --- a/inc/classes/main/file_directories/class_BaseFile.php +++ b/inc/classes/main/file_directories/class_BaseFile.php @@ -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] -- 2.39.5