00001 <?php 00025 class WebShipsimuGovernmentStartupCommand extends BaseCommand implements Commandable { 00031 protected function __construct () { 00032 // Call parent constructor 00033 parent::__construct(__CLASS__); 00034 } 00035 00042 public final static function createWebShipsimuGovernmentStartupCommand (CommandResolver $resolverInstance) { 00043 // Get new instance 00044 $commandInstance = new WebShipsimuGovernmentStartupCommand(); 00045 00046 // Set the application instance 00047 $commandInstance->setResolverInstance($resolverInstance); 00048 00049 // Return the prepared instance 00050 return $commandInstance; 00051 } 00052 00061 public function execute (Requestable $requestInstance, Responseable $responseInstance) { 00062 $this->partialStub("Unfinished method."); 00063 } 00064 00073 public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) { 00074 // Add user auth filter (we don't need an update of the user here because it will be redirected) 00075 $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_auth_filter')); 00076 00077 // Add user status filter here 00078 $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_status_filter')); 00079 00080 // Check if government can pay startup help 00081 $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('government_pays_startup_help_filter')); 00082 00083 // Verify password 00084 $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('account_password_filter')); 00085 00086 // Verify CAPTCHA code 00087 $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('captcha_refill_verifier_filter')); 00088 } 00089 } 00090 00091 // [EOF] 00092 ?>
1.5.6