From d5cb8e4815409e38b19ed7fb8c52312edfabe1f9 Mon Sep 17 00:00:00 2001 From: AnthorNet Date: Thu, 7 May 2015 22:30:58 +0200 Subject: [PATCH] Add setDebug and getDebug in PHP Publisher --- examples/PHP/EDDN.php | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/examples/PHP/EDDN.php b/examples/PHP/EDDN.php index 3dfa618..5200c86 100644 --- a/examples/PHP/EDDN.php +++ b/examples/PHP/EDDN.php @@ -52,13 +52,14 @@ class EDDN { - static private $_debug = true; + private static $_debug = true; - static private $_gateways = array( - 'http://eddn-gateway.elite-markets.net:8080/upload/' + private static $_gateways = array( + 'http://eddn-gateway.elite-markets.net:8080/upload/', + 'http://eddn-gateway.ed-td.space:8080/upload/' ); - static private $_schemas = array( + private static $_schemas = array( 'commodity-v1' => array( 'production' => 'http://schemas.elite-markets.net/eddn/commodity/1', 'test' => 'http://schemas.elite-markets.net/eddn/commodity/1/test' @@ -176,6 +177,8 @@ class EDDN { return $this->_uploaderID; } + + public function setSoftwareName($value) { $this->_softwareName = $value; @@ -185,6 +188,8 @@ class EDDN { return $this->_softwareName; } + + public function setSoftwareVersion($value) { $this->_softwareVersion = $value; @@ -194,4 +199,15 @@ class EDDN { return $this->_softwareVersion; } + + + public function setDebug($value) + { + self::$_debug = $value; + } + + public function getDebug() + { + return self::$_debug; + } } \ No newline at end of file