コード例 #1
0
ファイル: Decimal.php プロジェクト: nilshopsahl/hasla.local
 public function getRange()
 {
     $settings = $this->getSettings();
     if (!empty($settings['range'])) {
         return $settings['range'];
     }
     return parent::getRange();
 }
コード例 #2
0
ファイル: DecimalTest.php プロジェクト: nemphys/magento2
 public function testGetRange()
 {
     $this->assertEquals(10, $this->_model->getRange());
 }
コード例 #3
0
ファイル: Decimal.php プロジェクト: xiaoguizhidao/devfashion
 /**
  * Retrieve range for building filter steps
  *
  * @return int
  */
 public function getRange()
 {
     if ($range = intval(Mage::helper('ecommerceteam_sln')->getConfigData('pricerange'))) {
         if ($range > 0) {
             return $range;
         }
     }
     return parent::getRange();
 }