function Novo() { session_start(); $this->pessoa_logada = $_SESSION['id_pessoa']; session_write_close(); $obj = new clsPublicMunicipio(NULL, $this->nome, $this->sigla_uf, NULL, NULL, NULL, NULL, NULL, 'M', NULL, NULL, $this->pessoa_logada, NULL, NULL, 'U', 'I', NULL, 9); $cadastrou = $obj->cadastra(); if ($cadastrou) { $this->mensagem .= 'Cadastro efetuado com sucesso.<br>'; header('Location: public_municipio_lst.php'); die; } $this->mensagem = 'Cadastro não realizado.<br>'; echo "<!--\nErro ao cadastrar clsPublicMunicipio\nvalores obrigatorios\nis_string( {$this->nome} ) && is_string( {$this->sigla_uf} ) && is_string( {$this->tipo} ) && is_string( {$this->origem_gravacao} ) && is_string( {$this->operacao} ) && is_numeric( {$this->idsis_cad} )\n-->"; return FALSE; }