function Editar() { $ref_cod_setor = $_GET["setor_atual"] ? $_GET["setor_atual"] : null; $ativo = $this->ativo ? 1 : 2; $obj_setor = new clsSetor($this->cod_setor, $ref_cod_setor, null, $this->cod_pessoa, $this->nm_setor, $this->sgl_setor, null, null, $ativo, null, null, null, null, $this->secretario); if ($obj_setor->edita()) { header("Location: oprot_setor_det.php?cod_setor={$this->cod_setor}"); } return false; }