getInputType().'" name="'.$this->getName().'" id="'.$this->getId($option).'" class="'.$this->getCssClass().'" value="'.$option.'" '.$this->getDataAttributes().' '.$this->maybeChecked($value, $default_value, $option).'/>'; } /** * Output checked attribute. * * @param mixed $value * @return string */ public function maybeChecked($value = null, $default_value = null, $option = null) { if (is_array($value) && in_array($option, $value)) { return 'checked="checked"'; } return false; } }