Moved even more code to BaseFile where a much better place is for it (clear encapsula...
[core.git] / inc / classes / main / file_directories / stack / class_StackFile.php
index 4cd1f386210b6c4932bc3e5ff5c7de16463b45fa..299b004276422805c7d681ff1e71ebbe423768f6 100644 (file)
@@ -36,12 +36,16 @@ class StackFile extends BaseFile implements InputOutputPointer {
         * Creates an instance of this File class and prepares it for usage
         *
         * @param       $fileName               Name of the stack file
+        * @param       $blockInstance  An instance of a CalculatableBlock class
         * @return      $fileInstance   An instance of this File class
         */
-       public final static function createStackFile ($fileName) {
+       public final static function createStackFile ($fileName, CalculatableBlock $blockInstance) {
                // Get a new instance
                $fileInstance = new StackFile();
 
+               // Set block instance here for callbacks
+               $fileInstance->setBlockInstance($blockInstance);
+
                // Init this abstract file
                $fileInstance->initFile($fileName);