/** * Set field value * * @param mixed $value field value */ public function set_value($value) { parent::set_value($value); $this->set_attribute('checked', $this->_value ? $this->_value : null); }