Module: nagvis
Branch: master
Commit: 90455138a2eca5cd8e7c4a9f3f0c2d8a58535f56
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=90455138a2eca5cd8e7c4a9f3f0c2d8a58535f56

Author: Roman Kyrylych <[email protected]>
Date:   Thu Jul 30 13:19:24 2009 +0300

gmap: Added default values for nagvis objects constructors to avoid warnings

Signed-off-by: Roman Kyrylych <[email protected]>

---

 share/netmap/Host.php         |    2 +-
 share/netmap/HostGroup.php    |    2 +-
 share/netmap/Service.php      |    2 +-
 share/netmap/ServiceGroup.php |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/share/netmap/Host.php b/share/netmap/Host.php
index 1adc837..20da689 100644
--- a/share/netmap/Host.php
+++ b/share/netmap/Host.php
@@ -27,7 +27,7 @@ class Host
        public $address;
        public $alias;
 
-       public function __construct($name, $address, $alias = '')
+       public function __construct($name = '', $address = '', $alias = '')
        {
                $this->name = $name;
                $this->address = $address;
diff --git a/share/netmap/HostGroup.php b/share/netmap/HostGroup.php
index 4dbc663..d80ee34 100644
--- a/share/netmap/HostGroup.php
+++ b/share/netmap/HostGroup.php
@@ -26,7 +26,7 @@ class HostGroup
        public $name;
        public $alias;
 
-       public function __construct($name, $alias = '')
+       public function __construct($name = '', $alias = '')
        {
                $this->name = $name;
                $this->alias = $alias;
diff --git a/share/netmap/Service.php b/share/netmap/Service.php
index f5e9c3c..666e21d 100644
--- a/share/netmap/Service.php
+++ b/share/netmap/Service.php
@@ -26,7 +26,7 @@ class Service
        public $host;
        public $description;
 
-       public function __construct($host, $description)
+       public function __construct($host = '', $description = '')
        {
                $this->host = $host;
                $this->description= $description;
diff --git a/share/netmap/ServiceGroup.php b/share/netmap/ServiceGroup.php
index e7e2905..c2f5a24 100644
--- a/share/netmap/ServiceGroup.php
+++ b/share/netmap/ServiceGroup.php
@@ -26,7 +26,7 @@ class ServiceGroup
        public $name;
        public $alias;
 
-       public function __construct($name, $alias = '')
+       public function __construct($name = '', $alias = '')
        {
                $this->name = $name;
                $this->alias = $alias;


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to