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 32dc9d9cc8dc857d5a2508265ca8409ecdaaded5..e329f60059a311da7eb1f31b00f7e0f46fe27681 100644 (file)
@@ -58,6 +58,19 @@ class BaseStacker extends BaseFrameworkSystem {
                $this->initGenericArrayKey('stacks', $stackerName, 'entries', $forceReInit);
        }
 
                $this->initGenericArrayKey('stacks', $stackerName, 'entries', $forceReInit);
        }
 
+       /**
+        * 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)
         *
        /**
         * Checks whether the given stack is initialized (set in array $stackers)
         *