function Editar() { @session_start(); $this->pessoa_logada = $_SESSION['id_pessoa']; @session_write_close(); $obj_permissoes = new clsPermissoes(); $obj_permissoes->permissao_cadastra(578, $this->pessoa_logada, 7, 'educar_dispensa_disciplina_lst.php?ref_cod_matricula=' . $this->ref_cod_matricula); $obj = new clsPmieducarDispensaDisciplina($this->ref_cod_matricula, $this->ref_cod_serie, $this->ref_cod_escola, $this->ref_cod_disciplina, $this->pessoa_logada, NULL, $this->ref_cod_tipo_dispensa, NULL, NULL, 1, $this->observacao); $editou = $obj->edita(); if ($editou) { $this->mensagem .= 'Edição efetuada com sucesso.<br />'; header('Location: educar_dispensa_disciplina_lst.php?ref_cod_matricula=' . $this->ref_cod_matricula); die; } $this->mensagem = 'Edição não realizada.<br />'; echo "<!--\nErro ao editar clsPmieducarDispensaDisciplina\nvalores obrigatorios\nif( is_numeric( {$this->ref_cod_matricula} ) && is_numeric( {$this->ref_cod_serie} ) && is_numeric( {$this->ref_cod_escola} ) && is_numeric( {$this->ref_cod_disciplina} ) && is_numeric( {$this->pessoa_logada} ) )\n-->"; return FALSE; }