public function setFromArray(array $fields)
    {
        foreach($fields as $key => $value)
        {
                $this->fields[$key] = $value;
                unset($key);
                unset($value);
        }
    }
public function setFromArray(array $fields)
    {
        foreach($fields as $key => $value)
        {
                $this->fields[$key] = $value;
                unset($key);
                unset($value);
        }
    }
public function setFromArray ( array $ fields ) { foreach ( $ fields as $ key => $ value ) { $ this -> fields [ $ key ] = $ value ; unset ( $ key ) ; unset ( $ value ) ; } }
Sets the fields on the object.

@param array $fields array of fields returned from SQL select result set

@return void
Sets the fields on the object .