protected function setCheckedBasedOnValue()
    {
        $value = $this->form->getFieldValue($this->name);
        if (is_array($value)) {
            // is this ever used?
            $this->setChecked(in_array($this->getValue(), $value));
        } else {
            $this->setChecked($this->getValue() == $value);
        }
    }
protected function setCheckedBasedOnValue()
    {
        $value = $this->form->getFieldValue($this->name);
        if (is_array($value)) {
            // is this ever used?
            $this->setChecked(in_array($this->getValue(), $value));
        } else {
            $this->setChecked($this->getValue() == $value);
        }
    }
protected function setCheckedBasedOnValue ( ) { $ value = $ this -> form -> getFieldValue ( $ this -> name ) ; if ( is_array ( $ value ) ) { // is this ever used? $ this -> setChecked ( in_array ( $ this -> getValue ( ) , $ value ) ) ; } else { $ this -> setChecked ( $ this -> getValue ( ) == $ value ) ; } }
Set this field to checked if the value matches
Set this field to checked if the value matches