* @return void
* @throws AlreadyInitializedStackerException If the stack is already initialized
*/
- public final function initStacker ($stackerName, $forceReInit = FALSE) {
+ public final function initStack ($stackerName, $forceReInit = FALSE) {
// Is the stack already initialized?
if (($forceReInit === FALSE) && ($this->isStackInitialized($stackerName))) {
// Then throw the exception
}
/**
- * Initializes all stackers
+ * Initializes all stacks
*
* @return void
*/
- public function initStackers (array $stacks) {
+ public function initStacks (array $stacks, $forceReInit = FALSE) {
// "Walk" through all (more will be added as needed
foreach ($stacks as $stackerName) {
// Init this stack
- $this->initStacker($stackerName);
+ $this->initStack($stackerName, $forceReInit);
} // END - foreach
}
// Is the stack not yet initialized or full?
if (!$this->isStackInitialized($stackerName)) {
// Then do it here
- $this->initStacker($stackerName);
+ $this->initStack($stackerName);
} elseif ($this->isStackFull($stackerName)) {
// Stacker is full
throw new FullStackerException(array($this, $stackerName, $value), self::EXCEPTION_STACKER_IS_FULL);
$stackerInstance = new FiLoStacker();
// Init the generic stacker
- $stackerInstance->initStacker('generic');
+ $stackerInstance->initStack('generic');
// Return the prepared instance
return $stackerInstance;