function Excluir() { @session_start(); $this->pessoa_logada = $_SESSION['id_pessoa']; @session_write_close(); $obj_permissoes = new clsPermissoes(); $permite_excluir = $obj_permissoes->permissao_excluir(829, $this->pessoa_logada, 3, "", true); if (!$permite_excluir) { echo "<script>window.parent.fechaExpansivel( '{$_GET['div']}');</script>"; die; } $obj = new clsPmieducarSubnivel($this->cod_nivel, $this->pessoa_logada, $this->pessoa_logada); $excluiu = $obj->excluirTodos(); if ($excluiu) { $this->mensagem .= "Exclusão efetuada com sucesso.<br>"; header("location:educar_categoria_nivel_det.php?cod_categoria_nivel={$this->ref_cod_categoria_nivel}"); die; return true; } $this->mensagem = "Exclusão não realizada.<br>"; echo "<!--\nErro ao excluir clsPmieducarNivel\nvalores obrigatorios\nif( is_numeric( {$this->cod_nivel} ) && is_numeric( {$this->ref_usuario_exc} ) )\n-->"; return false; }