]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/file_directories/class_BaseFile.php
Call these methods from the iterator.
[core.git] / inc / classes / main / file_directories / class_BaseFile.php
index e918c80b07fc391e71b52dfbecfde3a9cbd914b5..d65bbd31f389b7007f22a5c77cf97bc26b55cecf 100644 (file)
@@ -218,7 +218,7 @@ y    * @return      void
                        } // END - if
 
                        // Read file header
-                       $this->readFileHeader()
+                       $this->readFileHeader();
 
                        // The above method does already check the header
                        $isInitialized = TRUE;
@@ -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,8 +572,11 @@ 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()
+               $this->getBlockInstance()->readFileHeader();
        }
 
        /**
@@ -582,8 +585,11 @@ 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()
+               $this->getBlockInstance()->flushFileHeader();
        }
 }