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