class_WebShipSimuLoginGovernmentTrainingAction.php

Go to the documentation of this file.
00001 <?php
00024 class WebShipSimuLoginGovernmentTrainingAction extends BaseShipSimuAction implements Commandable, Registerable {
00030         protected function __construct () {
00031                 // Call parent constructor
00032                 parent::__construct(__CLASS__);
00033         }
00034 
00041         public final static function createWebShipSimuLoginGovernmentTrainingAction (ActionResolver $resolverInstance) {
00042                 // Get a new instance
00043                 $actionInstance = new WebShipSimuLoginGovernmentTrainingAction();
00044 
00045                 // Set the resolver instance
00046                 $actionInstance->setResolverInstance($resolverInstance);
00047 
00048                 // Return the instance
00049                 return $actionInstance;
00050         }
00051 
00060         public function execute (Requestable $requestInstance, Responseable $responseInstance) {
00061                 // Call parent execute method
00062                 parent::execute($requestInstance, $responseInstance);
00063 
00064                 // Add your code here...
00065         }
00066 
00075         public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
00076                 // Check for user status by default
00077                 $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_status_filter'));
00078 
00079                 // Check if government can pay a training
00080                 $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('government_pays_training_filter'));
00081         }
00082 }
00083 
00084 // [EOF]
00085 ?>

Generated on Mon Dec 8 01:06:44 2008 for Ship-Simulator by  doxygen 1.5.6