示例#1
0
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams[static::PARAM_E]->setValue(1);
     $this->widgetParams[static::PARAM_MIN]->setValue(0);
     $this->widgetParams[static::PARAM_MAX]->setValue(999);
 }
示例#2
0
 /**
  * Assemble classes
  *
  * @param array $classes Classes
  *
  * @return array
  */
 protected function assembleClasses(array $classes)
 {
     $list = array_diff(parent::assembleClasses($classes), array('float'));
     $list[] = 'with-infinity';
     $list[] = 'float-with-infinity';
     return $list;
 }
示例#3
0
 /**
  * getCommonAttributes
  *
  * @return array
  */
 protected function getCommonAttributes()
 {
     $attributes = parent::getCommonAttributes();
     $attributes['value'] = '' !== $attributes['value'] ? parent::sanitizeFloat($attributes['value']) : '';
     return $attributes;
 }
示例#4
0
文件: Symbol.php 项目: kingsj/core
 /**
  * Assemble classes
  *
  * @param array $classes Classes
  *
  * @return array
  */
 protected function assembleClasses(array $classes)
 {
     $classes = parent::assembleClasses($classes);
     $classes[] = 'symbol';
     return $classes;
 }
示例#5
0
 /**
  * Define widget params
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams[self::PARAM_MIN]->setValue(0);
 }
示例#6
0
 /**
  * Assemble validation rules
  *
  * @return array
  */
 protected function assembleValidationRules()
 {
     $rules = parent::assembleValidationRules();
     $rules[] = 'funcCall[validateCouponTotal]';
     return $rules;
 }