]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/stacker/class_BaseStacker.php
Renamed 'stacker' -> 'stack'
[core.git] / inc / classes / main / stacker / class_BaseStacker.php
index e329f60059a311da7eb1f31b00f7e0f46fe27681..12cfc03113c0163ad1b7775b9e40c5414ca80145 100644 (file)
@@ -47,11 +47,11 @@ 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
-                       throw new AlreadyInitializedStackerException(array($this, $stackerName), self::EXCEPTION_STACKER_ALREADY_INITIALIZED);
+                       throw new AlreadyInitializedStackerException(array($this, $stackerName, $forceReInit), self::EXCEPTION_STACKER_ALREADY_INITIALIZED);
                } // END - if
 
                // Initialize the given stack
@@ -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);