public function editaRegistroAcesso(RegistroAcesso $rg) { $sql = "update registro_acesso set "; $sql .= "rgc_fim = '" . $rg->getRgc_fim() . "' "; $sql .= "where rgc_id = " . $rg->getRgc_id() . " limit 1"; echo $sql; return $this->execute($sql); }