src/Framework/Form/Element/CheckboxSet.php
public function setValue($value)
    {
        $this->checked = (!is_array($value)) ? [$value] : $value;
        if ((count($this->checked) > 0) && ($this->hasChildren())) {
            foreach ($this->childNodes as $child) {
                if ($child instanceof Input\Checkbox) {
                    if (in_array($child->getValue(), $this->checked)) {
                        $child->check();
                    } else {
                        $child->uncheck();
                    }
                }
            }
        }
        return $this;
    }
public function setValue($value)
    {
        $this->checked = (!is_array($value)) ? [$value] : $value;
        if ((count($this->checked) > 0) && ($this->hasChildren())) {
            foreach ($this->childNodes as $child) {
                if ($child instanceof Input\Checkbox) {
                    if (in_array($child->getValue(), $this->checked)) {
                        $child->check();
                    } else {
                        $child->uncheck();
                    }
                }
            }
        }
        return $this;
    }
public function setValue ( $ value ) { $ this -> checked = ( ! is_array ( $ value ) ) ? [ $ value ] : $ value ; if ( ( count ( $ this -> checked ) > 0 ) && ( $ this -> hasChildren ( ) ) ) { foreach ( $ this -> childNodes as $ child ) { if ( $ child instanceof Input \ Checkbox ) { if ( in_array ( $ child -> getValue ( ) , $ this -> checked ) ) { $ child -> check ( ) ; } else { $ child -> uncheck ( ) ; } } } } return $ this ; }
Set the checked value of the checkbox form elements

@param  $value
@return CheckboxSet
Set the checked value of the checkbox form elements