} // END - if
// Initialize the given stack
- $this->initGenericArray('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
}
/**
}
// Now add the value to the stack
- $this->pushValueToGenericArrayElement('stacks', $stackerName, 'entries', $value);
+ $this->pushValueToGenericArrayKey('stacks', $stackerName, 'entries', $value);
}
/**