/** * @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; }