Пример #1
0
 /**
  * @param $format boolean
  * @return Element
  */
 protected function buildInteger($format = true)
 {
     $input = new Input($this->getFieldName(), $format ? Loc::integerToLocale($this->value) : $this->value);
     if ($this->readonly) {
         $input->setAttribute('readonly');
     }
     $input->addClass('integer');
     $input->addClass('autowidth');
     return $input;
 }