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