- $this->stacks[$stackerName] = array(
- 'max_size' => $this->getConfigInstance()->getConfigEntry('stacker_' . $stackerName . '_max_size'),
- 'entries' => array()
- );
+ $this->initGenericArrayKey('stacks', $stackerName, 'entries', $forceReInit);
+ }
+
+ /**
+ * Initializes all stacks
+ *
+ * @return void
+ */
+ public function initStacks (array $stacks, $forceReInit = FALSE) {
+ // "Walk" through all (more will be added as needed
+ foreach ($stacks as $stackerName) {
+ // Init this stack
+ $this->initStack($stackerName, $forceReInit);
+ } // END - foreach