# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
# by quotes) that should identify the project.
-PROJECT_NAME = GenericObjectSharingHub
+PROJECT_NAME = "Generic Object Sharing Hub"
# The PROJECT_NUMBER tag can be used to enter a project or revision number.
# This could be handy for archiving the generated documentation or
/**
* Loads the descriptor XML file
*
+ * @param $nodeInstance An instance of a NodeHelper class
* @return void
*/
- function loadDescriptorXml ();
+ function loadDescriptorXml (NodeHelper $nodeInstance);
/**
* Send a package out
// Get a helper instance based on this handler's name
$helperInstance = ObjectFactory::createObjectByConfiguredName('node_answer_' . $this->getHandlerName() . '_helper_class', array($messageData));
+ // Get node instance
+ $nodeInstance = Registry::getRegistry()->getInstance('node');
+
// Load descriptor XML
- $helperInstance->loadDescriptorXml();
+ $helperInstance->loadDescriptorXml($nodeInstance);
/*
* Set missing (temporary) configuration data, mostly it needs to be
// Compile any configuration variables
$helperInstance->getTemplateInstance()->compileConfigInVariables();
- // Get node instance
- $nodeInstance = Registry::getRegistry()->getInstance('node');
-
// Deliver the package
$helperInstance->sendPackage($nodeInstance);
// Get a helper instance based on this handler's name
$helperInstance = ObjectFactory::createObjectByConfiguredName('node_next_' . $this->getHandlerName() . '_helper_class', array($messageData));
+ // Get node instance
+ $nodeInstance = Registry::getRegistry()->getInstance('node');
+
// Load descriptor XML
- $helperInstance->loadDescriptorXml();
+ $helperInstance->loadDescriptorXml($nodeInstance);
/*
* Set missing (temporary) configuration data, mostly it needs to be
// Compile any configuration variables
$helperInstance->getTemplateInstance()->compileConfigInVariables();
- // Get node instance
- $nodeInstance = Registry::getRegistry()->getInstance('node');
-
// Deliver the package
$helperInstance->sendPackage($nodeInstance);
/**
* Loads the announcement descriptor for parsing
*
+ * @param $nodeInstance An instance of a NodeHelper class
* @return void
*/
- public function loadDescriptorXml () {
+ public function loadDescriptorXml (NodeHelper $nodeInstance) {
// Debug message
self::createDebugInstance(__CLASS__)->debugOutput('HELPER: Starting with announcement to upper hubs...');
/**
* Loads the descriptor XML file
*
+ * @param $nodeInstance An instance of a NodeHelper class
* @return void
*/
- public function loadDescriptorXml () {
+ public function loadDescriptorXml (NodeHelper $nodeInstance) {
// Debug message
self::createDebugInstance(__CLASS__)->debugOutput('HELPER: Attempting to answer an announcement...');
/**
* Loads the descriptor XML file
*
+ * @param $nodeInstance An instance of a NodeHelper class
* @return void
*/
- public function loadDescriptorXml () {
+ public function loadDescriptorXml (NodeHelper $nodeInstance) {
// Debug message
self::createDebugInstance(__CLASS__)->debugOutput('HELPER: Attempting to answer a request: node-list...');
/**
* Loads the descriptor XML file
*
+ * @param $nodeInstance An instance of a NodeHelper class
* @return void
*/
- public function loadDescriptorXml () {
+ public function loadDescriptorXml (NodeHelper $nodeInstance) {
// Debug message
self::createDebugInstance(__CLASS__)->debugOutput('HELPER: Attempting self-connect...');
/**
* Loads the descriptor XML file
*
+ * @param $nodeInstance An instance of a NodeHelper class
* @return void
*/
- public function loadDescriptorXml () {
+ public function loadDescriptorXml (NodeHelper $nodeInstance) {
// Debug message
self::createDebugInstance(__CLASS__)->debugOutput('HELPER: Attempting to request node list...');
$helperInstance = ObjectFactory::createObjectByConfiguredName('hub_announcement_helper_class');
// Load the announcement descriptor
- $helperInstance->loadDescriptorXml();
+ $helperInstance->loadDescriptorXml($this);
// Compile all variables
$helperInstance->getTemplateInstance()->compileConfigInVariables();
$helperInstance = ObjectFactory::createObjectByConfiguredName('hub_self_connect_helper_class', array($this));
// Load the descriptor (XML) file
- $helperInstance->loadDescriptorXml();
+ $helperInstance->loadDescriptorXml($this);
// Compile all variables
$helperInstance->getTemplateInstance()->compileConfigInVariables();