public function getCheckboxes(array $options=[]) {
		if(isset($options['choices']))
			$choices = $options['choices'];
		else
			$choices = $this->getChoices();

		$checkboxes = [];
		foreach($choices as $k=>$v) {
			$checkbox_options = $options;
			$checkbox_options['value'] = $k;
			$checkbox_options['widget_name'] = $v;
			$checkboxes[$k] = $this->getCheckbox($v, $checkbox_options);
		}
		return $checkboxes;
	}
public function getCheckboxes(array $options=[]) {
		if(isset($options['choices']))
			$choices = $options['choices'];
		else
			$choices = $this->getChoices();

		$checkboxes = [];
		foreach($choices as $k=>$v) {
			$checkbox_options = $options;
			$checkbox_options['value'] = $k;
			$checkbox_options['widget_name'] = $v;
			$checkboxes[$k] = $this->getCheckbox($v, $checkbox_options);
		}
		return $checkboxes;
	}
public function getCheckboxes ( array $ options = [ ] ) { if ( isset ( $ options [ 'choices' ] ) ) $ choices = $ options [ 'choices' ] ; else $ choices = $ this -> getChoices ( ) ; $ checkboxes = [ ] ; foreach ( $ choices as $ k => $ v ) { $ checkbox_options = $ options ; $ checkbox_options [ 'value' ] = $ k ; $ checkbox_options [ 'widget_name' ] = $ v ; $ checkboxes [ $ k ] = $ this -> getCheckbox ( $ v , $ checkbox_options ) ; } return $ checkboxes ; }
Return checkboxes.
@param  array $options
@return array
Return checkboxes .