View Single Post
Old 11-15-2007, 02:32 PM   #5 (permalink)
bluesaga
Super Moderator
Advanced Programmer 
 
bluesaga's Avatar
 
Join Date: Sep 2007
Posts: 165
Thanks: 0
bluesaga is on a distinguished road
Default

Ah right, yea thats a great example! I see now, i take it addValidator makes an array of the classes, and then "doValidate" (or something similar) loops through those, checking for a exception and returning the exception if it finds one?

I can see exactly why that works, and how its a great thing :)

One thing though, what happens if say you have 20-30 different string to validate. Surely this method would be a little slow? (Need different instances of Zend_Validate for each different string format?)
__________________
Halo 3 Cheats
bluesaga is offline  
Reply With Quote