Moved more code to BaseFile as it makes sense to have it there.
[core.git] / inc / classes / main / stacker / file / class_BaseFileStack.php
index 9219ecc3d132f4458e9e2fe79da64e37642e429b..3cc3240ac7380f3726e66af49e687acffa6a1ee8 100644 (file)
@@ -57,7 +57,7 @@ class BaseFileStack extends BaseStacker {
         * @return      void
         * @todo        To hard assertions here, better rewrite them to exceptions
         */
-       protected function readFileHeader () {
+       public 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 ...
@@ -121,7 +121,7 @@ class BaseFileStack extends BaseStacker {
         *
         * @return      void
         */
-       protected function flushFileHeader () {
+       public function flushFileHeader () {
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__));
 
                // Put all informations together
@@ -377,7 +377,7 @@ class BaseFileStack extends BaseStacker {
         *
         * @return      $length         Minimum length for one entry/block
         */
-       public function caluclateMinimumBlockLength () {
+       public function calculateMinimumBlockLength () {
                // Calulcate it
                $length = self::getHashLength() + strlen(chr(self::SEPARATOR_HASH_NAME)) + self::LENGTH_NAME + 1 + strlen(self::getBlockSeparator());