src/TerminalObject/Dynamic/Checkbox/RadioGroup.php
public function toggleCurrent()
    {
        list($checkbox, $checkbox_key) = $this->getCurrent();

        $checkbox->setChecked(!$checkbox->isChecked());

        foreach ($this->checkboxes as $key => $checkbox) {
            if ($key == $checkbox_key) {
                continue;
            }

            $checkbox->setChecked(false);
        }
    }
public function toggleCurrent()
    {
        list($checkbox, $checkbox_key) = $this->getCurrent();

        $checkbox->setChecked(!$checkbox->isChecked());

        foreach ($this->checkboxes as $key => $checkbox) {
            if ($key == $checkbox_key) {
                continue;
            }

            $checkbox->setChecked(false);
        }
    }
public function toggleCurrent ( ) { list ( $ checkbox , $ checkbox_key ) = $ this -> getCurrent ( ) ; $ checkbox -> setChecked ( ! $ checkbox -> isChecked ( ) ) ; foreach ( $ this -> checkboxes as $ key => $ checkbox ) { if ( $ key == $ checkbox_key ) { continue ; } $ checkbox -> setChecked ( false ) ; } }
Toggle the currently selected option, uncheck all of the others
Toggle the currently selected option uncheck all of the others