29 parent::__construct($factoryElement, $factoryCollection, $escaper,
$data);
31 $this->setExtType(
'checkboxes');
65 if ($this->getValues()) {
66 if (!is_array($this->getValues())) {
71 }
elseif ($this->getOptions() && is_array($this->getOptions())) {
76 if (isset($v[
'value'])) {
77 if (!isset($v[
'label'])) {
78 $v[
'label'] = $v[
'value'];
80 $values[] = [
'label' => $v[
'label'],
'value' => $v[
'value']];
83 $values[] = [
'label' => $v,
'value' => $k];
103 $html =
'<div class=nested>';
142 if ($disabled = $this->
getData(
'disabled')) {
143 if (!is_array($disabled)) {
144 $disabled = [(string)$disabled];
146 foreach ($disabled as $k => $v) {
147 $disabled[$k] = (string)$v;
150 if (in_array((
string)
$value, $disabled)) {
163 if ($onclick = $this->
getData(
'onclick')) {
164 return str_replace(
'$value',
$value, $onclick);
175 if ($onchange = $this->
getData(
'onchange')) {
176 return str_replace(
'$value',
$value, $onchange);
189 $html =
'<div class="field choice admin__field admin__field-option"><input id="' .
$id .
'"';
192 $html .=
' ' .
$attribute .
'="' .
$value .
'" class="admin__control-checkbox"';
195 $html .=
' value="' .
200 '" class="admin__field-label"><span>' .
202 '</span></label></div>' .
getData($key='', $index=null)
elseif(isset( $params[ 'redirect_parent']))
getDataUsingMethod($key, $args=null)