]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/actions/web/class_WebShipSimuLoginRefillAction.php
A lot rewrites and fixes for weak redirect methods
[shipsimu.git] / application / ship-simu / main / actions / web / class_WebShipSimuLoginRefillAction.php
index 8c4c00436812e4e9cbcb4dec0c94cb7b45b4d826..8119b3c56c498585405b85d178baa82f8da6e42c 100644 (file)
@@ -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 WebShipSimuLoginRefillAction extends BaseAction implements Commandable, Registerable {
+class WebShipSimuLoginRefillAction extends BaseShipSimuAction implements Commandable, Registerable {
        /**
         * Protected constructor
         *
@@ -58,7 +58,10 @@ class WebShipSimuLoginRefillAction extends BaseAction implements Commandable, Re
         * @todo        0% done
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
-               // Unfinished method
+               // Call parent execute method
+               parent::execute($requestInstance, $responseInstance);
+
+               // Add your code here...
        }
 
        /**
@@ -70,10 +73,10 @@ class WebShipSimuLoginRefillAction extends BaseAction implements Commandable, Re
         */
        public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
                // Check for user status by default
-               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_status_filter'));
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_status_filter', array($controllerInstance)));
 
                // Is the refill page active?
-               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('refill_page_filter'));
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('refill_page_filter', array($controllerInstance)));
 
                // Add payment discovery filter
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('payment_discovery_filter', array($this)));