예제 #1
0
 function Editar()
 {
     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, NULL, 'U', NULL, NULL, 'I', NULL, 9);
     $editou = $obj->edita();
     if ($editou) {
         $this->mensagem .= 'Edi&ccedil;&atilde;o efetuada com sucesso.<br>';
         header('Location: public_logradouro_lst.php');
         die;
     }
     $this->mensagem = 'Edi&ccedil;&atilde;o n&atilde;o realizada.<br>';
     echo "<!--\nErro ao editar clsPublicLogradouro\nvalores obrigatorios\nif( is_numeric( {$this->idlog} ) )\n-->";
     return FALSE;
 }