]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/nodes/regular/class_HubRegularNode.php
Mode-validation and IP detection added, mode classes added
[hub.git] / application / hub / main / nodes / regular / class_HubRegularNode.php
index 39903a5a575a27654a76051087ccc313749ab7af..dd9105121f3cee9f3612da6593140f5742c2105c 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
+ * @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
  *
@@ -35,12 +35,16 @@ class HubRegularNode extends BaseHubNode implements NodeHelper {
        /**
         * Creates an instance of this hub-node class
         *
-        * @return      $nodeInstance   An instance of this hub-node class
+        * @param       $requestInstance        An instance of a Requestable class
+        * @return      $nodeInstance           An instance of this hub-node class
         */
-       public final static function createHubRegularNode () {
+       public final static function createHubRegularNode (Requestable $requestInstance) {
                // Get a new instance
                $nodeInstance = new HubRegularNode();
 
+               // Set the request instance
+               $nodeInstance->setRequestInstance($requestInstance);
+
                // Return the instance
                return $nodeInstance;
        }
@@ -54,7 +58,9 @@ class HubRegularNode extends BaseHubNode implements NodeHelper {
         * @return      void
         */
        public function doBootstrapping (Requestable $requestInstance) {
-               $this->partialStub();
+               // Call generic (parent) bootstrapping method
+               parent::doGenericBootstrapping();
+               $this->partialStub("Please implement this method.");
        }
 }