function Novo() { @session_start(); $this->pessoa_logada = $_SESSION['id_pessoa']; @session_write_close(); $obj = new clsPmicontrolesisTelefones($this->cod_telefones, $this->pessoa_logada, null, $this->nome, $this->numero, null, null, 1); $cadastrou = $obj->cadastra(); if ($cadastrou) { $this->mensagem .= "Cadastro efetuado com sucesso.<br>"; header("Location: controlesis_telefones_lst.php"); die; return true; } $this->mensagem = "Cadastro não realizado.<br>"; echo "<!--\nErro ao cadastrar clsPmicontrolesisTelefones\nvalores obrigatorios\nis_numeric( {$this->ref_funcionario_cad} ) && is_string( {$this->nome} )\n-->"; return false; }