class_WebShipSimuLoginRefillAction.php

Go to the documentation of this file.
00001 <?php
00024 class WebShipSimuLoginRefillAction extends BaseShipSimuAction implements Commandable, Registerable {
00030         protected function __construct () {
00031                 // Call parent constructor
00032                 parent::__construct(__CLASS__);
00033         }
00034 
00041         public final static function createWebShipSimuLoginRefillAction (ActionResolver $resolverInstance) {
00042                 // Get a new instance
00043                 $actionInstance = new WebShipSimuLoginRefillAction();
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 
00074         public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
00075                 // Check for user status by default
00076                 $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_status_filter'));
00077 
00078                 // Is the refill page active?
00079                 $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('refill_page_filter'));
00080 
00081                 // Add payment discovery filter
00082                 $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('payment_discovery_filter', array($this)));
00083         }
00084 }
00085 
00086 // [EOF]
00087 ?>

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