Introduced initStackers() which wraps initialization of several stacks
authorRoland Häder <roland@mxchange.org>
Wed, 17 Jul 2013 20:55:11 +0000 (20:55 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 17 Jul 2013 20:55:11 +0000 (20:55 +0000)
inc/classes/main/stacker/class_BaseStacker.php

index 32dc9d9..e329f60 100644 (file)
@@ -59,6 +59,19 @@ class BaseStacker extends BaseFrameworkSystem {
        }
 
        /**
+        * Initializes all stackers
+        *
+        * @return      void
+        */
+       public function initStackers (array $stacks) {
+               // "Walk" through all (more will be added as needed
+               foreach ($stacks as $stackerName) {
+                       // Init this stack
+                       $this->initStacker($stackerName);
+               } // END - foreach
+       }
+
+       /**
         * Checks whether the given stack is initialized (set in array $stackers)
         *
         * @param       $stackerName    Name of the stack