public function setValue($field, $value) {
        if (is_array($this->values)) {
            $this->values[$field] = $value;
        } elseif (is_object($this->values)) {
            $this->values->$field = $value;
        }
    }
public function setValue($field, $value) {
        if (is_array($this->values)) {
            $this->values[$field] = $value;
        } elseif (is_object($this->values)) {
            $this->values->$field = $value;
        }
    }
public function setValue ( $ field , $ value ) { if ( is_array ( $ this -> values ) ) { $ this -> values [ $ field ] = $ value ; } elseif ( is_object ( $ this -> values ) ) { $ this -> values -> $ field = $ value ; } }
Change value for a field.
@param string $field
@param mixed $value
Change value for a field .