]> git.mxchange.org Git - hub.git/commitdiff
Some 'abstract' are required
authorRoland Häder <roland@mxchange.org>
Sun, 11 Sep 2011 09:28:26 +0000 (09:28 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 11 Sep 2011 09:28:26 +0000 (09:28 +0000)
.gitattributes
application/hub/main/chat/console/class_NodeConsoleChat.php
application/hub/main/factories/states/peer/class_PeerStateFactory.php
application/hub/main/producer/class_BaseProducer.php
application/hub/main/producer/cruncher/class_BaseKeyProducer.php
application/hub/main/producer/cruncher/class_BaseUnitProducer.php
docs/AUTHORS.txt [new file with mode: 0644]
index.php

index 544de4bea5ea4d86856f879ff89e90376a32531a..2ccd8ddc2c9a7e1997a6141e9d4069c588ab7618 100644 (file)
@@ -572,6 +572,7 @@ db/node_data/.htaccess -text svneol=unset#text/plain
 db/node_list/.htaccess -text svneol=unset#text/plain
 db/node_states/.htaccess -text svneol=unset#text/plain
 db/peer_states/.htaccess -text svneol=unset#text/plain
+docs/AUTHORS.txt svneol=native#text/plain
 docs/COPYING -text
 docs/COPYING.documents -text
 docs/COPYING.software -text
index 46bb5b742bcfb60a91ecb188eb4c0175e106b1e0..1a346ceea4861d5be56546f6e1cd3751c71b507f 100644 (file)
@@ -63,7 +63,18 @@ class NodeConsoleChat extends BaseNodeChat implements Chatter, Registerable {
         * @return      void
         */
        public function outputConsoleTeaser () {
-               $this->partialStub('Please implement this method.');
+               // Get the app instance (for shortening our code)
+               $app = $this->getApplicationInstance();
+
+               // Output all lines
+               $this->debugOutput(' ');
+               $this->debugOutput($app->getAppName() . ' v' . $app->getAppVersion() . ' - A telnet connection helper');
+               $this->debugOutput('Copyright (c) 2007 - 2008 Roland Haeder, 2009 - 2011 Hub Developer Team');
+               $this->debugOutput(' ');
+               $this->debugOutput('This program comes with ABSOLUTELY NO WARRANTY; for details see docs/COPYING.');
+               $this->debugOutput('This is free software, and you are welcome to redistribute it under certain');
+               $this->debugOutput('conditions; see docs/COPYING for details.');
+               $this->debugOutput(' ');
        }
 
        /**
index 181fc970000b0a2e6a79ed605a99a24f68185766..2837ae6650ed574d83650b9ead357fe725464cb7 100644 (file)
@@ -82,14 +82,14 @@ class PeerStateFactory extends ObjectFactory {
                        // Debug output
                        $tableInstance->debugOutput('PEER-STATE-FACTORY: errorCode=' . $errorCode);
 
-                       // Is a new peer so create the state instance based on error code, first we need a config entry
-                       $configEntry = 'peer_' . $errorCode . '_state_class';
-
                        // Register the new peer with its session id
                        $tableInstance->registerPeerByPackageData($packageData, $socketResource);
 
-                       // Then get it
-                       $stateInstance = self::createObjectByConfiguredName($configEntry);
+                       /*
+                        * It is a new peer so create the state instance based on error
+                        * code and get an instance from it.
+                        */
+                       $stateInstance = self::createObjectByConfiguredName('peer_' . $errorCode . '_state_class');
 
                        // And register it with the lookup table
                        $tableInstance->registerPeerState($stateInstance, $packageData);
index ee5976cbf74bc37c180f65ae6d492aedf1a031f5..e69b83f7fe86c641f85938db29d3bff0ed774527 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 BaseProducer extends BaseFrameworkSystem {
+abstract class BaseProducer extends BaseFrameworkSystem {
        /**
         * Outgoing work-queue
         */
index 599412aa68890731ec9fb79a488b91ff44dc275b..c89fa57789d736418eabd2714a91b96f2ad8386d 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 BaseKeyProducer extends BaseProducer {
+abstract class BaseKeyProducer extends BaseProducer {
        /**
         * Protected constructor
         *
index 46ffd6f119d6ded8c218ee26a3cc9a8408cb2148..6c1c4bc2053e3f8015728867286b03ca434fe8d1 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 BaseUnitProducer extends BaseProducer {
+abstract class BaseUnitProducer extends BaseProducer {
        /**
         * Work/test unit status
         */
diff --git a/docs/AUTHORS.txt b/docs/AUTHORS.txt
new file mode 100644 (file)
index 0000000..4d83d70
--- /dev/null
@@ -0,0 +1,15 @@
+[--------------------------------------]
+[-- All main authors of this script: --]
+[--------------------------------------]
+
+- Roland Haeder <roland.mxchange.org>
+
+  (project leader, webmaster, main programmer)
+
+[----------------------------------------]
+[-- Contributors (code, designs, etc.) --]
+[----------------------------------------]
+
+- Mr. X <maybe.your.adress.com>
+
+  (requested to be listed... ;-) )
index c0af3b26dc44f8d2d09ddce97b5ac927124c79c2..fea50278e467080d96bc7d9c1d2e0400b1af9929 100644 (file)
--- a/index.php
+++ b/index.php
@@ -34,8 +34,6 @@ final class ApplicationEntryPoint {
 
        /**
         * The instances we want to remove after all is done
-        *
-        * @return      void
         */
        private static $instances = array (
                'cfg',    // The configuration system