public function alterar(Atividade $obj) { $strSQL = "UPDATE ADM_ATV_ATIVIDADES SET "; $strSQL .= "ATV_Descricao = '" . $obj->getDescricao() . "', "; $strSQL .= "ATV_ExigeData = '" . $obj->getExigeData() . "', "; $strSQL .= "ATV_Status = '" . $obj->getStatus() . "' "; $strSQL .= "WHERE ATV_ID = " . $obj->getId() . " "; return Db::getInstance()->executar($strSQL); }