Renamed method + flushFileHeader() must be callable and have protected access level.
authorRoland Haeder <roland@mxchange.org>
Tue, 20 May 2014 19:13:14 +0000 (21:13 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 20 May 2014 19:13:14 +0000 (21:13 +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 ddd03a4..161710f 100644 (file)
@@ -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();
index 389fdc9..fe16473 100644 (file)
@@ -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
index 5aa1c39..2a169bc 100644 (file)
@@ -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