From 7de5ec3590e22267b0761d6acabe81a63272e393 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 18 Feb 2014 22:25:10 +0100 Subject: [PATCH] Renamed to fit naming convention. Signed-off-by: Roland Haeder --- .../class_XmlDhtBootstrapTemplateEngine.php | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/application/hub/main/template/bootstrap/class_XmlDhtBootstrapTemplateEngine.php b/application/hub/main/template/bootstrap/class_XmlDhtBootstrapTemplateEngine.php index 067290459..7c6810df3 100644 --- a/application/hub/main/template/bootstrap/class_XmlDhtBootstrapTemplateEngine.php +++ b/application/hub/main/template/bootstrap/class_XmlDhtBootstrapTemplateEngine.php @@ -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); } /** -- 2.39.5