X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fmain%2Fnodes%2Fclass_;h=17cb01b59ed22038e2c4834098e40ae6f0484ea9;hb=0fcae44c67a36cb2708ea18d22a56b7200a5574c;hp=90a9484502f69ae5150ed5b9f2c89a808d686f2e;hpb=83a9b3ff0dd30fa092c059ed8496a7c81ade3dd0;p=hub.git diff --git a/application/hub/main/nodes/class_ b/application/hub/main/nodes/class_ index 90a948450..17cb01b59 100644 --- a/application/hub/main/nodes/class_ +++ b/application/hub/main/nodes/class_ @@ -4,7 +4,7 @@ * * @author Roland Haeder * @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."); } }