public static function checkBox($name, $checked = false, $htmlOptions = array())
    {
        $label = TbArray::popValue('label', $htmlOptions, false);
        $labelOptions = TbArray::popValue('labelOptions', $htmlOptions, array());
        self::addCssClass('checkbox', $labelOptions);
        $input = parent::checkBox($name, $checked, $htmlOptions);
        return self::createCheckBoxAndRadioButtonLabel($label, $input, $labelOptions);
    }
public static function checkBox($name, $checked = false, $htmlOptions = array())
    {
        $label = TbArray::popValue('label', $htmlOptions, false);
        $labelOptions = TbArray::popValue('labelOptions', $htmlOptions, array());
        self::addCssClass('checkbox', $labelOptions);
        $input = parent::checkBox($name, $checked, $htmlOptions);
        return self::createCheckBoxAndRadioButtonLabel($label, $input, $labelOptions);
    }
public static function checkBox ( $ name , $ checked = false , $ htmlOptions = array ( ) ) { $ label = TbArray :: popValue ( 'label' , $ htmlOptions , false ) ; $ labelOptions = TbArray :: popValue ( 'labelOptions' , $ htmlOptions , array ( ) ) ; self :: addCssClass ( 'checkbox' , $ labelOptions ) ; $ input = parent :: checkBox ( $ name , $ checked , $ htmlOptions ) ; return self :: createCheckBoxAndRadioButtonLabel ( $ label , $ input , $ labelOptions ) ; }
Generates a check box.
@param string $name the input name.
@param boolean $checked whether the check box is checked.
@param array $htmlOptions additional HTML attributes.
@return string the generated check box.
Generates a check box .