]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/actions/web/class_WebShipSimuLoginGovernmentTrainingAction.php
Now we have a filter to not allow the guest-account to change it's data
[shipsimu.git] / application / ship-simu / main / actions / web / class_WebShipSimuLoginGovernmentTrainingAction.php
index 3f7c77bb254d5dda293dc6f8a17bc73ef95a928e..b38ffbad391684249cdd86be9c74fa4463fab798 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 /**
- * An action for trainings payed by goverment
+ * An action for trainings payed by government
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Ship-Simu Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -21,7 +21,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
-class WebShipSimuLoginGovermentTrainingAction extends BaseShipSimuAction implements Commandable, Registerable {
+class WebShipSimuLoginGovernmentTrainingAction extends BaseShipSimuAction implements Commandable, Registerable {
        /**
         * Protected constructor
         *
@@ -38,9 +38,9 @@ class WebShipSimuLoginGovermentTrainingAction extends BaseShipSimuAction impleme
         * @param       $resolverInstance       An instance of an action resolver
         * @return      $actionInstance         An instance of this action class
         */
-       public final static function createWebShipSimuLoginGovermentTrainingAction (ActionResolver $resolverInstance) {
+       public final static function createWebShipSimuLoginGovernmentTrainingAction (ActionResolver $resolverInstance) {
                // Get a new instance
-               $actionInstance = new WebShipSimuLoginGovermentTrainingAction();
+               $actionInstance = new WebShipSimuLoginGovernmentTrainingAction();
 
                // Set the resolver instance
                $actionInstance->setResolverInstance($resolverInstance);
@@ -76,8 +76,8 @@ class WebShipSimuLoginGovermentTrainingAction extends BaseShipSimuAction impleme
                // Check for user status by default
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_status_filter'));
 
-               // Check if goverment can pay a training
-               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('goverment_pays_training_filter'));
+               // Check if government can pay a training
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('government_pays_training_filter'));
        }
 }