function Excluir() { @session_start(); $this->pessoa_logada = $_SESSION['id_pessoa']; @session_write_close(); $backUrl = sprintf('educar_servidor_formacao_lst.php?ref_cod_servidor=%d&ref_cod_instituicao=%d', $this->ref_cod_servidor, $this->ref_cod_instituicao); $obj_permissoes = new clsPermissoes(); $obj_permissoes->permissao_excluir(635, $this->pessoa_logada, 7, $backUrl); $obj = new clsPmieducarServidorFormacao($this->cod_formacao, $this->pessoa_logada, NULL, $this->ref_cod_servidor, $this->nm_formacao, $this->tipo, $this->descricao, NULL, NULL, 0, $this->ref_cod_instituicao); $excluiu = $obj->excluir(); if ($excluiu) { $this->mensagem .= 'Exclusão efetuada com sucesso.<br>'; header('Location:' . $backUrl); die; } $this->mensagem = 'Exclusão não realizada.<br>'; return FALSE; }