]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/file_stack/class_
Initialize the file-based stack with initStack() where e.g. the file i/o
[core.git] / inc / classes / main / file_stack / class_
index b3359656431a7d83042e4dfcbad875b027071364..274f923f99bf7d3feec37cca6a82c0805712e943 100644 (file)
@@ -35,12 +35,16 @@ class ???FileStack extends BaseFileStack implements Stackable {
        /**
         * Creates an instance of this class
         *
        /**
         * Creates an instance of this class
         *
+        * @param       $fileName               Absolute Name of stack file
         * @return      $stackInstance  An instance of a Stackable class
         */
         * @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 new instance
                $stackInstance = new ???FileStack();
 
+               // Init this stack
+               $stackInstance->initStack($fileName);
+
                // Return the prepared instance
                return $stackInstance;
        }
                // Return the prepared instance
                return $stackInstance;
        }