]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/template/objects/class_XmlObjectRegistryTemplateEngine.php
Introduced experimental apt-proxy sub project (a connector for apt-proxy usage into...
[hub.git] / application / hub / main / template / objects / class_XmlObjectRegistryTemplateEngine.php
index 95f5c758d5a89fe58f662f6fd85cbdff464da0b7..751e9f8ab3f5429bef0f2ad5067f113fe5ae685b 100644 (file)
@@ -81,21 +81,6 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
                return $templateInstance;
        }
 
-       /**
-        * Load a specified object_registry template into the engine
-        *
-        * @param       $template       The object_registry template we shall load which is
-        *                                              located in 'object_registry' by default
-        * @return      void
-        */
-       public function loadObjectRegistryTemplate ($template = 'object_registry') {
-               // Set template type
-               $this->setTemplateType($this->getConfigInstance()->getConfigEntry('node_object_registry_template_type'));
-
-               // Load the special template
-               $this->loadTemplate($template);
-       }
-
        /**
         * Currently not used
         *
@@ -115,7 +100,7 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
                } // END - if
 
                // Get current XML node name as an array index
-               $nodeName = $this->getStackerInstance()->getNamed('object_registry');
+               $nodeName = $this->getStackerInstance()->getNamed('node_object_registry');
 
                // Is the node name self::OBJECT_TYPE_DATA_NAME?
                if ($nodeName == self::OBJECT_TYPE_DATA_NAME) {
@@ -143,7 +128,7 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
         */
        protected function startObjectRegistry () {
                // Push the node name on the stacker
-               $this->getStackerInstance()->pushNamed('object_registry', 'object-registry');
+               $this->getStackerInstance()->pushNamed('node_object_registry', 'object-registry');
        }
 
        /**
@@ -155,7 +140,7 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
         */
        protected function startObjectList ($objectCount) {
                // Push the node name on the stacker
-               $this->getStackerInstance()->pushNamed('object_registry', 'object-list');
+               $this->getStackerInstance()->pushNamed('node_object_registry', 'object-list');
        }
 
        /**
@@ -165,7 +150,7 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
         */
        protected function startObjectListEntry () {
                // Push the node name on the stacker
-               $this->getStackerInstance()->pushNamed('object_registry', 'object-list');
+               $this->getStackerInstance()->pushNamed('node_object_registry', 'object-list');
        }
 
        /**
@@ -175,7 +160,7 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
         */
        protected function startObjectName () {
                // Push the node name on the stacker
-               $this->getStackerInstance()->pushNamed('object_registry', self::OBJECT_TYPE_DATA_NAME);
+               $this->getStackerInstance()->pushNamed('node_object_registry', self::OBJECT_TYPE_DATA_NAME);
        }
 
        /**
@@ -185,7 +170,7 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
         */
        protected function startObjectRecipientLimitation () {
                // Push the node name on the stacker
-               $this->getStackerInstance()->pushNamed('object_registry', self::OBJECT_TYPE_DATA_RECIPIENT_LIMITATION);
+               $this->getStackerInstance()->pushNamed('node_object_registry', self::OBJECT_TYPE_DATA_RECIPIENT_LIMITATION);
        }
 
        /**
@@ -195,7 +180,7 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
         */
        protected function startObjectMaxSpread () {
                // Push the node name on the stacker
-               $this->getStackerInstance()->pushNamed('object_registry', self::OBJECT_TYPE_DATA_MAX_SPREAD);
+               $this->getStackerInstance()->pushNamed('node_object_registry', self::OBJECT_TYPE_DATA_MAX_SPREAD);
        }
 
        /**
@@ -205,7 +190,7 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
         */
        protected function startObjectProtocol () {
                // Push the node name on the stacker
-               $this->getStackerInstance()->pushNamed('object_registry', self::OBJECT_TYPE_DATA_PROTOCOL);
+               $this->getStackerInstance()->pushNamed('node_object_registry', self::OBJECT_TYPE_DATA_PROTOCOL);
        }
 
        /**
@@ -215,7 +200,7 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
         */
        protected function startObjectRecipientType () {
                // Push the node name on the stacker
-               $this->getStackerInstance()->pushNamed('object_registry', self::OBJECT_TYPE_DATA_RECIPIENT_TYPE);
+               $this->getStackerInstance()->pushNamed('node_object_registry', self::OBJECT_TYPE_DATA_RECIPIENT_TYPE);
        }
 
        /**
@@ -225,7 +210,7 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
         */
        protected function finishObjectRecipientType () {
                // Pop the last entry
-               $this->getStackerInstance()->popNamed('object_registry');
+               $this->getStackerInstance()->popNamed('node_object_registry');
        }
 
        /**
@@ -235,7 +220,7 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
         */
        protected function finishObjectProtocol () {
                // Pop the last entry
-               $this->getStackerInstance()->popNamed('object_registry');
+               $this->getStackerInstance()->popNamed('node_object_registry');
        }
 
        /**
@@ -245,7 +230,7 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
         */
        protected function finishObjectMaxSpread () {
                // Pop the last entry
-               $this->getStackerInstance()->popNamed('object_registry');
+               $this->getStackerInstance()->popNamed('node_object_registry');
        }
 
        /**
@@ -255,7 +240,7 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
         */
        protected function finishObjectRecipientLimitation () {
                // Pop the last entry
-               $this->getStackerInstance()->popNamed('object_registry');
+               $this->getStackerInstance()->popNamed('node_object_registry');
        }
 
        /**
@@ -265,7 +250,7 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
         */
        protected function finishObjectName () {
                // Pop the last entry
-               $this->getStackerInstance()->popNamed('object_registry');
+               $this->getStackerInstance()->popNamed('node_object_registry');
        }
 
        /**
@@ -275,7 +260,7 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
         */
        protected function finishObjectListEntry () {
                // Pop the last entry
-               $this->getStackerInstance()->popNamed('object_registry');
+               $this->getStackerInstance()->popNamed('node_object_registry');
        }
 
        /**
@@ -285,7 +270,7 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
         */
        protected function finishObjectList () {
                // Pop the last entry
-               $this->getStackerInstance()->popNamed('object_registry');
+               $this->getStackerInstance()->popNamed('node_object_registry');
        }
 
        /**
@@ -295,7 +280,7 @@ class XmlObjectRegistryTemplateEngine extends BaseXmlTemplateEngine implements C
         */
        protected function finishObjectRegistry () {
                // Pop the last entry
-               $this->getStackerInstance()->popNamed('object_registry');
+               $this->getStackerInstance()->popNamed('node_object_registry');
        }
 }