public function setValue($value)
    {
        foreach ((array)$this as $element) {
            if ($value == $element->getElement()->getValue()) {
                $element->getElement()->check();
            } else {
                $element->getElement()->check(false);
            }
        }
    }
public function setValue($value)
    {
        foreach ((array)$this as $element) {
            if ($value == $element->getElement()->getValue()) {
                $element->getElement()->check();
            } else {
                $element->getElement()->check(false);
            }
        }
    }
public function setValue ( $ value ) { foreach ( ( array ) $ this as $ element ) { if ( $ value == $ element -> getElement ( ) -> getValue ( ) ) { $ element -> getElement ( ) -> check ( ) ; } else { $ element -> getElement ( ) -> check ( false ) ; } } }
Sets the element where the value matches to `checked`.

@param mixed $value
Sets the element where the value matches to checked .