Skip to content

Instantly share code, notes, and snippets.

class ConfigExporter extends Mage_Shell_Abstract
{
public function run()
{
$xml = new Varien_Simplexml_Element('<config />');
foreach ($this->getConfigValues($this->getArg('path')) as $item) {
try {
$path = $this->_getConfigPath($item['scope'], $item['scope_id'], $item['path']);
$xml->setNode($path, $item['value']);
} catch (Exception $e) {