diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-11-15 12:53:32 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-11-15 12:53:32 +0000 |
| commit | e5c765ac713664bdae99dac1c975f4a8b7999c32 (patch) | |
| tree | 6958b6105333f9012250a1e9c14916b94530cf71 /frontends/php/include/classes/graph.inc.php | |
| parent | 600abf07f6952ce7f6a1e8417fb31e3202b55894 (diff) | |
| download | zabbix-e5c765ac713664bdae99dac1c975f4a8b7999c32.tar.gz zabbix-e5c765ac713664bdae99dac1c975f4a8b7999c32.tar.xz zabbix-e5c765ac713664bdae99dac1c975f4a8b7999c32.zip | |
- improved stricted PHP5 supporting (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3486 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes/graph.inc.php')
| -rw-r--r-- | frontends/php/include/classes/graph.inc.php | 123 |
1 files changed, 77 insertions, 46 deletions
diff --git a/frontends/php/include/classes/graph.inc.php b/frontends/php/include/classes/graph.inc.php index f7c2f751..1493a929 100644 --- a/frontends/php/include/classes/graph.inc.php +++ b/frontends/php/include/classes/graph.inc.php @@ -47,29 +47,30 @@ class Graph { - var $period; - var $from; + /* + //var $period; + //var $from; var $stime; - var $sizeX; - var $sizeY; - var $shiftXleft; - var $shiftXright; - var $shiftY; - var $border; + //var $sizeX; + //var $sizeY; + //var $shiftXleft; + //var $shiftXright; + //var $shiftY; + //var $border; var $fullSizeX; var $fullSizeY; - var $m_showWorkPeriod; - var $m_showTriggers; + //var $m_showWorkPeriod; + //var $m_showTriggers; - var $type; /* 0 - simple graph; 1 - stacked graph; */ + //var $type; // 0 - simple graph; 1 - stacked graph; - var $yaxistype; + //var $yaxistype; var $yaxismin; var $yaxismax; - var $yaxisleft; - var $yaxisright; + //var $yaxisleft; + //var $yaxisright; var $m_minY; var $m_maxY; @@ -84,7 +85,7 @@ var $clock; var $count; // Number of items - var $num; + //var $num; var $header; @@ -94,7 +95,67 @@ var $colors; var $im; - var $triggers = array(); + var $triggers = array();*/ + + function Graph($type = GRAPH_TYPE_NORMAL) + { + $this->stime = null; + $this->fullSizeX = null; + $this->fullSizeY = null; + + $this->yaxismin = null; + $this->yaxismax = null; + + $this->m_minY = null; + $this->m_maxY = null; + + $this->data = array(); + + $this->items = null; + + $this->min = null; + $this->max = null; + $this->avg = null; + $this->clock = null; + $this->count = null; + + $this->header = null; + + $this->from_time = null; + $this->to_time = null; + + $this->colors = null; + $this->im = null; + + $this->triggers = array(); + + $this->period=3600; + $this->from=0; + $this->sizeX=900; + $this->sizeY=200; + $this->shiftXleft=10; + $this->shiftXright=60; + $this->shiftY=17; + $this->border=1; + $this->num=0; + $this->type = $type; + $this->yaxistype=GRAPH_YAXIS_TYPE_CALCULATED; + $this->yaxisright=0; + $this->yaxisleft=0; + + $this->m_showWorkPeriod = 1; + $this->m_showTriggers = 1; + +/* if($this->period<=3600) + { + $this->date_format="H:i"; + } + else + { + $this->date_format="m.d H:i"; + }*/ + + } function updateShifts() { @@ -171,36 +232,6 @@ } } - function Graph($type = GRAPH_TYPE_NORMAL) - { - $this->period=3600; - $this->from=0; - $this->sizeX=900; - $this->sizeY=200; - $this->shiftXleft=10; - $this->shiftXright=60; - $this->shiftY=17; - $this->border=1; - $this->num=0; - $this->type = $type; - $this->yaxistype=GRAPH_YAXIS_TYPE_CALCULATED; - $this->yaxisright=0; - $this->yaxisleft=0; - - $this->m_showWorkPeriod = 1; - $this->m_showTriggers = 1; - -/* if($this->period<=3600) - { - $this->date_format="H:i"; - } - else - { - $this->date_format="m.d H:i"; - }*/ - - } - function ShowWorkPeriod($value) { $this->m_showWorkPeriod = $value == 1 ? 1 : 0; |
