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 ddd03a4007a70fac05e025bc03ae5a9aeed8ba93..161710f552f119e0faa8ceefb0c3288cfa5e91fe 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__));
         */
        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());
 
                // 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->updateSeekPosition();
 
                // Flush header
-               $this->flushHeader();
+               $this->flushFileHeader();
 
                // Seek to old position
                $this->seekToOldPosition();
 
                // Seek to old position
                $this->seekToOldPosition();
index 389fdc9a92efcde4ae8f635693492ee8de935315..fe16473e4b94dfe32ee950751d7d291476f86c07 100644 (file)
@@ -124,7 +124,7 @@ class BaseIndex extends BaseFrameworkSystem {
         *
         * @return      void
         */
         *
         * @return      void
         */
-       private function flushFileHeader () {
+       protected function flushFileHeader () {
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__));
 
                // Put all informations together
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__));
 
                // Put all informations together
index 5aa1c39b3fb4cf0defb84e9b019b539279b98af1..2a169bce4e926704e76ad4e8f32da26d9ebd2340 100644 (file)
@@ -140,7 +140,7 @@ class BaseFileStack extends BaseStacker {
         *
         * @return      void
         */
         *
         * @return      void
         */
-       private function flushFileHeader () {
+       protected function flushFileHeader () {
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__));
 
                // Put all informations together
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__));
 
                // Put all informations together