Swat/SwatCheckboxList.php
protected function processValues()
    {
        $form = $this->getForm();
        $data = &$form->getFormData();

        if (isset($data[$this->id])) {
            if (is_array($data[$this->id])) {
                $this->values = $data[$this->id];
            } elseif ($data[$this->id] != '') {
                $this->values = array($data[$this->id]);
            } else {
                $this->values = array();
            }
        } else {
            $this->values = array();
        }
    }
protected function processValues()
    {
        $form = $this->getForm();
        $data = &$form->getFormData();

        if (isset($data[$this->id])) {
            if (is_array($data[$this->id])) {
                $this->values = $data[$this->id];
            } elseif ($data[$this->id] != '') {
                $this->values = array($data[$this->id]);
            } else {
                $this->values = array();
            }
        } else {
            $this->values = array();
        }
    }
protected function processValues ( ) { $ form = $ this -> getForm ( ) ; $ data = & $ form -> getFormData ( ) ; if ( isset ( $ data [ $ this -> id ] ) ) { if ( is_array ( $ data [ $ this -> id ] ) ) { $ this -> values = $ data [ $ this -> id ] ; } elseif ( $ data [ $ this -> id ] != '' ) { $ this -> values = array ( $ data [ $ this -> id ] ) ; } else { $ this -> values = array ( ) ; } } else { $ this -> values = array ( ) ; } }
Processes the values of this checkbox list from raw form data
Processes the values of this checkbox list from raw form data