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