// CFG: NEWS-READER-CLASS
$cfg->setConfigEntry('news_reader_class', 'ConsoleNewsReader');
-// CFG: ANNOUNCEMENT-TEMPLATE-CLASS
-$cfg->setConfigEntry('announcement_template_class', 'XmlAnnouncementTemplateEngine');
+// CFG: NODE-ANNOUNCEMENT-TEMPLATE-CLASS
+$cfg->setConfigEntry('node_announcement_template_class', 'XmlAnnouncementTemplateEngine');
-// CFG: ANNOUNCEMENT-TEMPLATE-EXTENSION
-$cfg->setConfigEntry('announcement_template_extension', '.xml');
+// CFG: NODE-ANNOUNCEMENT-TEMPLATE-EXTENSION
+$cfg->setConfigEntry('node_announcement_template_extension', '.xml');
-// CFG: ANNOUNCEMENT-TEMPLATE-TYPE
-$cfg->setConfigEntry('announcement_template_type', 'xml/announcement');
+// CFG: NODE-ANNOUNCEMENT-TEMPLATE-TYPE
+$cfg->setConfigEntry('node_announcement_template_type', 'xml/announcement');
-// CFG: ANNOUNCEMENT-STACKER-CLASS
-$cfg->setConfigEntry('announcement_stacker_class', 'FiLoStacker');
+// CFG: NODE-ANNOUNCEMENT-STACKER-CLASS
+$cfg->setConfigEntry('node_announcement_stacker_class', 'FiLoStacker');
-// CFG: SELF-CONNECT-TEMPLATE-CLASS
-$cfg->setConfigEntry('self_connect_template_class', 'XmlSelfConnectTemplateEngine');
+// CFG: NODE-SELF-CONNECT-TEMPLATE-CLASS
+$cfg->setConfigEntry('node_self_connect_template_class', 'XmlSelfConnectTemplateEngine');
-// CFG: SELF-CONNECT-TEMPLATE-EXTENSION
-$cfg->setConfigEntry('self_connect_template_extension', '.xml');
+// CFG: NODE-SELF-CONNECT-TEMPLATE-EXTENSION
+$cfg->setConfigEntry('node_self_connect_template_extension', '.xml');
-// CFG: SELF-CONNECT-TEMPLATE-TYPE
-$cfg->setConfigEntry('self_connect_template_type', 'xml/self_connect');
+// CFG: NODE-SELF-CONNECT-TEMPLATE-TYPE
+$cfg->setConfigEntry('node_self_connect_template_type', 'xml/self_connect');
-// CFG: SELF-CONNECT-STACKER-CLASS
-$cfg->setConfigEntry('self_connect_stacker_class', 'FiLoStacker');
+// CFG: NODE-SELF-CONNECT-STACKER-CLASS
+$cfg->setConfigEntry('node_self_connect_stacker_class', 'FiLoStacker');
-// CFG: OBJECT-REGISTRY-TEMPLATE-CLASS
-$cfg->setConfigEntry('object_registry_template_class', 'XmlObjectRegistryTemplateEngine');
+// CFG: NODE-OBJECT-REGISTRY-TEMPLATE-CLASS
+$cfg->setConfigEntry('node_object_registry_template_class', 'XmlObjectRegistryTemplateEngine');
-// CFG: OBJECT-REGISTRY-TEMPLATE-EXTENSION
-$cfg->setConfigEntry('object_registry_template_extension', '.xml');
+// CFG: NODE-OBJECT-REGISTRY-TEMPLATE-EXTENSION
+$cfg->setConfigEntry('node_object_registry_template_extension', '.xml');
-// CFG: OBJECT-REGISTRY-TEMPLATE-TYPE
-$cfg->setConfigEntry('object_registry_template_type', 'xml/object_registry');
+// CFG: NODE-OBJECT-REGISTRY-TEMPLATE-TYPE
+$cfg->setConfigEntry('node_object_registry_template_type', 'xml/object_registry');
-// CFG: OBJECT-REGISTRY-STACKER-CLASS
-$cfg->setConfigEntry('object_registry_stacker_class', 'FiLoStacker');
+// CFG: NODE-OBJECT-REGISTRY-STACKER-CLASS
+$cfg->setConfigEntry('node_object_registry_stacker_class', 'FiLoStacker');
-// CFG: OBJECT-TYPE-REGISTRY-CLASS
-$cfg->setConfigEntry('object_type_registry_class', 'ObjectTypeRegistry');
+// CFG: NODE-OBJECT-TYPE-REGISTRY-CLASS
+$cfg->setConfigEntry('node_object_type_registry_class', 'ObjectTypeRegistry');
// CFG: CODE-TEMPLATE-TYPE
$cfg->setConfigEntry('code_template_type', 'xml');
// CFG: PACKAGE-STACKER-CLASS
-$cfg->setConfigEntry('package_stacker_class', 'FiFoStacker');
+$cfg->setConfigEntry('network_package_stacker_class', 'FiFoStacker');
// CFG: CRUNCHER-BUFFER-STACKER-CLASS
$cfg->setConfigEntry('cruncher_buffer_stacker_class', 'FiFoStacker');
// Assertion handler
function __assertHandler ($file, $line, $code) {
// Empty code?
- if ($code === '') $code = '<em>Unknown</em>';
+ if ($code === '') {
+ $code = '<em>Unknown</em>';
+ } // END - if
// Create message
$message = sprintf("File: %s, Line: %s, Code: %s",
* @param $requestInstance An instance of a class with an Requestable interface
* @param $responseInstance An instance of a class with an Responseable interface
* @return void
- * @todo 0% done
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Get task handler instance
* @param $responseInstance An instance of a class with an Responseable interface
* @return void
* @throws FilterChainException If we need to interrupt the filter chain
- * @todo 0% done
+ * @todo Maybe some more tasks needs to be added?
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Get node instance
$applicationInstance = Registry::getRegistry()->getInstance('app');
// Get a XML template instance
- $templateInstance = ObjectFactory::createObjectByConfiguredName('announcement_template_class', array($applicationInstance));
+ $templateInstance = ObjectFactory::createObjectByConfiguredName('node_announcement_template_class', array($applicationInstance));
// Disable language support
$templateInstance->enableLanguageSupport(false);
$applicationInstance = Registry::getRegistry()->getInstance('app');
// Get a XML template instance
- $templateInstance = ObjectFactory::createObjectByConfiguredName('self_connect_template_class', array($applicationInstance));
+ $templateInstance = ObjectFactory::createObjectByConfiguredName('node_self_connect_template_class', array($applicationInstance));
// Disable language support
$templateInstance->enableLanguageSupport(false);
break;
} elseif ($ipPortArray[0] == $this->getConfigInstance()->getConfigEntry('node_listen_addr')) {
// IP matches listen address. At this point we really don't care
- // if we can also listen on that address!
+ // if we can really listen on that address
$isFound = true;
// Remember the port number
// We need to initialize a stack here for our packages even those
// which have no recipient address and stamp... ;-)
- $stackerInstance = ObjectFactory::createObjectByConfiguredName('package_stacker_class');
+ $stackerInstance = ObjectFactory::createObjectByConfiguredName('network_package_stacker_class');
// At last, set it in this class
$this->setStackerInstance($stackerInstance);
*/
public function getIterator () {
// Prepare a default iterator
- $iteratorInstance = ObjectFactory::createObjectByConfiguredName('object_type_iterator_class', array($this));
+ $iteratorInstance = ObjectFactory::createObjectByConfiguredName('node_object_type_iterator_class', array($this));
// And return it
return $iteratorInstance;
$applicationInstance = Registry::getRegistry()->getInstance('app');
// Get a XML template instance
- $templateInstance = ObjectFactory::createObjectByConfiguredName('object_registry_template_class', array($applicationInstance));
+ $templateInstance = ObjectFactory::createObjectByConfiguredName('node_object_registry_template_class', array($applicationInstance));
// Disable language support
$templateInstance->enableLanguageSupport(false);
*/
private function verifyAllTags () {
// Get the registry
- $objectRegistryInstance = ObjectFactory::createObjectByConfiguredName('object_type_registry_class');
+ $objectRegistryInstance = ObjectFactory::createObjectByConfiguredName('node_object_type_registry_class');
// "Walk" over all tags
foreach ($this->getTags() as $tag) {
*
* @param $visitorInstance An instance of a Visitor class
* @return void
- * @todo 0%
*/
public function accept (Visitor $visitorInstance) {
// Visit this task
* Executes the task
*
* @return void
+ * @todo 0% done
*/
public function executeTask () {
$this->partialStub('Unimplemented task.');
// Set template extensions
$templateInstance->setRawTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('raw_template_extension'));
- $templateInstance->setCodeTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('announcement_template_extension'));
+ $templateInstance->setCodeTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('node_announcement_template_extension'));
// Absolute output path for compiled templates
$templateInstance->setCompileOutputPath($templateInstance->getConfigInstance()->getConfigEntry('base_path') . $templateInstance->getConfigInstance()->getConfigEntry('compile_output_path'));
// Init a variable stacker
- $stackerInstance = ObjectFactory::createObjectByConfiguredName('announcement_stacker_class');
+ $stackerInstance = ObjectFactory::createObjectByConfiguredName('node_announcement_stacker_class');
// Set it
$templateInstance->setStackerInstance($stackerInstance);
*/
public function loadAnnouncementTemplate ($template = 'self_announcement') {
// Set template type
- $this->setTemplateType($this->getConfigInstance()->getConfigEntry('announcement_template_type'));
+ $this->setTemplateType($this->getConfigInstance()->getConfigEntry('node_announcement_template_type'));
// Load the special template
$this->loadTemplate($template);
// Is the template dependency set?
if ((!empty($templateDependency)) && (!isset($this->dependencyContent[$node]))) {
// Get a temporay template instance
- $templateInstance = ObjectFactory::createObjectByConfiguredName('announcement_template_class', array($this->getApplicationInstance()));
+ $templateInstance = ObjectFactory::createObjectByConfiguredName('node_announcement_template_class', array($this->getApplicationInstance()));
// Then load it
$templateInstance->loadAnnouncementTemplate($templateDependency);
// Set template extensions
$templateInstance->setRawTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('raw_template_extension'));
- $templateInstance->setCodeTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('self_connect_template_extension'));
+ $templateInstance->setCodeTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('node_self_connect_template_extension'));
// Absolute output path for compiled templates
$templateInstance->setCompileOutputPath($templateInstance->getConfigInstance()->getConfigEntry('base_path') . $templateInstance->getConfigInstance()->getConfigEntry('compile_output_path'));
// Init a variable stacker
- $stackerInstance = ObjectFactory::createObjectByConfiguredName('self_connect_stacker_class');
+ $stackerInstance = ObjectFactory::createObjectByConfiguredName('node_self_connect_stacker_class');
// Set it
$templateInstance->setStackerInstance($stackerInstance);
*/
public function loadSelfConnectTemplate ($template = 'self_connect') {
// Set template type
- $this->setTemplateType($this->getConfigInstance()->getConfigEntry('self_connect_template_type'));
+ $this->setTemplateType($this->getConfigInstance()->getConfigEntry('node_self_connect_template_type'));
// Load the special template
$this->loadTemplate($template);
// Is the template dependency set?
if ((!empty($templateDependency)) && (!isset($this->dependencyContent[$node]))) {
// Get a temporay template instance
- $templateInstance = ObjectFactory::createObjectByConfiguredName('self_connect_template_class', array($this->getApplicationInstance()));
+ $templateInstance = ObjectFactory::createObjectByConfiguredName('node_self_connect_template_class', array($this->getApplicationInstance()));
// Then load it
$templateInstance->loadSelfConnectTemplate($templateDependency);
parent::__construct(__CLASS__);
// Init object type registry instance
- $this->objectRegistryInstance = ObjectFactory::createObjectByConfiguredName('object_type_registry_class');
+ $this->objectRegistryInstance = ObjectFactory::createObjectByConfiguredName('node_object_type_registry_class');
}
/**
// Set template extensions
$templateInstance->setRawTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('raw_template_extension'));
- $templateInstance->setCodeTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('object_registry_template_extension'));
+ $templateInstance->setCodeTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('node_object_registry_template_extension'));
// Absolute output path for compiled templates
$templateInstance->setCompileOutputPath($templateInstance->getConfigInstance()->getConfigEntry('base_path') . $templateInstance->getConfigInstance()->getConfigEntry('compile_output_path'));
// Init a variable stacker
- $stackerInstance = ObjectFactory::createObjectByConfiguredName('object_registry_stacker_class');
+ $stackerInstance = ObjectFactory::createObjectByConfiguredName('node_object_registry_stacker_class');
// Set it
$templateInstance->setStackerInstance($stackerInstance);
*/
public function loadObjectRegistryTemplate ($template) {
// Set template type
- $this->setTemplateType($this->getConfigInstance()->getConfigEntry('object_registry_template_type'));
+ $this->setTemplateType($this->getConfigInstance()->getConfigEntry('node_object_registry_template_type'));
// Load the special template
$this->loadTemplate($template);
// Is the template dependency set?
if ((!empty($templateDependency)) && (!isset($this->dependencyContent[$node]))) {
// Get a temporay template instance
- $templateInstance = ObjectFactory::createObjectByConfiguredName('object_registry_template_class', array($this->getApplicationInstance()));
+ $templateInstance = ObjectFactory::createObjectByConfiguredName('node_object_registry_template_class', array($this->getApplicationInstance()));
// Then load it
$templateInstance->loadObjectRegistryTemplate($templateDependency);