/**
  * Edita os dados de um registro
  *
  * @return bool
  */
 function edita()
 {
     if (is_numeric($this->ref_cod_portaria) && is_numeric($this->ref_cod_campo) && is_numeric($this->ref_ref_cod_tipo_portaria) && is_numeric($this->ref_tipo) && is_numeric($this->ref_sequencial)) {
         $db = new clsBanco();
         $set = "";
         if (is_string($this->valor)) {
             $set .= "{$gruda}valor = '{$this->valor}'";
             $gruda = ", ";
         }
         if ($set) {
             $db->Consulta("UPDATE {$this->_tabela} SET {$set} WHERE ref_cod_portaria = '{$this->ref_cod_portaria}' AND ref_cod_campo = '{$this->ref_cod_campo}' AND ref_ref_cod_tipo_portaria = '{$this->ref_ref_cod_tipo_portaria}' AND ref_tipo = '{$this->ref_tipo}' AND ref_sequencial = '{$this->ref_sequencial}'");
             return $db->Linhas_Afetadas();
             //return true;
         }
     }
     return false;
 }