I just don't agree with any kind of classroom discipline that humiliates students in front of their friends. Period. I taught for six years before DD was born and I was not sarcastic to students, I did not yell at them, I did not put names on the board, I did not call on students when I knew they were goofing off and not paying attention. Those things accomplish nothing other than making the kids resentful. It makes the kids with discipline problems think that their teacher can't stand them. How on earth can a teacher be effective with a student who feels disliked?
Discipline problems need to be handled with some sensitivity. It's best for a teacher to discuss a child's problems with him privately. That shows respect for the child and helps the child feel that the teacher believes that he can do better.
As far as what happened to your DD, my goodness, she just spilled something. That's a discipline problem? Why didn't the teacher just ask her to get a paper towel and wipe it up?