From: Roland Häder Date: Wed, 8 Jul 2009 22:40:08 +0000 (+0000) Subject: State class and class templates added X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b1b77d5d19b8cd81457c19d885baa949652f2c68;p=hub.git State class and class templates added --- diff --git a/.gitattributes b/.gitattributes index 21bfff9f4..d9d6633fa 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 index 000000000..e332f9f2e --- /dev/null +++ b/application/hub/main/class_ @@ -0,0 +1,38 @@ + + * @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 . + */ +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 index 000000000..6e9a679eb --- /dev/null +++ b/application/hub/main/class_Base @@ -0,0 +1,38 @@ + + * @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 . + */ +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] +?> diff --git a/application/hub/main/class_BaseHubSystem.php b/application/hub/main/class_BaseHubSystem.php index 32497dbb4..deee535e7 100644 --- a/application/hub/main/class_BaseHubSystem.php +++ b/application/hub/main/class_BaseHubSystem.php @@ -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 index 000000000..3a4288278 --- /dev/null +++ b/application/hub/main/states/.htaccess @@ -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 index 000000000..0117115a0 --- /dev/null +++ b/application/hub/main/states/class_BaseState.php @@ -0,0 +1,38 @@ + + * @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 . + */ +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] +?>