00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 class Mage_Catalog_Model_Convert_Adapter_Catalog
00029 extends Mage_Dataflow_Model_Convert_Adapter_Abstract
00030 {
00031 public function getResource()
00032 {
00033 if (!$this->_resource) {
00034 $this->_resource = Mage::getResourceSingleton('catalog_entity/convert');
00035 }
00036 return $this->_resource;
00037 }
00038
00039 public function load()
00040 {
00041 $res = $this->getResource();
00042
00043 $this->setData(array(
00044 'Products' => $res->exportProducts(),
00045 'Categories' => $res->exportCategories(),
00046 'Image Gallery' => $res->exportImageGallery(),
00047 'Product Links' => $res->exportProductLinks(),
00048 'Products in Categories' => $res->exportProductsInCategories(),
00049 'Products in Stores' => $res->exportProductsInStores(),
00050 'Attributes' => $res->exportAttributes(),
00051 'Attribute Sets' => $res->exportAttributeSets(),
00052 'Attribute Options' => $res->exportAttributeOptions(),
00053 ));
00054
00055 return $this;
00056 }
00057
00058 public function save()
00059 {
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070 return $this;
00071 }
00072 }