He warned that allowing the jury to consider Mr Trump's remarks "carries an immediate and irreparable danger of extreme and irremediable prejudice to defendants, confusion of issues and waste of time."
The lawsuit filed in 2010 on behalf of former customers alleges that Trump University, which was not accredited as a school, gave seminars and classes across the country that were like infomercials, pressuring people to spend up to $US35,000 (NZ$$48.565) for mentorships and, in the end, failing on its promise to teach success in real estate. The claims mirror another class-action complaint in San Diego and a lawsuit in New York.
Mr Petrocelli told reporters in May that Mr Trump planned to attend most, if not all, of the trial and would testify.
"He has very, very strong feelings about this case," Mr Petrocelli said at the time.
At the May hearing, Mr Petrocelli asked for a trial after Inauguration Day on January 20, but the judge raised concerns about distractions if Mr Trump won the election.
The lawyer said the period between the election and swearing-in is extremely hectic for a president-elect but that it was preferable to holding a trial during the campaign.