From: Roland Haeder Date: Sat, 24 May 2014 13:35:13 +0000 (+0200) Subject: Added missing methods which wraps the block instances for callbacks. X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=36f5d94d9913ec95b2545e1fce1abbfdb556c992;ds=sidebyside Added missing methods which wraps the block instances for callbacks. Signed-off-by: Roland Häder --- 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]