summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/graphs.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-11 11:23:36 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-11 11:23:36 +0000
commit8c85e6829a61149b9c2178323c91575d6a285162 (patch)
treefc803aff4ce66a5ce0bfa3532724e362a5d33ad3 /frontends/php/include/graphs.inc.php
parenta3a4c01ef782952e749bd8e5116a0b4aa54143f3 (diff)
downloadzabbix-8c85e6829a61149b9c2178323c91575d6a285162.tar.gz
zabbix-8c85e6829a61149b9c2178323c91575d6a285162.tar.xz
zabbix-8c85e6829a61149b9c2178323c91575d6a285162.zip
- added availability to yse '\!' characters in item keys (Eugene)
- added code documentation - fixed fopen error for installation screen git-svn-id: svn://svn.zabbix.com/trunk@4123 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/graphs.inc.php')
-rw-r--r--frontends/php/include/graphs.inc.php44
1 files changed, 40 insertions, 4 deletions
diff --git a/frontends/php/include/graphs.inc.php b/frontends/php/include/graphs.inc.php
index f4c64d7a..1ab73968 100644
--- a/frontends/php/include/graphs.inc.php
+++ b/frontends/php/include/graphs.inc.php
@@ -137,8 +137,11 @@
return DBselect("select * from graphs where templateid=$templateid");
}
- # Add Graph
-
+ /******************************************************************************
+ * *
+ * Comments: !!! Don't forget sync code with C !!! *
+ * *
+ ******************************************************************************/
function add_graph($name,$width,$height,$yaxistype,$yaxismin,$yaxismax,$showworkperiod,$showtriggers,$graphtype=GRAPH_TYPE_NORMAL,$templateid=0)
{
$graphid = get_dbid("graphs","graphid");
@@ -247,8 +250,11 @@
return $result;
}
- # Delete Graph
-
+ /******************************************************************************
+ * *
+ * Comments: !!! Don't forget sync code with C !!! *
+ * *
+ ******************************************************************************/
function delete_graph($graphid)
{
$graph = get_graph_by_graphid($graphid);
@@ -289,6 +295,11 @@
return 0;
}
+ /******************************************************************************
+ * *
+ * Comments: !!! Don't forget sync code with C !!! *
+ * *
+ ******************************************************************************/
function add_item_to_graph($graphid,$itemid,$color,$drawtype,$sortorder,$yaxisside,$calc_fnc,$type,$periods_cnt)
{
$gitemid=get_dbid("graphs_items","gitemid");
@@ -377,6 +388,11 @@
return $result;
}
+ /******************************************************************************
+ * *
+ * Comments: !!! Don't forget sync code with C !!! *
+ * *
+ ******************************************************************************/
function delete_graph_item($gitemid)
{
@@ -414,6 +430,11 @@
return $result;
}
+ /******************************************************************************
+ * *
+ * Comments: !!! Don't forget sync code with C !!! *
+ * *
+ ******************************************************************************/
function delete_template_graphs($hostid, $templateid = null /* array format 'arr[id]=name' */, $unlink_mode = false)
{
$db_graphs = get_graphs_by_hostid($hostid);
@@ -449,6 +470,11 @@
}
}
+ /******************************************************************************
+ * *
+ * Comments: !!! Don't forget sync code with C !!! *
+ * *
+ ******************************************************************************/
function copy_template_graphs($hostid, $templateid = null /* array format 'arr[id]=name' */, $copy_mode = false)
{
if($templateid == null)
@@ -471,6 +497,11 @@
}
}
+ /******************************************************************************
+ * *
+ * Comments: !!! Don't forget sync code with C !!! *
+ * *
+ ******************************************************************************/
function copy_graph_to_host($graphid, $hostid, $copy_mode = false)
{
$db_graph = get_graph_by_graphid($graphid);
@@ -490,6 +521,11 @@
return $result;
}
+ /******************************************************************************
+ * *
+ * Comments: !!! Don't forget sync code with C !!! *
+ * *
+ ******************************************************************************/
function copy_graphitems_for_host($src_graphid,$dist_graphid,$hostid)
{
$src_graphitems=get_graphitems_by_graphid($src_graphid);