function Novo() { @session_start(); $this->pessoa_logada = $_SESSION['id_pessoa']; @session_write_close(); $obj_permissoes = new clsPermissoes(); $obj_permissoes->permissao_cadastra(634, $this->pessoa_logada, 3, "educar_funcao_lst.php"); if ($this->professor == 'N') { $this->professor = "0"; } elseif ($this->professor == 'S') { $this->professor = "1"; } $obj = new clsPmieducarFuncao(null, null, $this->pessoa_logada, $this->nm_funcao, $this->abreviatura, $this->professor, null, null, 1, $this->ref_cod_instituicao); $cadastrou = $obj->cadastra(); if ($cadastrou) { $this->mensagem .= "Cadastro efetuado com sucesso.<br>"; header("Location: educar_funcao_lst.php"); die; return true; } $this->mensagem = "Cadastro não realizado.<br>"; echo "<!--\nErro ao cadastrar clsPmieducarFuncao\nvalores obrigatorios\nis_numeric( {$this->pessoa_logada} ) && is_string( {$this->nm_funcao} ) && is_string( {$this->abreviatura} ) && is_numeric( {$this->professor} )\n-->"; return false; }