]> git.mxchange.org Git - core.git/commitdiff
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 423701cf025e216da7f243c92425ba4dab70f32d..ff8387b2c38a537efbd36c16d4cd165409c96109 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 55b28a6d5409ea163bb6e68612c60e2b098d380f..12cfc03113c0163ad1b7775b9e40c5414ca80145 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 237c3d3e7c9928404db16b59965ef9a1f7718d1a..29bcd709f62d9872bda5be3248b1ef2430204ede 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 de191dc18c9ae7247b7c6f3ba7d821c6bbd0b864..a2920fa6a2ad31a13795e8b10a75cf7e1bdcdca5 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;