original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Set this field to checked if the value matches
docstring_tokens: Set this field to checked if the value matches