function Editar() { @session_start(); $this->pessoa_logada = $_SESSION['id_pessoa']; @session_write_close(); $obj = new clsCadastroRaca($this->cod_raca, $this->pessoa_logada, null, $this->nm_raca, $this->data_cadastro, $this->data_exclusao, $this->ativo); $editou = $obj->edita(); if ($editou) { $this->mensagem .= "Edição efetuada com sucesso.<br>"; header("Location: educar_raca_lst.php"); die; return true; } $this->mensagem = "Edição não realizada.<br>"; echo "<!--\nErro ao editar clsCadastroRaca\nvalores obrigatorios\nif( is_numeric( {$this->cod_raca} ) )\n-->"; return false; }