function Novo() { @session_start(); $this->pessoa_logada = $_SESSION['id_pessoa']; @session_write_close(); $obj = new clsPmieducarInstituicao(null, $this->ref_usuario_exc, $this->pessoa_logada, $this->ref_idtlog, $this->ref_sigla_uf, str_replace("-", "", $this->cep), $this->cidade, $this->bairro, $this->logradouro, $this->numero, $this->complemento, $this->nm_responsavel, $this->ddd_telefone, $this->telefone, $this->data_cadastro, $this->data_exclusao, 1, $this->nm_instituicao); $cadastrou = $obj->cadastra(); if ($cadastrou) { $this->mensagem .= "Cadastro efetuado com sucesso.<br>"; header("Location: educar_instituicao_lst.php"); die; return true; } $this->mensagem = "Cadastro não realizado.<br>"; echo "<!--\nErro ao cadastrar clsPmieducarInstituicao\nvalores obrigatorios\nis_numeric( {$ref_usuario_cad} ) && is_string( {$ref_idtlog} ) && is_string( {$ref_sigla_uf} ) && is_numeric( {$cep} ) && is_string( {$cidade} ) && is_string( {$bairro} ) && is_string( {$logradouro} ) && is_string( {$nm_responsavel} ) && is_string( {$data_cadastro} ) && is_numeric( {$ativo} )\n-->"; return false; }