11-15-2007, 02:32 PM
|
#5 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Posts: 165
Thanks: 0
|
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?)
|
|
|
|