function Editar() { @session_start(); $this->pessoa_logada = $_SESSION['id_pessoa']; @session_write_close(); $obj_permissoes = new clsPermissoes(); $obj_permissoes->permissao_cadastra(595, $this->pessoa_logada, 11, "educar_acervo_editora_lst.php"); $this->cep = idFederal2int($this->cep); $obj = new clsPmieducarAcervoEditora($this->cod_acervo_editora, null, $this->pessoa_logada, $this->ref_idtlog, $this->ref_sigla_uf, $this->nm_editora, $this->cep, $this->cidade, $this->bairro, $this->logradouro, $this->numero, $this->telefone, $this->ddd_telefone, null, null, 1, $this->ref_cod_biblioteca); $editou = $obj->edita(); if ($editou) { $this->mensagem .= "Edição efetuada com sucesso.<br>"; header("Location: educar_acervo_editora_lst.php"); die; return true; } $this->mensagem = "Edição não realizada.<br>"; echo "<!--\nErro ao editar clsPmieducarAcervoEditora\nvalores obrigatórios\nif( is_numeric( {$this->cod_acervo_editora} ) && is_numeric( {$this->pessoa_logada} ) )\n-->"; return false; }