diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-09-18 22:14:29 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-09-18 22:14:29 +0000 |
| commit | 2bcea7a935f7ae0d73c21ddd8753e21f439a03d9 (patch) | |
| tree | 9451b22b0763a5a423d952189c165697f63141ca /frontends/php/include/classes.inc.php | |
| parent | 55f771208b27f696ff3006fc83e4c11fd64c5c0f (diff) | |
| download | zabbix-2bcea7a935f7ae0d73c21ddd8753e21f439a03d9.tar.gz zabbix-2bcea7a935f7ae0d73c21ddd8753e21f439a03d9.tar.xz zabbix-2bcea7a935f7ae0d73c21ddd8753e21f439a03d9.zip | |
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@1431 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes.inc.php')
| -rw-r--r-- | frontends/php/include/classes.inc.php | 34 |
1 files changed, 34 insertions, 0 deletions
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) + { + } + } ?> |
