From: Roland Haeder Date: Tue, 20 May 2014 19:13:14 +0000 (+0200) Subject: Renamed method + flushFileHeader() must be callable and have protected access level. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=14bdac2c495c6f7b2408ecb75a7a3798f0881cc4;p=core.git Renamed method + flushFileHeader() must be callable and have protected access level. Signed-off-by: Roland Häder --- 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