_resource) { $this->_resource = Mage::getResourceSingleton('catalog_entity/convert'); } return $this->_resource; } public function load() { $res = $this->getResource(); $this->setData(array( 'Products' => $res->exportProducts(), 'Categories' => $res->exportCategories(), 'Image Gallery' => $res->exportImageGallery(), 'Product Links' => $res->exportProductLinks(), 'Products in Categories' => $res->exportProductsInCategories(), 'Products in Stores' => $res->exportProductsInStores(), 'Attributes' => $res->exportAttributes(), 'Attribute Sets' => $res->exportAttributeSets(), 'Attribute Options' => $res->exportAttributeOptions(), )); return $this; } public function save() { /* $res = $this->getResource(); foreach (array('Attributes', 'Attribute Sets', 'Attribute Options', 'Products', 'Categories', '')) $this->setData echo "
".print_r($this->getData(),1)."
"; */ return $this; } }