Class name typo fixed, typo goverment->government fixed
[shipsimu.git] / application / ship-simu / main / user / class_ShipSimuBaseUser.php
index 243218adc230a6e40a9277e0ca35b9b177b705f8..e12dfddadfc0a050c575bab4bddcd7ba12ee47ef 100644 (file)
@@ -90,28 +90,28 @@ class ShipSimuBaseUser extends BaseUser implements Registerable, Updateable {
        }
 
        /**
-        * Determines if goverment can still pay a "virtual training course" in general
+        * Determines if government can still pay a "virtual training course" in general
         *
-        * @return      $ifGovHelps             Wether if goverment helps the user with a virtual training course
+        * @return      $ifGovHelps             Wether if government helps the user with a virtual training course
         */
        public function ifGovernmentPaysTraining () {
                // By default they want to help.
                $ifGovHelps = true;
 
-               // First get a goverment instance from registry
-               $govermentInstance = Registry::getRegistry()->getInstance('goverment');
+               // First get a government instance from registry
+               $governmentInstance = Registry::getRegistry()->getInstance('government');
 
                // Is it there?
-               if (is_null($govermentInstance)) {
+               if (is_null($governmentInstance)) {
                        // Then create a new one
-                       $govermentInstance = ObjectFactory::createObjectByConfiguredName('goverment_class', array($this));
+                       $governmentInstance = ObjectFactory::createObjectByConfiguredName('government_class', array($this));
 
                        // Store it in registry
-                       Registry::getRegistry()->addInstance('goverment', $govermentInstance);
+                       Registry::getRegistry()->addInstance('government', $governmentInstance);
                } // END - if
 
-               // Then ask the goverment if they want to pay a "startup help" to the user
-               if ($govermentInstance->ifGovernmentAlreadyPayedTraining()) {
+               // Then ask the government if they want to pay a "startup help" to the user
+               if ($governmentInstance->ifGovernmentAlreadyPayedTraining()) {
                        // Training already given!
                        $ifGovHelps = false;
                } // END - if
@@ -121,28 +121,28 @@ class ShipSimuBaseUser extends BaseUser implements Registerable, Updateable {
        }
 
        /**
-        * Determines if goverment can still pay a "startup help" to the user
+        * Determines if government can still pay a "startup help" to the user
         *
-        * @return      $ifGovHelps             Wether if goverment helps the user with some startup money
+        * @return      $ifGovHelps             Wether if government helps the user with some startup money
         */
        public function ifGovernmentPaysStartupHelp () {
                // By default they want to help.
                $ifGovHelps = true;
 
-               // First get a goverment instance from registry
-               $govermentInstance = Registry::getRegistry()->getInstance('goverment');
+               // First get a government instance from registry
+               $governmentInstance = Registry::getRegistry()->getInstance('government');
 
                // Is it there?
-               if (is_null($govermentInstance)) {
+               if (is_null($governmentInstance)) {
                        // Then create a new one
-                       $govermentInstance = ObjectFactory::createObjectByConfiguredName('goverment_class', array($this));
+                       $governmentInstance = ObjectFactory::createObjectByConfiguredName('government_class', array($this));
 
                        // Store it in registry
-                       Registry::getRegistry()->addInstance('goverment', $govermentInstance);
+                       Registry::getRegistry()->addInstance('government', $governmentInstance);
                } // END - if
 
-               // Then ask the goverment if they want to pay a "startup help" to the user
-               if ($govermentInstance->ifGovernmentPayedMaxmimumStartupHelp()) {
+               // Then ask the government if they want to pay a "startup help" to the user
+               if ($governmentInstance->ifGovernmentPayedMaxmimumStartupHelp()) {
                        // They can't pay anymore to the user (excited amount)
                        $ifGovHelps = false;
                } // END - if