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); }
/** * 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; }
/** * getCommonAttributes * * @return array */ protected function getCommonAttributes() { $attributes = parent::getCommonAttributes(); $attributes['value'] = '' !== $attributes['value'] ? parent::sanitizeFloat($attributes['value']) : ''; return $attributes; }
/** * Assemble classes * * @param array $classes Classes * * @return array */ protected function assembleClasses(array $classes) { $classes = parent::assembleClasses($classes); $classes[] = 'symbol'; return $classes; }
/** * Define widget params * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams[self::PARAM_MIN]->setValue(0); }
/** * Assemble validation rules * * @return array */ protected function assembleValidationRules() { $rules = parent::assembleValidationRules(); $rules[] = 'funcCall[validateCouponTotal]'; return $rules; }