]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/tasks/node/self_connect/class_NodeSelfConnectTask.php
Updated 'core'.
[hub.git] / application / hub / main / tasks / node / self_connect / class_NodeSelfConnectTask.php
index 2b7a32976c6a5ae4192f6b08d65468b2b855970b..8a7d99fb1a66ba5dba28b3436bd1de6a517a2370 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * A SelfConnect node-task
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
+ * @link               http://www.shipsimu.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
@@ -46,7 +46,7 @@ class NodeSelfConnectTask extends BaseTask implements Taskable, Visitable {
        }
 
        /**
-        * Accepts the visitor to process the visit "request"
+        * Accepts the visitor to process the visitor
         *
         * @param       $visitorInstance        An instance of a Visitor class
         * @return      void
@@ -63,7 +63,17 @@ class NodeSelfConnectTask extends BaseTask implements Taskable, Visitable {
         */
        public function executeTask () {
                // Get the node instance and try it
-               Registry::getRegistry()->getInstance('node')->doSelfConnection($this);
+               NodeObjectFactory::createNodeInstance()->doSelfConnection($this);
+       }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
        }
 }