protected function getStdEditControl($readOnly = false) { $checkbox = new InputCheckboxControl(null, $this->name); $checkbox->setValue(1)->setChecked($this->value)->setReadOnly($readOnly); if ($this->validation != '') { $checkbox->addCssClass($this->validation); } return $checkbox; }