]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/stacker/filo/class_FiLoStacker.php
Updated copyright:
[core.git] / inc / classes / main / stacker / filo / class_FiLoStacker.php
index 81604945e974d2e91342d7e560bf7c9543569cc1..ba7c09c39e912361b0531578f1e90f2dc2f2748a 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * A FiLo Stacker class
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
+ * @link               http://www.shipsimu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -35,17 +35,17 @@ class FiLoStacker extends BaseStacker implements Stackable {
        /**
         * Creates an instance of the class Stacker and prepares it for usage
         *
-        * @return      $stackerInstance        An instance of FiLoStacker
+        * @return      $stackInstance  An instance of FiLoStacker
         */
        public static final function createFiLoStacker () {
                // Get a new instance
-               $stackerInstance = new FiLoStacker();
+               $stackInstance = new FiLoStacker();
 
                // Init the generic stacker
-               $stackerInstance->initStacker('generic');
+               $stackInstance->initStack('generic');
 
                // Return the prepared instance
-               return $stackerInstance;
+               return $stackInstance;
        }
 
        /**
@@ -71,7 +71,7 @@ class FiLoStacker extends BaseStacker implements Stackable {
         */
        public function popNamed ($stackerName) {
                // Get the value
-               $value = $this->getNamed($stackerName();
+               $value = $this->getNamed($stackerName);
 
                // Call the protected method
                parent::popLast($stackerName);