readFileHeader() needs to have protected access level + assert on it.
authorRoland Haeder <roland@mxchange.org>
Tue, 20 May 2014 18:40:35 +0000 (20:40 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 20 May 2014 18:40:35 +0000 (20:40 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/class_BaseFrameworkSystem.php
inc/classes/main/index/class_BaseIndex.php
inc/classes/main/stacker/file/class_BaseFileStack.php

index 29d5459..1710381 100644 (file)
@@ -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;
index ea2484b..66f16db 100644 (file)
@@ -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 ...
index c14743b..4aa880b 100644 (file)
@@ -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 ...