field = $field; } public function getView(): CRangeControl { return $this->getRangeControl(); } public function getJavaScript(): string { return $this->getRangeControl()->getPostJS(); } private function getRangeControl(): CRangeControl { if ($this->range_control === null) { $this->range_control = (new CRangeControl($this->field->getName(), (int) $this->field->getValue())) ->setWidth(ZBX_TEXTAREA_MEDIUM_WIDTH) ->setStep($this->field->getStep()) ->setMin($this->field->getMin()) ->setMax($this->field->getMax()) ->setEnabled(!$this->isDisabled()); } return $this->range_control; } }