protected function _html() { $checkbox = HTML::makeCheckboxSingle($this->input_name, $this->caption, $this->value)->addClass($this->getCSSClass(__CLASS__)); if ($this->disabled) { $checkbox->child(0)->child(1)->disabled = true; if ($this->value) { $checkbox->child(0)->child(0)->value = self::TRUE_VALUE; } } return $checkbox; }