function Novo() { @session_start(); $this->pessoa_logada = $_SESSION['id_pessoa']; @session_write_close(); // echo "null, null, {$this->pessoa_logada}, {$this->nm_tipo}, {$this->descricao}, null, null, 1, {$this->ref_cod_escola}, {$this->ref_cod_instituicao}<br>"; $obj = new clsPmieducarTipoDispensa(null, null, $this->pessoa_logada, $this->nm_tipo, $this->descricao, null, null, 1, $this->ref_cod_instituicao); $cadastrou = $obj->cadastra(); if ($cadastrou) { $this->mensagem .= "Cadastro efetuado com sucesso.<br>"; header("Location: educar_tipo_dispensa_lst.php"); die; return true; } $this->mensagem = "Cadastro não realizado.<br>"; echo "<!--\nErro ao cadastrar clsPmieducarTipoDispensa\nvalores obrigatórios\nis_numeric( {$this->pessoa_logada} ) && is_numeric( {$this->ref_cod_escola} ) && is_string( {$this->nm_tipo} )\n-->"; return false; }