*
* @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
*
/**
* 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;
}
* @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.");
}
}