Exemple #1
0
 /**
  * Enter description here ...
  * @param Varien_Object $result
  * @param Mage_Core_Model_Config_Data $configData
  * @param array $paths
  */
 public function checkIfPathsChanged($result, $configData, $paths)
 {
     $storeId = $configData->getStoreCode() ? Mage::app()->getStore($configData->getStoreCode())->getId() : 0;
     $this->_changingValues[$storeId . '/' . $configData->getPath()] = $configData->getValue();
     if (!$result->getIsChanged() && in_array($configData->getPath(), $paths) && Mage::getStoreConfig($configData->getPath(), $storeId) != $configData->getValue()) {
         $result->setIsChanged(true);
     }
 }
 /**
  * @todo cdata export
  *
  * @param \Mage_Core_Model_Config_Data $item
  *
  * @return string
  */
 protected function _getNodeValue(\Mage_Core_Model_Config_Data $item)
 {
     $value = $this->_multiLineToSingleLine($item->getValue());
     $return = 'config:set --scope=' . $item->getScope() . ' --scope_id=' . $item->getScopeId() . ' "' . $item->getPath() . '" "' . $value . '"';
     return $return;
 }