Interface for actions added (PerformableAction)
authorRoland Häder <roland@mxchange.org>
Fri, 20 Jun 2008 18:14:59 +0000 (18:14 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 20 Jun 2008 18:14:59 +0000 (18:14 +0000)
.gitattributes
application/ship-simu/main/actions/class_ShipSimuLoginAction.php
application/ship-simu/main/actions/class_ShipSimuLogoutAction.php
application/ship-simu/main/actions/class_ShipSimuProfileAction.php
inc/classes/interfaces/actions/.htaccess [new file with mode: 0644]
inc/classes/interfaces/actions/class_PerformableAction.php [new file with mode: 0644]
inc/classes/main/actions/post_registration/class_LoginAfterRegistrationAction.php

index be0e286..360ab57 100644 (file)
@@ -255,6 +255,8 @@ inc/classes/exceptions/user/class_UserEmailMissingException.php -text
 inc/classes/exceptions/user/class_UserPasswordMismatchException.php -text
 inc/classes/exceptions/user/class_UsernameMissingException.php -text
 inc/classes/interfaces/.htaccess -text
+inc/classes/interfaces/actions/.htaccess -text
+inc/classes/interfaces/actions/class_PerformableAction.php -text
 inc/classes/interfaces/application/.htaccess -text
 inc/classes/interfaces/application/class_ManageableApplication.php -text
 inc/classes/interfaces/auth/.htaccess -text
index baf56a0..1611415 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 ShipSimuLoginAction extends BaseAction implements Commandable {
+class ShipSimuLoginAction extends BaseAction implements PerformableAction {
        /**
         * Protected constructor
         *
index e1c0014..7239333 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 ShipSimuLogoutAction extends BaseAction implements Commandable {
+class ShipSimuLogoutAction extends BaseAction implements PerformableAction {
        /**
         * Protected constructor
         *
index ce27819..7377ac4 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 ShipSimuProfileAction extends BaseAction implements Commandable {
+class ShipSimuProfileAction extends BaseAction implements PerformableAction {
        /**
         * Protected constructor
         *
diff --git a/inc/classes/interfaces/actions/.htaccess b/inc/classes/interfaces/actions/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/inc/classes/interfaces/actions/class_PerformableAction.php b/inc/classes/interfaces/actions/class_PerformableAction.php
new file mode 100644 (file)
index 0000000..485aa9e
--- /dev/null
@@ -0,0 +1,36 @@
+<?php
+/**
+ * An interface for performable actions
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @version            0.0.0
+ * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @license            GNU GPL 3.0 or any newer version
+ * @link               http://www.ship-simu.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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+interface PerformableAction extends FrameworkInterface {
+       /**
+        * Executes the command with given request and response objects
+        *
+        * @param       $requestInstance        An instance of a class with an Requestable interface
+        * @param       $responseInstance       An instance of a class with an Responseable interface
+        * @return      void
+        */
+       function execute (Requestable $requestInstance, Responseable $responseInstance);
+}
+
+//
+?>
index c5f1e8a..8500474 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 LoginAfterRegistrationAction extends BaseAction implements Commandable {
+class LoginAfterRegistrationAction extends BaseAction implements PerformableAction {
        /**
         * Protected constructor
         *