Rewritten again, much better this way.
authorRoland Häder <roland@mxchange.org>
Fri, 21 Aug 2009 21:00:33 +0000 (21:00 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 21 Aug 2009 21:00:33 +0000 (21:00 +0000)
application/ship-simu/config.php
application/ship-simu/main/actions/class_BaseShipSimuAction.php
application/ship-simu/main/actions/web/class_WebShipSimuLogin
application/ship-simu/main/actions/web/class_WebShipSimuLoginStatusProblemAction.php

index e4e5d2dc21903547b96c54575a441a7e1043374c..4ca3bac64d990623517e0fbd3142988c2ff5e730 100644 (file)
@@ -109,23 +109,26 @@ $cfg->setConfigEntry('login_failed_url', 'index.php?app={?app_short_name?}&amp;p
 // CFG: LOGOUT-DONE-URL
 $cfg->setConfigEntry('logout_done_url', 'index.php?app={?app_short_name?}&amp;page=logout_done');
 
+// CFG: ACTION-STATUS-PROBLEM
+$cfg->setConfigEntry('action_status_problem', 'status_problem');
+
 // CFG: LOGIN-USER-STATUS-URL
-$cfg->setConfigEntry('login_user_status_url', 'index.php?app={?app_short_name?}&amp;page=status&amp;status=status_problem&amp;status=general');
+$cfg->setConfigEntry('login_user_status_url', 'index.php?app={?app_short_name?}&amp;page=login_area&amp;action=status_problem&amp;status=status_problem&amp;status=general');
 
 // CFG: LOGIN-USER-STATUS-GUEST-URL
-$cfg->setConfigEntry('login_user_status_guest_url', 'index.php?app={?app_short_name?}&amp;page=status&amp;status=status_problem&amp;status=guest');
+$cfg->setConfigEntry('login_user_status_guest_url', 'index.php?app={?app_short_name?}&amp;page=login_area&amp;action=status_problem&amp;status=status_problem&amp;status=guest');
 
 // CFG: USER-NOT-UNCONFIRMED-URL
-$cfg->setConfigEntry('user_not_unconfirmed_url', 'index.php?app={?app_short_name?}&amp;page=status&amp;status=unconfirmed_problem');
+$cfg->setConfigEntry('user_not_unconfirmed_url', 'index.php?app={?app_short_name?}&amp;page=login_area&amp;action=status_problem&amp;status=unconfirmed_problem');
 
 // CFG: USER-UNCONFIRMED-EMAIL-MISSING-URL
-$cfg->setConfigEntry('user_unconfirmed_email_missing_url', 'index.php?app={?app_short_name?}&amp;page=status&amp;status=unconfirmed_email_missing');
+$cfg->setConfigEntry('user_unconfirmed_email_missing_url', 'index.php?app={?app_short_name?}&amp;page=login_area&amp;action=status_problem&amp;status=unconfirmed_email_missing');
 
 // CFG: CONFIRM-CODE-INVALID-URL
-$cfg->setConfigEntry('confirm_code_invalid_url', 'index.php?app={?app_short_name?}&amp;page=status&amp;status=confirm_code_invalid');
+$cfg->setConfigEntry('confirm_code_invalid_url', 'index.php?app={?app_short_name?}&amp;page=login_area&amp;action=status_problem&amp;status=confirm_code_invalid');
 
 // CFG: USER-NOT-FOUND-URL
-$cfg->setConfigEntry('user_not_found_url', 'index.php?app={?app_short_name?}&amp;page=status&amp;status=user_not_found');
+$cfg->setConfigEntry('user_not_found_url', 'index.php?app={?app_short_name?}&amp;page=login_area&amp;action=status_problem&amp;status=user_not_found');
 
 // CFG: LOGIN-GOVERNMENT-STARTUP-FAILED-URL
 $cfg->setConfigEntry('login_government_startup_failed_url', 'index.php?app={?app_short_name?}&amp;page=government_failed&amp;failed=startup');
index 83fd32c55952934799c924d10a53ee304a1d78ac..ea0bb0a9c9133c2130e58b7cc14f7e06a513154c 100644 (file)
@@ -41,7 +41,7 @@ class BaseShipSimuAction extends BaseAction {
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       protected function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Add code here executed with every action
        }
 
index db03e478c5d5d015b9b0141e3e11f27b62833810..d60f44259fab82c0ab60db41b435245b429fb88b 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 WebShipSimuLogin???Action extends BaseAction implements Commandable, Registerable {
+class WebShipSimuLogin???Action extends BaseShipSimuAction implements Commandable, Registerable {
        /**
         * Protected constructor
         *
@@ -58,8 +58,10 @@ class WebShipSimuLogin???Action extends BaseAction implements Commandable, Regis
         * @todo        0% done
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
-               // Unfinished method
-               $this->partialStub('Unfinished method.');
+               // Execute parent method
+               parent::execute($requestInstance, $responseInstance);
+
+               // Add your code here
        }
 
        /**
index 0a4549894087f72903d7e1f5e6bff0b090bd5a98..b82d365c3de71d249c578b1ad65c4eed5e822366 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 WebShipSimuLoginStatusProblemAction extends BaseAction implements Commandable, Registerable {
+class WebShipSimuLoginStatusProblemAction extends BaseShipSimuAction implements Commandable, Registerable {
        /**
         * Protected constructor
         *
@@ -58,8 +58,10 @@ class WebShipSimuLoginStatusProblemAction extends BaseAction implements Commanda
         * @todo        0% done
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
-               // Unfinished method
-               $this->partialStub('Unfinished method.');
+               // Call parent method
+               parent::execute($requestInstance, $responseInstance);
+
+               // Add your code
        }
 
        /**