Call these methods from the iterator.
[core.git] / inc / classes / main / file_directories / class_BaseFile.php
index cf36937123ce3b360326337c24dbfa830ba3cd13..d65bbd31f389b7007f22a5c77cf97bc26b55cecf 100644 (file)
@@ -470,7 +470,7 @@ y    * @return      void
                } // END - if
 
                // Make sure the block instance is set
-               assert($this->getBlockInstance() instanceof CalculatableBlock);
+               assert($this->getBlockInstance() instanceof Block);
 
                // First calculate minimum block length
                $length = $this->getBlockInstance()->calculateMinimumBlockLength();
@@ -523,7 +523,7 @@ y    * @return      void
         */
        public function valid () {
                // Make sure the block instance is set
-               assert($this->getBlockInstance() instanceof CalculatableBlock);
+               assert($this->getBlockInstance() instanceof Block);
 
                // First calculate minimum block length
                $length = $this->getBlockInstance()->calculateMinimumBlockLength();
@@ -572,6 +572,9 @@ y    * @return      void
         * @return      void
         */
        public function readFileHeader () {
+               // Make sure the block instance is set
+               assert($this->getBlockInstance() instanceof Block);
+
                // Call block instance
                $this->getBlockInstance()->readFileHeader();
        }
@@ -582,6 +585,9 @@ y    * @return      void
         * @return      void
         */
        public function flushFileHeader () {
+               // Make sure the block instance is set
+               assert($this->getBlockInstance() instanceof Block);
+
                // Call block instance
                $this->getBlockInstance()->flushFileHeader();
        }