From 2bcea7a935f7ae0d73c21ddd8753e21f439a03d9 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sat, 18 Sep 2004 22:14:29 +0000 Subject: Minor changes. git-svn-id: svn://svn.zabbix.com/trunk@1431 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/classes.inc.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'frontends/php/include/classes.inc.php') diff --git a/frontends/php/include/classes.inc.php b/frontends/php/include/classes.inc.php index 7973e92e..b81bcd73 100644 --- a/frontends/php/include/classes.inc.php +++ b/frontends/php/include/classes.inc.php @@ -632,4 +632,38 @@ ImageDestroy($this->im); } } + + class Item + { + var $data; + + function Item($itemid=0) + { + if($itemid!=0) + { + $i=get_item_by_itemid($itemid); + if($i) + { + $data=$i; + } + else unset($data); + } + } + + function GetData($element) + { + if(isset($this->data)) + { + return $this->data[$element]; + } + else + { + return false; + } + } + + function SetData($element) + { + } + } ?> -- cgit