예제 #1
0
 function Excluir()
 {
     session_start();
     $this->pessoa_logada = $_SESSION['id_pessoa'];
     session_write_close();
     $obj = new clsPublicLogradouro($this->idlog, $this->idtlog, $this->nome, $this->idmun, NULL, 'S', $this->pessoa_logada);
     $excluiu = $obj->excluir();
     if ($excluiu) {
         $this->mensagem .= 'Exclus&atilde;o efetuada com sucesso.<br>';
         header('Location: public_logradouro_lst.php');
         die;
     }
     $this->mensagem = 'Exclus&atilde;o n&atilde;o realizada.<br>';
     echo '<!--\\nErro ao excluir clsPublicLogradouro\\nvalores obrigatorios\\nif( is_numeric( $this->idlog ) )\\n-->';
     return FALSE;
 }