]> git.mxchange.org Git - hub.git/commitdiff
Renamed to fit naming convention.
authorRoland Haeder <roland@mxchange.org>
Tue, 18 Feb 2014 21:25:10 +0000 (22:25 +0100)
committerRoland Haeder <roland@mxchange.org>
Tue, 18 Feb 2014 21:25:10 +0000 (22:25 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/main/template/bootstrap/class_XmlDhtBootstrapTemplateEngine.php

index 067290459e63c0e131eac6ecc4b1f93e809b3f6b..7c6810df3a9bc5896f9a0c2ab54a097ad89ce269 100644 (file)
@@ -26,12 +26,12 @@ class XmlDhtBootstrapTemplateEngine extends BaseXmlTemplateEngine implements Com
        /**
         * Some XML nodes must be available for later data extraction
         */
-       const BOOTSTRAP_DATA_SESSION_ID  = 'session-id';
-       const BOOTSTRAP_DATA_NODE_STATUS = 'node-status';
-       const BOOTSTRAP_DATA_NODE_MODE   = 'node-mode';
-       const BOOTSTRAP_DATA_EXTERNAL_IP = 'external-ip';
-       const BOOTSTRAP_DATA_INTERNAL_IP = 'internal-ip';
-       const BOOTSTRAP_DATA_LISTEN_PORT = 'listen-port';
+       const DHT_BOOTSTRAP_DATA_SESSION_ID  = 'session-id';
+       const DHT_BOOTSTRAP_DATA_NODE_STATUS = 'node-status';
+       const DHT_BOOTSTRAP_DATA_NODE_MODE   = 'node-mode';
+       const DHT_BOOTSTRAP_DATA_EXTERNAL_IP = 'external-ip';
+       const DHT_BOOTSTRAP_DATA_INTERNAL_IP = 'internal-ip';
+       const DHT_BOOTSTRAP_DATA_LISTEN_PORT = 'listen-port';
 
        /**
         * Protected constructor
@@ -46,12 +46,12 @@ class XmlDhtBootstrapTemplateEngine extends BaseXmlTemplateEngine implements Com
                $this->subNodes = array(
                        'bootstrap-data',
                        'listener',
-                       self::BOOTSTRAP_DATA_NODE_STATUS,
-                       self::BOOTSTRAP_DATA_NODE_MODE,
-                       self::BOOTSTRAP_DATA_LISTEN_PORT,
-                       self::BOOTSTRAP_DATA_SESSION_ID,
-                       self::BOOTSTRAP_DATA_EXTERNAL_IP,
-                       self::BOOTSTRAP_DATA_INTERNAL_IP,
+                       self::DHT_BOOTSTRAP_DATA_NODE_STATUS,
+                       self::DHT_BOOTSTRAP_DATA_NODE_MODE,
+                       self::DHT_BOOTSTRAP_DATA_LISTEN_PORT,
+                       self::DHT_BOOTSTRAP_DATA_SESSION_ID,
+                       self::DHT_BOOTSTRAP_DATA_EXTERNAL_IP,
+                       self::DHT_BOOTSTRAP_DATA_INTERNAL_IP,
                        'object-type-list',
                );
        }
@@ -138,7 +138,7 @@ class XmlDhtBootstrapTemplateEngine extends BaseXmlTemplateEngine implements Com
         */
        protected function startNodeStatus () {
                // Push the node name on the stacker
-               $this->getStackerInstance()->pushNamed('dht_bootstrap', self::BOOTSTRAP_DATA_NODE_STATUS);
+               $this->getStackerInstance()->pushNamed('dht_bootstrap', self::DHT_BOOTSTRAP_DATA_NODE_STATUS);
        }
 
        /**
@@ -148,7 +148,7 @@ class XmlDhtBootstrapTemplateEngine extends BaseXmlTemplateEngine implements Com
         */
        protected function startNodeMode () {
                // Push the node name on the stacker
-               $this->getStackerInstance()->pushNamed('dht_bootstrap', self::BOOTSTRAP_DATA_NODE_MODE);
+               $this->getStackerInstance()->pushNamed('dht_bootstrap', self::DHT_BOOTSTRAP_DATA_NODE_MODE);
        }
 
        /**
@@ -168,7 +168,7 @@ class XmlDhtBootstrapTemplateEngine extends BaseXmlTemplateEngine implements Com
         */
        protected function startListenPort () {
                // Push the node name on the stacker
-               $this->getStackerInstance()->pushNamed('dht_bootstrap', self::BOOTSTRAP_DATA_LISTEN_PORT);
+               $this->getStackerInstance()->pushNamed('dht_bootstrap', self::DHT_BOOTSTRAP_DATA_LISTEN_PORT);
        }
 
        /**
@@ -178,7 +178,7 @@ class XmlDhtBootstrapTemplateEngine extends BaseXmlTemplateEngine implements Com
         */
        protected function startSessionId () {
                // Push the node name on the stacker
-               $this->getStackerInstance()->pushNamed('dht_bootstrap', self::BOOTSTRAP_DATA_SESSION_ID);
+               $this->getStackerInstance()->pushNamed('dht_bootstrap', self::DHT_BOOTSTRAP_DATA_SESSION_ID);
        }
 
        /**
@@ -188,7 +188,7 @@ class XmlDhtBootstrapTemplateEngine extends BaseXmlTemplateEngine implements Com
         */
        protected function startExternalIp () {
                // Push the node name on the stacker
-               $this->getStackerInstance()->pushNamed('dht_bootstrap', self::BOOTSTRAP_DATA_EXTERNAL_IP);
+               $this->getStackerInstance()->pushNamed('dht_bootstrap', self::DHT_BOOTSTRAP_DATA_EXTERNAL_IP);
        }
 
        /**
@@ -198,7 +198,7 @@ class XmlDhtBootstrapTemplateEngine extends BaseXmlTemplateEngine implements Com
         */
        protected function startInternalIp () {
                // Push the node name on the stacker
-               $this->getStackerInstance()->pushNamed('dht_bootstrap', self::BOOTSTRAP_DATA_INTERNAL_IP);
+               $this->getStackerInstance()->pushNamed('dht_bootstrap', self::DHT_BOOTSTRAP_DATA_INTERNAL_IP);
        }
 
        /**