コード例 #1
0
ファイル: DataTest.php プロジェクト: relue/magento2
 public function testGetOldValue()
 {
     $this->_model->setPath(self::SAMPLE_CONFIG_PATH);
     $this->assertEquals(self::SAMPLE_VALUE, $this->_model->getOldValue());
     $this->_model->setWebsiteCode('base');
     $this->assertEquals(self::SAMPLE_VALUE, $this->_model->getOldValue());
     $this->_model->setStoreCode('default');
     $this->assertEquals(self::SAMPLE_VALUE, $this->_model->getOldValue());
 }
コード例 #2
0
ファイル: Encrypted.php プロジェクト: cnglobal-sl/caterez
 /**
  * Get & decrypt old value from configuration
  *
  * @return string
  */
 public function getOldValue()
 {
     return Mage::helper('core')->decrypt(parent::getOldValue());
 }
コード例 #3
0
ファイル: Encrypted.php プロジェクト: natxetee/magento2
 /**
  * Get & decrypt old value from configuration
  *
  * @return string
  */
 public function getOldValue()
 {
     return Mage::helper('Mage_Core_Helper_Data')->decrypt(parent::getOldValue());
 }