Renamed 'stacker' -> 'stack'
[core.git] / inc / classes / main / stacker / class_BaseStacker.php
index 55b28a6..12cfc03 100644 (file)
@@ -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);