* @return void
*/
public final function entryPoint () {
- trigger_error(__METHOD__.": Cleared!");
+ // The default node mode is from config. This mode is being "transfered" into a class name
+ $nodeMode = $this->getConfigInstance()->readConfig('node_mode');
+
+ // Prepare a ConsoleRequest class to catch all parameters
+ $requestInstance = ObjectFactory::createObjectByName('ConsoleRequest');
+
+ // Is the node 'mode' parameter set?
+ if ($requestInstance->isRequestElementSet('mode')) {
+ // Then use this which overrides the config entry temporarily
+ $nodeMode = $requestInstance->getRequestElement('mode');
+ } // END - if
+
+ // Now convert the node-mode in a class name
+ $className = 'Hub' . $this->convertToClassName($nodeMode) . 'Node';
+
+ // And try to instance it
+ $nodeInstance = ObjectFactory::createObjectByName($className);
}
/**
* @return $masterTemplateName Name of the master template
*/
public function buildMasterTemplateName () {
- return "hub_main";
+ return "node_main";
}
}