public function checkboxElement($name, $label = null, $value = 1, $checked = null, $inline = false, array $options = [])
    {
        $label = $label === false ? null : $this->getLabelTitle($label, $name);

        $labelOptions = $inline ? ['class' => 'checkbox-inline'] : [];
        $inputElement = $this->form->checkbox($name, $value, $checked, $options);
        $labelElement = '<label ' . $this->html->attributes($labelOptions) . '>' . $inputElement . $label . '</label>';

        return $inline ? $labelElement : '<div class="checkbox">' . $labelElement . '</div>';
    }
public function checkboxElement($name, $label = null, $value = 1, $checked = null, $inline = false, array $options = [])
    {
        $label = $label === false ? null : $this->getLabelTitle($label, $name);

        $labelOptions = $inline ? ['class' => 'checkbox-inline'] : [];
        $inputElement = $this->form->checkbox($name, $value, $checked, $options);
        $labelElement = '<label ' . $this->html->attributes($labelOptions) . '>' . $inputElement . $label . '</label>';

        return $inline ? $labelElement : '<div class="checkbox">' . $labelElement . '</div>';
    }
public function checkboxElement ( $ name , $ label = null , $ value = 1 , $ checked = null , $ inline = false , array $ options = [ ] ) { $ label = $ label === false ? null : $ this -> getLabelTitle ( $ label , $ name ) ; $ labelOptions = $ inline ? [ 'class' => 'checkbox-inline' ] : [ ] ; $ inputElement = $ this -> form -> checkbox ( $ name , $ value , $ checked , $ options ) ; $ labelElement = '<label ' . $ this -> html -> attributes ( $ labelOptions ) . '>' . $ inputElement . $ label . '</label>' ; return $ inline ? $ labelElement : '<div class="checkbox">' . $ labelElement . '</div>' ; }
Create a single Bootstrap checkbox element.

@param  string   $name
@param  string   $label
@param  string   $value
@param  bool     $checked
@param  bool     $inline
@param  array    $options
@return string
Create a single Bootstrap checkbox element .