]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/actions/web/class_WebShipSimuLoginGovermentStartupHelpAction.php
A lot rewrites and fixes for weak redirect methods
[shipsimu.git] / application / ship-simu / main / actions / web / class_WebShipSimuLoginGovermentStartupHelpAction.php
index 5ecc924806046e806bc08b9257739559a067332c..283afa482fd14138ae7de6eadc269013c7d04916 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 WebShipSimuLoginGovermentStartupHelpAction extends BaseAction implements Commandable, Registerable {
+class WebShipSimuLoginGovermentStartupHelpAction extends BaseShipSimuAction implements Commandable, Registerable {
        /**
         * Protected constructor
         *
@@ -58,7 +58,10 @@ class WebShipSimuLoginGovermentStartupHelpAction extends BaseAction implements C
         * @todo        0% done
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
-               // Unfinished method
+               // Call parent execute method
+               parent::execute($requestInstance, $responseInstance);
+
+               // Add your code here...
        }
 
        /**
@@ -71,10 +74,10 @@ class WebShipSimuLoginGovermentStartupHelpAction extends BaseAction implements C
         */
        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)));
 
                // Check if goverment can pay startup help
-               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('goverment_pays_startup_help_filter'));
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('goverment_pays_startup_help_filter', array($controllerInstance)));
        }
 }