// Output all lines
$this->debugOutput(' ');
$this->debugOutput('MCrypt Cruncher v' . $this->getVersion() . ' is starting ...');
- $this->debugOutput('Copyright (c) 2011 MCrypt Cruncher Developer Team');
+ $this->debugOutput('Copyright (c) 2011 Hub Developer Team');
$this->debugOutput(' ');
$this->debugOutput('This program comes with ABSOLUTELY NO WARRANTY; for details see docs/COPYING.');
$this->debugOutput('This is free software, and you are welcome to redistribute it under certain');
$applicationInstance = Registry::getRegistry()->getInstance('app');
// Get a XML template instance
- $templateInstance = ObjectFactory::createObjectByConfiguredName('node_announcement_template_class', array($applicationInstance));
+ $templateInstance = ObjectFactory::createObjectByConfiguredName('node_announcement_template_class');
// Disable language support
$templateInstance->enableLanguageSupport(false);
$applicationInstance = Registry::getRegistry()->getInstance('app');
// Get a XML template instance
- $templateInstance = ObjectFactory::createObjectByConfiguredName('node_self_connect_template_class', array($applicationInstance));
+ $templateInstance = ObjectFactory::createObjectByConfiguredName('node_self_connect_template_class');
// Disable language support
$templateInstance->enableLanguageSupport(false);
$applicationInstance = Registry::getRegistry()->getInstance('app');
// Get a XML template instance
- $templateInstance = ObjectFactory::createObjectByConfiguredName('node_object_registry_template_class', array($applicationInstance));
+ $templateInstance = ObjectFactory::createObjectByConfiguredName('node_object_registry_template_class');
// Disable language support
$templateInstance->enableLanguageSupport(false);
/**
* Creates an instance of the class TemplateEngine and prepares it for usage
*
- * @param $applicationInstance A manageable application
* @return $templateInstance An instance of TemplateEngine
* @throws BasePathIsEmptyException If the provided $templateBasePath is empty
* @throws InvalidBasePathStringException If $templateBasePath is no string
* @throws BasePathReadProtectedException If $templateBasePath is
* read-protected
*/
- public static final function createXmlAnnouncementTemplateEngine (ManageableApplication $applicationInstance) {
+ public static final function createXmlAnnouncementTemplateEngine () {
// Get a new instance
$templateInstance = new XmlAnnouncementTemplateEngine();
+ // Get the application instance from registry
+ $applicationInstance = Registry::getRegistry()->getInstance('app');
+
// Determine base path
$templateBasePath = $templateInstance->getConfigInstance()->getConfigEntry('application_base_path') . $applicationInstance->getRequestInstance()->getRequestElement('app') . '/';
// Is the template dependency set?
if ((!empty($templateDependency)) && (!isset($this->dependencyContent[$node]))) {
// Get a temporay template instance
- $templateInstance = ObjectFactory::createObjectByConfiguredName('node_announcement_template_class', array($this->getApplicationInstance()));
+ $templateInstance = ObjectFactory::createObjectByConfiguredName('node_announcement_template_class');
// Then load it
$templateInstance->loadAnnouncementTemplate($templateDependency);
/**
* Creates an instance of the class TemplateEngine and prepares it for usage
*
- * @param $applicationInstance A manageable application
* @return $templateInstance An instance of TemplateEngine
* @throws BasePathIsEmptyException If the provided $templateBasePath is empty
* @throws InvalidBasePathStringException If $templateBasePath is no string
* @throws BasePathReadProtectedException If $templateBasePath is
* read-protected
*/
- public static final function createXmlSelfConnectTemplateEngine (ManageableApplication $applicationInstance) {
+ public static final function createXmlSelfConnectTemplateEngine () {
// Get a new instance
$templateInstance = new XmlSelfConnectTemplateEngine();
+ // Get the application instance from registry
+ $applicationInstance = Registry::getRegistry()->getInstance('app');
+
// Determine base path
$templateBasePath = $templateInstance->getConfigInstance()->getConfigEntry('application_base_path') . $applicationInstance->getRequestInstance()->getRequestElement('app') . '/';
// Is the template dependency set?
if ((!empty($templateDependency)) && (!isset($this->dependencyContent[$node]))) {
// Get a temporay template instance
- $templateInstance = ObjectFactory::createObjectByConfiguredName('node_self_connect_template_class', array($this->getApplicationInstance()));
+ $templateInstance = ObjectFactory::createObjectByConfiguredName('node_self_connect_template_class');
// Then load it
$templateInstance->loadSelfConnectTemplate($templateDependency);
/**
* Creates an instance of the class TemplateEngine and prepares it for usage
*
- * @param $applicationInstance A manageable application
* @return $templateInstance An instance of TemplateEngine
* @throws BasePathIsEmptyException If the provided $templateBasePath is empty
* @throws InvalidBasePathStringException If $templateBasePath is no string
* @throws BasePathReadProtectedException If $templateBasePath is
* read-protected
*/
- public static final function createXmlObjectRegistryTemplateEngine (ManageableApplication $applicationInstance) {
+ public static final function createXmlObjectRegistryTemplateEngine () {
// Get a new instance
$templateInstance = new XmlObjectRegistryTemplateEngine();
+ // Get the application instance from registry
+ $applicationInstance = Registry::getRegistry()->getInstance('app');
+
// Determine base path
$templateBasePath = $templateInstance->getConfigInstance()->getConfigEntry('application_base_path') . $applicationInstance->getRequestInstance()->getRequestElement('app') . '/';
// Is the template dependency set?
if ((!empty($templateDependency)) && (!isset($this->dependencyContent[$node]))) {
// Get a temporay template instance
- $templateInstance = ObjectFactory::createObjectByConfiguredName('node_object_registry_template_class', array($this->getApplicationInstance()));
+ $templateInstance = ObjectFactory::createObjectByConfiguredName('node_object_registry_template_class');
// Then load it
$templateInstance->loadObjectRegistryTemplate($templateDependency);
// Use the template engine for putting out (nicer look) the message
try {
// Get the template instance from our object factory
- $templateInstance = ObjectFactory::createObjectByName($tpl, array(ApplicationHelper::getInstance()));
+ $templateInstance = ObjectFactory::createObjectByName($tpl);
} catch (FrameworkException $e) {
die(sprintf("[Main:] Could not initialize template engine for reason: <span class=\"exception_reason\">%s</span>",
$e->getMessage()