From 14bdac2c495c6f7b2408ecb75a7a3798f0881cc4 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 20 May 2014 21:13:14 +0200 Subject: [PATCH] Renamed method + flushFileHeader() must be callable and have protected access level. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- inc/classes/main/class_BaseFrameworkSystem.php | 6 +++++- inc/classes/main/index/class_BaseIndex.php | 2 +- inc/classes/main/stacker/file/class_BaseFileStack.php | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index ddd03a40..161710f5 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -3044,6 +3044,10 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { */ protected function createFileHeader () { //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__)); + + // The method flushFileHeader() must be callable + assert(is_callable(array($this, 'flushFileHeader'))); + // The file's header should not be initialized here assert(!$this->isFileHeaderInitialized()); @@ -3070,7 +3074,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { $this->updateSeekPosition(); // Flush header - $this->flushHeader(); + $this->flushFileHeader(); // Seek to old position $this->seekToOldPosition(); diff --git a/inc/classes/main/index/class_BaseIndex.php b/inc/classes/main/index/class_BaseIndex.php index 389fdc9a..fe16473e 100644 --- a/inc/classes/main/index/class_BaseIndex.php +++ b/inc/classes/main/index/class_BaseIndex.php @@ -124,7 +124,7 @@ class BaseIndex extends BaseFrameworkSystem { * * @return void */ - private function flushFileHeader () { + protected function flushFileHeader () { //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__)); // Put all informations together diff --git a/inc/classes/main/stacker/file/class_BaseFileStack.php b/inc/classes/main/stacker/file/class_BaseFileStack.php index 5aa1c39b..2a169bce 100644 --- a/inc/classes/main/stacker/file/class_BaseFileStack.php +++ b/inc/classes/main/stacker/file/class_BaseFileStack.php @@ -140,7 +140,7 @@ class BaseFileStack extends BaseStacker { * * @return void */ - private function flushFileHeader () { + protected function flushFileHeader () { //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__)); // Put all informations together -- 2.39.5