示例#1
0
 /**
  * Define widget params
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(static::PARAM_E => new \XLite\Model\WidgetParam\Int('Number of digits after the decimal separator', static::getDefaultE()), static::PARAM_THOUSAND_SEPARATOR => new \XLite\Model\WidgetParam\String('Thousand separator', \XLite\Core\Config::getInstance()->Units->thousand_delim), static::PARAM_DECIMAL_SEPARATOR => new \XLite\Model\WidgetParam\String('Decimal separator', \XLite\Core\Config::getInstance()->Units->decimal_delim));
 }
示例#2
0
文件: Float.php 项目: kingsj/core
 /**
  * Define widget params
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(static::PARAM_E => new \XLite\Model\WidgetParam\Int('Number of digits after the decimal separator', 2));
 }