]> git.mxchange.org Git - hub.git/commitdiff
More general state classes added
authorRoland Häder <roland@mxchange.org>
Wed, 8 Jul 2009 22:44:10 +0000 (22:44 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 8 Jul 2009 22:44:10 +0000 (22:44 +0000)
.gitattributes
application/hub/main/class_
application/hub/main/states/class_ [new file with mode: 0644]
application/hub/main/states/client/.htaccess [new file with mode: 0644]
application/hub/main/states/client/class_BaseClientState.php [new file with mode: 0644]
application/hub/main/states/hub/.htaccess [new file with mode: 0644]
application/hub/main/states/hub/class_BaseHubState.php [new file with mode: 0644]

index d9d6633fabd884b7a74383f0fcc179d82f924e70..047be44c1d4fd3791e8e91ace50632ec2ddba151 100644 (file)
@@ -86,7 +86,12 @@ application/hub/main/pools/client/class_DefaultClientPool.php -text
 application/hub/main/pools/listener/.htaccess -text
 application/hub/main/pools/listener/class_DefaultListenerPool.php -text
 application/hub/main/states/.htaccess -text
+application/hub/main/states/class_ -text
 application/hub/main/states/class_BaseState.php -text
+application/hub/main/states/client/.htaccess -text
+application/hub/main/states/client/class_BaseClientState.php -text
+application/hub/main/states/hub/.htaccess -text
+application/hub/main/states/hub/class_BaseHubState.php -text
 application/hub/starter.php -text
 /clear-cache.sh -text
 db/.htaccess -text
index e332f9f2e30f1dc1edec5d96d9be25cc068c6e4f..2afb25d1d83f6076a4030bcc14e6eb88c3d8e0d5 100644 (file)
@@ -25,12 +25,11 @@ class ??? extends BaseHubSystem {
        /**
         * Protected constructor
         *
-        * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct () {
                // Call parent constructor
-               parent::__construct($className);
+               parent::__construct(__CLASS__);
        }
 }
 
diff --git a/application/hub/main/states/class_ b/application/hub/main/states/class_
new file mode 100644 (file)
index 0000000..1b30ac4
--- /dev/null
@@ -0,0 +1,37 @@
+<?php
+/**
+ * A ??? state class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @version            0.0.0
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Hub Developer Team
+ * @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/>.
+ */
+class ???State extends BaseState implements ??Stateable {
+       /**
+        * Protected constructor
+        *
+        * @return      void
+        */
+       protected function __construct () {
+               // Call parent constructor
+               parent::__construct(__CLASS__);
+       }
+}
+
+// [EOF]
+?>
diff --git a/application/hub/main/states/client/.htaccess b/application/hub/main/states/client/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/hub/main/states/client/class_BaseClientState.php b/application/hub/main/states/client/class_BaseClientState.php
new file mode 100644 (file)
index 0000000..ec1916b
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+/**
+ * A general client state class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @version            0.0.0
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Hub Developer Team
+ * @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/>.
+ */
+class BaseClientState extends BaseState {
+       /**
+        * Protected constructor
+        *
+        * @param       $className      Name of the class
+        * @return      void
+        */
+       protected function __construct ($className) {
+               // Call parent constructor
+               parent::__construct($className);
+       }
+}
+
+// [EOF]
+?>
diff --git a/application/hub/main/states/hub/.htaccess b/application/hub/main/states/hub/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/hub/main/states/hub/class_BaseHubState.php b/application/hub/main/states/hub/class_BaseHubState.php
new file mode 100644 (file)
index 0000000..8e52c1f
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+/**
+ * A general hub state class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @version            0.0.0
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Hub Developer Team
+ * @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/>.
+ */
+class BaseHubState extends BaseState {
+       /**
+        * Protected constructor
+        *
+        * @param       $className      Name of the class
+        * @return      void
+        */
+       protected function __construct ($className) {
+               // Call parent constructor
+               parent::__construct($className);
+       }
+}
+
+// [EOF]
+?>