/** * Assemble classes * * @param array $classes Classes * * @return array */ protected function assembleClasses(array $classes) { $classes = parent::assembleClasses($classes); $classes[] = 'integer'; return $classes; }
/** * getCommonAttributes * * @return array */ protected function getCommonAttributes() { $attributes = parent::getCommonAttributes(); $attributes['data-decimal-delim'] = $this->getParam(self::PARAM_DECIMAL_SEPARATOR); $attributes['data-thousand-delim'] = $this->getParam(self::PARAM_THOUSAND_SEPARATOR); $e = $this->getE(); if (isset($e)) { $attributes['data-e'] = $e; } return $attributes; }
/** * getCommonAttributes * * @return array */ protected function getCommonAttributes() { $attributes = parent::getCommonAttributes(); $attributes['data-decimal-delim'] = \XLite\Core\Config::getInstance()->General->decimal_delim; $attributes['data-thousand-delim'] = \XLite\Core\Config::getInstance()->General->thousand_delim; $e = $this->getE(); if (isset($e)) { $attributes['data-e'] = $e; } return $attributes; }