1: <?php
2:
3: /**
4: * ShipSync
5: *
6: * @category IllApps
7: * @package IllApps_Shipsync
8: * @copyright Copyright (c) 2014 EcoMATICS, Inc. DBA IllApps (http://www.illapps.com)
9: * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10: */
11:
12: /**
13: * IllApps_Shipsync_Model_Sales_Order_Shipment_Package
14: */
15: class IllApps_Shipsync_Model_Sales_Order_Shipment_Package extends Varien_Object
16: {
17: public function collectItems()
18: {
19: $jsonItems = $this->getActivePackage()->getPackageItems();
20:
21: foreach(json_decode($jsonItems, true) as $data)
22: {
23: $_items[] = Mage::getModel('shipsync/sales_order_shipment_package_item')->collectItemAttributes($data);
24: }
25:
26: $this->setAllItems($_items);
27:
28: return $this;
29: }
30: }
31: