]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/file_stack/class_
Added fileName parameter.
[core.git] / inc / classes / main / file_stack / class_
index b3359656431a7d83042e4dfcbad875b027071364..bdec190a86a350042e31f1122890351b85044913 100644 (file)
@@ -35,12 +35,19 @@ class ???FileStack extends BaseFileStack implements Stackable {
        /**
         * Creates an instance of this class
         *
+        * @param       $fileName               Absolute Name of stack file
         * @return      $stackInstance  An instance of a Stackable class
         */
-       public final static function create???FileStack () {
+       public final static function create???FileStack ($fileName) {
                // Get new instance
                $stackInstance = new ???FileStack();
 
+               // Get the I/O file pointer instance and handle over file name
+               $pointerInstance = ObjectFactory::createObjectByConfiguredName('file_raw_input_output_class', $fileName);
+
+               // Set instance here in stack
+               $stackInstance->setPointerInstance($pointerInstance);
+
                // Return the prepared instance
                return $stackInstance;
        }