public static function checkBox($name, $checked = false, $htmlOptions = array())
{
$label = TbArray::popValue('label', $htmlOptions, false);
$labelOptions = TbArray::popValue('labelOptions', $htmlOptions, array());
$input = parent::checkBox($name, $checked, $htmlOptions);
// todo: refactor to make a single call to createCheckBoxAndRadioButtonLabel
if (TbArray::popValue('useContainer', $htmlOptions, false)) {
return self::tag('div', array('class' => 'checkbox'), self::createCheckBoxAndRadioButtonLabel($label, $input, $labelOptions));
} else {
return self::createCheckBoxAndRadioButtonLabel($label, $input, $labelOptions);
}
}