]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/template/class_
Continued on test-unit producer, fixed copyright:
[hub.git] / application / hub / main / template / class_
index c4bbc31a21f42e1d0bf92a79d4bd5078edda4177..a2678b77c1e713af23bc49247001d7871cbf6d00 100644 (file)
@@ -28,6 +28,7 @@ class Xml???TemplateEngine extends BaseTemplateEngine implements CompileableTemp
         * Main nodes in the XML tree
         */
        private $mainNodes = array(
+               '|||'
        );
 
        /**
@@ -54,7 +55,6 @@ class Xml???TemplateEngine extends BaseTemplateEngine implements CompileableTemp
        /**
         * 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
@@ -67,6 +67,9 @@ class Xml???TemplateEngine extends BaseTemplateEngine implements CompileableTemp
                // Get a new instance
                $templateInstance = new Xml???TemplateEngine();
 
+               // Get application instance from registry
+               $applicationInstance = Registry::getRegistry()->getInstance('app');
+
                // Determine base path
                $templateBasePath = $templateInstance->getConfigInstance()->getConfigEntry('application_base_path') . $applicationInstance->getRequestInstance()->getRequestElement('app') . '/';
 
@@ -241,7 +244,7 @@ class Xml???TemplateEngine extends BaseTemplateEngine implements CompileableTemp
                // Get current XML node name as an array index
                $nodeName = $this->getStackerInstance()->getNamed('!!!');
 
-               $this->partialStub('Do something with the gathered data.');
+               $this->partialStub('TODO: Do something with the gathered data.');
        }
 
        /**