diff options
Diffstat (limited to 'inc/Inventory.inc')
-rw-r--r-- | inc/Inventory.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/Inventory.inc b/inc/Inventory.inc index 20c63bf..024a4fe 100644 --- a/inc/Inventory.inc +++ b/inc/Inventory.inc @@ -45,7 +45,11 @@ class Inventory { $inv = self::get(); $inv->_removeItem($item); } - + + public function addToXML($root) { + foreach($this->items as $item) + $item->addToXML($root); + } } ?> |