From: Roland Häder Date: Wed, 8 Jul 2009 22:44:10 +0000 (+0000) Subject: More general state classes added X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=32985b2aa1f79b16fb9dc2a98e997cd4f9790ab2;hp=b1b77d5d19b8cd81457c19d885baa949652f2c68;p=hub.git More general state classes added --- diff --git a/.gitattributes b/.gitattributes index d9d6633fa..047be44c1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/application/hub/main/class_ b/application/hub/main/class_ index e332f9f2e..2afb25d1d 100644 --- a/application/hub/main/class_ +++ b/application/hub/main/class_ @@ -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 index 000000000..1b30ac4bc --- /dev/null +++ b/application/hub/main/states/class_ @@ -0,0 +1,37 @@ + + * @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 ???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 index 000000000..3a4288278 --- /dev/null +++ b/application/hub/main/states/client/.htaccess @@ -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 index 000000000..ec1916b8e --- /dev/null +++ b/application/hub/main/states/client/class_BaseClientState.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 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 index 000000000..3a4288278 --- /dev/null +++ b/application/hub/main/states/hub/.htaccess @@ -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 index 000000000..8e52c1f32 --- /dev/null +++ b/application/hub/main/states/hub/class_BaseHubState.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 BaseHubState extends BaseState { + /** + * Protected constructor + * + * @param $className Name of the class + * @return void + */ + protected function __construct ($className) { + // Call parent constructor + parent::__construct($className); + } +} + +// [EOF] +?>