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 e4e5d2d..4ca3bac 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 83fd32c..ea0bb0a 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 db03e47..d60f442 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 0a45498..b82d365 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
        }
 
        /**