summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/classes.inc.php')
-rw-r--r--frontends/php/include/classes.inc.php34
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)
+ {
+ }
+ }
?>