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 29d5459ceecb3a56194ca8a5e91f09930a3ba64f..1710381fbb82e5707fadb1bf90b82d3fa7b2ee3e 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 ea2484b0a306aae676d415b5bffd6291ff3e0ac5..66f16db8f9cbeb18474610dff8be869c33a23b6c 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 c14743b32f84900e82a496edc02e97711f8e407d..4aa880bb9aae1e33c8d1fd86015d011c4e544f9f 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 ...