]> git.mxchange.org Git - shipsimu.git/commitdiff
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 be0e2867c68862ecb0d83733f3385315306eeb42..360ab57292f2bb9e988f8a80d808f28df935f936 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 baf56a0b30b9ecaed4effd419e3a2633f345b430..1611415df8bcce0df4ccd1cc305165a9472e4a0b 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 e1c0014228baffad2a663533826f9ac744bf98f3..72393338d3141b1c7ca50f6275ab88e859883d36 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 ce2781969c4d886df912cddb90d418bebbb0bc79..7377ac4daefed7294f6930cc2beca7fd539f3734 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 c5f1e8a02ff4480fbece3a9479ef4f065d73acfa..8500474c3ca2b039fe03e6e59abdf088b7d08f3a 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
         *