This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |