X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fstacker%2Fclass_BaseStacker.php;h=12cfc03113c0163ad1b7775b9e40c5414ca80145;hp=55b28a6d5409ea163bb6e68612c60e2b098d380f;hb=4fbcdb435270b88c8f97e69e987cb40712e74ce4;hpb=4df873d75e2d5ba3b3e8b7a18f045fd748202a06 diff --git a/inc/classes/main/stacker/class_BaseStacker.php b/inc/classes/main/stacker/class_BaseStacker.php index 55b28a6d..12cfc031 100644 --- a/inc/classes/main/stacker/class_BaseStacker.php +++ b/inc/classes/main/stacker/class_BaseStacker.php @@ -47,7 +47,7 @@ class BaseStacker extends BaseFrameworkSystem { * @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 @@ -59,15 +59,15 @@ class BaseStacker extends BaseFrameworkSystem { } /** - * 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 } @@ -160,7 +160,7 @@ class BaseStacker extends BaseFrameworkSystem { // 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);