]> git.mxchange.org Git - hub.git/commitdiff
State class and class templates added
authorRoland Häder <roland@mxchange.org>
Wed, 8 Jul 2009 22:40:08 +0000 (22:40 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 8 Jul 2009 22:40:08 +0000 (22:40 +0000)
.gitattributes
application/hub/main/class_ [new file with mode: 0644]
application/hub/main/class_Base [new file with mode: 0644]
application/hub/main/class_BaseHubSystem.php
application/hub/main/states/.htaccess [new file with mode: 0644]
application/hub/main/states/class_BaseState.php [new file with mode: 0644]

index 21bfff9f45b50039fdb5428563af568fb9a67459..d9d6633fabd884b7a74383f0fcc179d82f924e70 100644 (file)
@@ -33,6 +33,8 @@ application/hub/interfaces/states/hub/.htaccess -text
 application/hub/interfaces/states/hub/class_HubStateable.php -text
 application/hub/loader.php -text
 application/hub/main/.htaccess -text
+application/hub/main/class_ -text
+application/hub/main/class_Base -text
 application/hub/main/class_BaseHubSystem.php -text
 application/hub/main/connectors/.htaccess -text
 application/hub/main/connectors/class_BaseConnector.php -text
@@ -83,6 +85,8 @@ application/hub/main/pools/client/.htaccess -text
 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_BaseState.php -text
 application/hub/starter.php -text
 /clear-cache.sh -text
 db/.htaccess -text
diff --git a/application/hub/main/class_ b/application/hub/main/class_
new file mode 100644 (file)
index 0000000..e332f9f
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+/**
+ * 
+ *
+ * @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 ??? extends BaseHubSystem {
+       /**
+        * 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/class_Base b/application/hub/main/class_Base
new file mode 100644 (file)
index 0000000..6e9a679
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+/**
+ * A general 
+ *
+ * @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 Base??? extends BaseHubSystem {
+       /**
+        * Protected constructor
+        *
+        * @param       $className      Name of the class
+        * @return      void
+        */
+       protected function __construct ($className) {
+               // Call parent constructor
+               parent::__construct($className);
+       }
+}
+
+// [EOF]
+?>
index 32497dbb4f659ce78e74bae3544c726e67897c88..deee535e78deb15942b36067b103f3717c456f51 100644 (file)
@@ -32,6 +32,21 @@ class BaseHubSystem extends BaseFrameworkSystem {
         */
        private $listenerInstance = null;
 
+       /**
+        * Protected constructor
+        *
+        * @param       $className      Name of the class
+        * @return      void
+        */
+       protected function __construct ($className) {
+               // Call parent constructor
+               parent::__construct($className);
+
+               // Clean up a little
+               $this->removeNumberFormaters();
+               $this->removeSystemArray();
+       }
+
        /**
         * Setter for listener instance
         *
@@ -51,21 +66,6 @@ class BaseHubSystem extends BaseFrameworkSystem {
                return $this->listenerInstance;
        }
 
-       /**
-        * Protected constructor
-        *
-        * @param       $className      Name of the class
-        * @return      void
-        */
-       protected function __construct ($className) {
-               // Call parent constructor
-               parent::__construct($className);
-
-               // Clean up a little
-               $this->removeNumberFormaters();
-               $this->removeSystemArray();
-       }
-
        /**
         * Setter for node instance
         *
diff --git a/application/hub/main/states/.htaccess b/application/hub/main/states/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/hub/main/states/class_BaseState.php b/application/hub/main/states/class_BaseState.php
new file mode 100644 (file)
index 0000000..0117115
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+/**
+ * A general 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 BaseState extends BaseHubSystem implements Stateable {
+       /**
+        * Protected constructor
+        *
+        * @param       $className      Name of the class
+        * @return      void
+        */
+       protected function __construct ($className) {
+               // Call parent constructor
+               parent::__construct($className);
+       }
+}
+
+// [EOF]
+?>