]> git.mxchange.org Git - shipsimu.git/commitdiff
selfInstance is better
authorRoland Häder <roland@mxchange.org>
Tue, 8 Nov 2011 07:51:50 +0000 (07:51 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 8 Nov 2011 07:51:50 +0000 (07:51 +0000)
application/selector/class_ApplicationHelper.php
application/ship-simu/class_ApplicationHelper.php

index 621426a07b62cc60f4fddb4c048da208d87b5074..257fbbba216327f1fac86c237b6a56cd37935bc7 100644 (file)
@@ -63,7 +63,7 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
        /**
         * An instance of this class
         */
-       private static $thisInstance = null;
+       private static $selfInstance = null;
 
        /**
         * Protected constructor
@@ -78,16 +78,16 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
        /**
         * Getter for an instance of this class
         *
-        * @return      $thisInstance           An instance of this class
+        * @return      $selfInstance   An instance of this class
         */
        public final static function getInstance () {
                // Is the instance there?
-               if (is_null(self::$thisInstance)) {
-                       self::$thisInstance = new ApplicationHelper();
-               }
+               if (is_null(self::$selfInstance)) {
+                       self::$selfInstance = new ApplicationHelper();
+               } // END - if
 
                // Return the instance
-               return self::$thisInstance;
+               return self::$selfInstance;
        }
 
        /**
index 9d40b3d915ee3e04433e0dbd30e956f2401b6a3a..b50c6a14b06b8a3449e1c59d3850b3adadc33672 100644 (file)
@@ -63,7 +63,7 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
        /**
         * An instance of this class
         */
-       private static $thisInstance = null;
+       private static $selfInstance = null;
 
        /**
         * Protected constructor
@@ -78,16 +78,16 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
        /**
         * Getter for an instance of this class
         *
-        * @return      $thisInstance           An instance of this class
+        * @return      $selfInstance           An instance of this class
         */
        public static final function getInstance () {
                // Is the instance there?
-               if (is_null(self::$thisInstance)) {
-                       self::$thisInstance = new ApplicationHelper();
+               if (is_null(self::$selfInstance)) {
+                       self::$selfInstance = new ApplicationHelper();
                } // END - if
 
                // Return the instance
-               return self::$thisInstance;
+               return self::$selfInstance;
        }
 
        /**