function Editar() { @session_start(); $this->pessoa_logada = $_SESSION['id_pessoa']; @session_write_close(); if ($this->professor == 'N') { $this->professor = "0"; } elseif ($this->professor == 'S') { $this->professor = "1"; } $obj_permissoes = new clsPermissoes(); $obj_permissoes->permissao_cadastra(634, $this->pessoa_logada, 3, "educar_funcao_lst.php"); $obj = new clsPmieducarFuncao($this->cod_funcao, $this->pessoa_logada, null, $this->nm_funcao, $this->abreviatura, $this->professor, null, null, 1, $this->ref_cod_instituicao); $editou = $obj->edita(); if ($editou) { $this->mensagem .= "Edição efetuada com sucesso.<br>"; header("Location: educar_funcao_lst.php"); die; return true; } $this->mensagem = "Edição não realizada.<br>"; echo "<!--\nErro ao editar clsPmieducarFuncao\nvalores obrigatorios\nif( is_numeric( {$this->cod_funcao} ) && is_numeric( {$this->pessoa_logada} ) )\n-->"; return false; }