Exemple #1
0
 /**
  * Assemble classes
  *
  * @param array $classes Classes
  *
  * @return array
  */
 protected function assembleClasses(array $classes)
 {
     $classes = parent::assembleClasses($classes);
     $classes[] = 'integer';
     return $classes;
 }
Exemple #2
0
 /**
  * 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;
 }
Exemple #3
0
 /**
  * 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;
 }