X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fship-simu%2Fmain%2Factions%2Fweb%2Fclass_WebShipSimuLoginLogoutAction.php;h=9b066a9ec395ab88cbe2459dbd3f2df8997a70dd;hb=4f70843ae8428f051d70ccff5bb43fc4c03dda8d;hp=fed0d1df33ca32babbd6b54067de530fd455bec2;hpb=ddac7be24465ecb1d885b3686a3037f10e2aec46;p=shipsimu.git diff --git a/application/ship-simu/main/actions/web/class_WebShipSimuLoginLogoutAction.php b/application/ship-simu/main/actions/web/class_WebShipSimuLoginLogoutAction.php index fed0d1d..9b066a9 100644 --- a/application/ship-simu/main/actions/web/class_WebShipSimuLoginLogoutAction.php +++ b/application/ship-simu/main/actions/web/class_WebShipSimuLoginLogoutAction.php @@ -2,11 +2,11 @@ /** * An action for logout * - * @author Roland Haeder + * @author Roland Haeder * @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 + * @link http://www.shipsimu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,7 +21,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class WebShipSimuLoginLogoutAction extends BaseAction implements Commandable, Registerable { +class WebShipSimuLoginLogoutAction extends BaseShipSimuAction implements Commandable, Registerable { /** * Protected constructor * @@ -38,7 +38,7 @@ class WebShipSimuLoginLogoutAction extends BaseAction implements Commandable, Re * @param $resolverInstance An instance of an action resolver * @return $actionInstance An instance of this action class */ - public final static function createWebShipSimuLoginLogoutAction (ActionResolver $resolverInstance) { + public static final function createWebShipSimuLoginLogoutAction (ActionResolver $resolverInstance) { // Get a new instance $actionInstance = new WebShipSimuLoginLogoutAction(); @@ -58,7 +58,10 @@ class WebShipSimuLoginLogoutAction 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 } /** @@ -69,6 +72,8 @@ class WebShipSimuLoginLogoutAction extends BaseAction implements Commandable, Re * @return void */ public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) { + // Check for user status by default + $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_status_filter')); } }