/** * Prepare and return array of import entities ids and their names * * @return array */ public function toOptionArray() { $options = array(); $entities = Mage_ImportExport_Model_Import::CONFIG_KEY_ENTITIES; $comboOptions = Mage_ImportExport_Model_Config::getModelsComboOptions($entities); foreach ($comboOptions as $option) { $options[] = $option; } return $options; }
/** * Prepare and return array of available export file formats. * * @return array */ public function toOptionArray() { $formats = Mage_ImportExport_Model_Export::CONFIG_KEY_FORMATS; return Mage_ImportExport_Model_Config::getModelsComboOptions($formats); }
/** * Prepare and return array of export entities ids and their names * * @return array */ public function toOptionArray() { return Mage_ImportExport_Model_Config::getModelsComboOptions(Mage_ImportExport_Model_Export::CONFIG_KEY_ENTITIES, true); }