Renamed 'stacker' -> 'stack'
authorRoland Häder <roland@mxchange.org>
Thu, 25 Jul 2013 01:14:57 +0000 (01:14 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 25 Jul 2013 01:14:57 +0000 (01:14 +0000)
inc/classes/main/stacker/class_
inc/classes/main/stacker/class_BaseStacker.php
inc/classes/main/stacker/fifo/class_FiFoStacker.php
inc/classes/main/stacker/filo/class_FiLoStacker.php

index 423701c..ff8387b 100644 (file)
@@ -43,7 +43,7 @@ class ???Stacker extends BaseStacker implements Stackable {
                $stackerInstance = new ???Stacker();
 
                // Init generic stacker
-               $stackerInstance->initStacker('generic');
+               $stackerInstance->initStack('generic');
 
                // Return the prepared instance
                return $stackerInstance;
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);
index 237c3d3..29bcd70 100644 (file)
@@ -42,7 +42,7 @@ class FiFoStacker extends BaseStacker implements Stackable {
                $stackerInstance = new FiFoStacker();
 
                // Init generic stacker
-               $stackerInstance->initStacker('generic');
+               $stackerInstance->initStack('generic');
 
                // Return the prepared instance
                return $stackerInstance;
index de191dc..a2920fa 100644 (file)
@@ -42,7 +42,7 @@ class FiLoStacker extends BaseStacker implements Stackable {
                $stackerInstance = new FiLoStacker();
 
                // Init the generic stacker
-               $stackerInstance->initStacker('generic');
+               $stackerInstance->initStack('generic');
 
                // Return the prepared instance
                return $stackerInstance;