From: Roland Haeder Date: Tue, 20 May 2014 18:40:35 +0000 (+0200) Subject: readFileHeader() needs to have protected access level + assert on it. X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=c367a220d41fd9d44a88da15777433035b55b560;hp=d4ca4c53b179e2e37fd28801f0bab7a92eb0dc58 readFileHeader() needs to have protected access level + assert on it. Signed-off-by: Roland Häder --- diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index 29d5459c..1710381f 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -2958,6 +2958,9 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { * @return $isInitialized Whether the file header is initialized */ protected function isFileHeaderInitialized () { + // Is the method there? + assert(is_callable(array($this, 'readFileHeader'))); + //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__)); // Default is not initialized $isInitialized = FALSE; diff --git a/inc/classes/main/index/class_BaseIndex.php b/inc/classes/main/index/class_BaseIndex.php index ea2484b0..66f16db8 100644 --- a/inc/classes/main/index/class_BaseIndex.php +++ b/inc/classes/main/index/class_BaseIndex.php @@ -64,7 +64,7 @@ class BaseIndex extends BaseFrameworkSystem { * * @return void */ - private function readFileHeader () { + protected function readFileHeader () { //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__)); // First rewind to beginning as the header sits at the beginning ... diff --git a/inc/classes/main/stacker/file/class_BaseFileStack.php b/inc/classes/main/stacker/file/class_BaseFileStack.php index c14743b3..4aa880bb 100644 --- a/inc/classes/main/stacker/file/class_BaseFileStack.php +++ b/inc/classes/main/stacker/file/class_BaseFileStack.php @@ -76,7 +76,7 @@ class BaseFileStack extends BaseStacker { * * @return void */ - private function readFileHeader () { + protected function readFileHeader () { //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__)); // First rewind to beginning as the header sits at the beginning ...