Rewritten:
[core.git] / framework / main / classes / file_directories / binary / class_BaseBinaryFile.php
index bfbf4db..40abb00 100644 (file)
@@ -8,6 +8,9 @@ use CoreFramework\Filesystem\Block;
 use CoreFramework\Filesystem\Block\CalculatableBlock;
 use CoreFramework\Filesystem\File\BaseAbstractFile;
 
+// Import SPL stuff
+use \SplFileInfo;
+
 /**
  * A general binary file class
  *
@@ -385,12 +388,12 @@ class BaseBinaryFile extends BaseAbstractFile {
        /**
         * Initializes this file class
         *
-        * @param       $fileName       Name of this abstract file
+        * @param       $infoInstance   An instance of a SplFileInfo class
         * @return      void
         */
-       protected function initFile ($fileName) {
+       protected function initFile (SplFileInfo $infoInstance) {
                // Get a file i/o pointer instance
-               $pointerInstance = ObjectFactory::createObjectByConfiguredName('file_raw_input_output_class', array($fileName));
+               $pointerInstance = ObjectFactory::createObjectByConfiguredName('file_raw_input_output_class', array($infoInstance));
 
                // ... and set it here
                $this->setPointerInstance($pointerInstance);