]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/nodes/class_
Mode-validation and IP detection added, mode classes added
[hub.git] / application / hub / main / nodes / class_
index 90a9484502f69ae5150ed5b9f2c89a808d686f2e..17cb01b59ed22038e2c4834098e40ae6f0484ea9 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 Hub???Node 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 createHub???Node () {
+       public final static function createHub???Node (Requestable $requestInstance) {
                // Get a new instance
                $nodeInstance = new Hub???Node();
 
+               // Set the request instance
+               $nodeInstance->setRequestInstance($requestInstance);
+
                // Return the instance
                return $nodeInstance;
        }
@@ -54,19 +58,9 @@ class Hub???Node extends BaseHubNode implements NodeHelper {
         * @return      void
         */
        public function doBootstrapping (Requestable $requestInstance) {
-               $this->partialStub();
-       }
-
-       /**
-        * Method to aquire a hub-id. On first run this generates a new one
-        * based on many pseudo-random data. On any later run, unless the id
-        * got not removed from database, it will be restored from the database.
-        *
-        * @param       $requestInstance        An instance of a Requestable class
-        * @return      void
-        */
-       public function aquireHubId (Requestable $requestInstance) {
-               $this->partialStub();
+               // Call generic (parent) bootstrapping method
+               parent::doGenericBootstrapping();
+               $this->partialStub("Please implement this method.");
        }
 }