function Excluir() { @session_start(); $this->pessoa_logada = $_SESSION['id_pessoa']; @session_write_close(); $obj_permissoes = new clsPermissoes(); $obj_permissoes->permissao_excluir(561, $this->pessoa_logada, 7, 'educar_escola_lst.php'); $obj = new clsPmieducarEscolaAnoLetivo($this->ref_ref_cod_escola, $this->ref_ano, NULL, $this->pessoa_logada, NULL, NULL, NULL, 0); $excluiu = $obj->excluir(); if ($excluiu) { $obj = new clsPmieducarAnoLetivoModulo($this->ref_ano, $this->ref_ref_cod_escola); $excluiu1 = $obj->excluirTodos(); if ($excluiu1) { $this->mensagem .= 'Exclusão efetuada com sucesso.<br />'; header('Location: educar_escola_lst.php'); die; } $this->mensagem = 'Exclusão não realizada.<br />'; return FALSE; } $this->mensagem = 'Exclusão não realizada.<br />'; return FALSE; }