public function radios($name, $label = null, $choices = [], $checkedValue = null, $inline = false, array $options = [])
    {
        $elements = '';

        foreach ($choices as $value => $choiceLabel) {
            $checked = $value === $checkedValue;

            $elements .= $this->radioElement($name, $choiceLabel, $value, $checked, $inline, $options);
        }

        $wrapperOptions = $this->isHorizontal() ? ['class' => $this->getRightColumnClass()] : [];
        $wrapperElement = '<div' . $this->html->attributes($wrapperOptions) . '>' . $elements . $this->getFieldError($name) . $this->getHelpText($name, $options) . '</div>';

        return $this->getFormGroup($name, $label, $wrapperElement);
    }
public function radios($name, $label = null, $choices = [], $checkedValue = null, $inline = false, array $options = [])
    {
        $elements = '';

        foreach ($choices as $value => $choiceLabel) {
            $checked = $value === $checkedValue;

            $elements .= $this->radioElement($name, $choiceLabel, $value, $checked, $inline, $options);
        }

        $wrapperOptions = $this->isHorizontal() ? ['class' => $this->getRightColumnClass()] : [];
        $wrapperElement = '<div' . $this->html->attributes($wrapperOptions) . '>' . $elements . $this->getFieldError($name) . $this->getHelpText($name, $options) . '</div>';

        return $this->getFormGroup($name, $label, $wrapperElement);
    }
public function radios ( $ name , $ label = null , $ choices = [ ] , $ checkedValue = null , $ inline = false , array $ options = [ ] ) { $ elements = '' ; foreach ( $ choices as $ value => $ choiceLabel ) { $ checked = $ value === $ checkedValue ; $ elements .= $ this -> radioElement ( $ name , $ choiceLabel , $ value , $ checked , $ inline , $ options ) ; } $ wrapperOptions = $ this -> isHorizontal ( ) ? [ 'class' => $ this -> getRightColumnClass ( ) ] : [ ] ; $ wrapperElement = '<div' . $ this -> html -> attributes ( $ wrapperOptions ) . '>' . $ elements . $ this -> getFieldError ( $ name ) . $ this -> getHelpText ( $ name , $ options ) . '</div>' ; return $ this -> getFormGroup ( $ name , $ label , $ wrapperElement ) ; }
Create a collection of Bootstrap radio inputs.

@param  string  $name
@param  string  $label
@param  array   $choices
@param  string  $checkedValue
@param  bool    $inline
@param  array   $options
@return string
Create a collection of Bootstrap radio inputs .