function Editar() { @session_start(); $this->pessoa_logada = $_SESSION['id_pessoa']; @session_write_close(); $obj_permissoes = new clsPermissoes(); $obj_permissoes->permissao_cadastra(608, $this->pessoa_logada, 11, "educar_fonte_lst.php"); $obj = new clsPmieducarFonte($this->cod_fonte, $this->pessoa_logada, $this->pessoa_logada, $this->nm_fonte, $this->descricao, $this->data_cadastro, $this->data_exclusao, $this->ativo, $this->ref_cod_biblioteca); $editou = $obj->edita(); if ($editou) { $this->mensagem .= "Edição efetuada com sucesso.<br>"; header("Location: educar_fonte_lst.php"); die; return true; } $this->mensagem = "Edição não realizada.<br>"; echo "<!--\nErro ao editar clsPmieducarFonte\nvalores obrigatorios\nif( is_numeric( {$this->cod_fonte} ) && is_numeric( {$this->ref_usuario_exc} ) )\n-->"; return false; }