public function setFields (array $fields)
    {
        $this->_fields = array();
        foreach ($fields as $field) {
            $this->append($field);
        }
    }
public function setFields (array $fields)
    {
        $this->_fields = array();
        foreach ($fields as $field) {
            $this->append($field);
        }
    }
public function setFields ( array $ fields ) { $ this -> _fields = array ( ) ; foreach ( $ fields as $ field ) { $ this -> append ( $ field ) ; } }
Set the record fields.

Removes the current set of fields and replaces it with the fields in
argument.

@param  array $fields Fields
@return void
Set the record fields .