Well, if you validate form inputs, you're *always* validating against strings. 
So it's not possible to validate against other types because they are always 
strings (correct me if I'm wrong).

Next, I think a validation for an integer data type isn't necessary to 
facilitate for ZF, because the built in php function is_int() would do enough. 
Therefore, if you need to validate an integer with a validator, I think the 
only requirement is for using it to check 1.000 vs 1,0000 :)

R, Jurian
--
Jurian Sluiman
Soflomo.com

Op Tuesday 23 June 2009 18:02:56 schreef Jason Webster:
> Well, I don't think that should apply, though.
>
> Validate_Int implies that you are validating to the native int datatype,
> not a currency. Perhaps some of this functionallity should be split into a
> Zend_Validate_Currency.
>
> On 23/06/2009 8:55 AM, Jurian Sluiman wrote:
> > Well in GB one thousand is 1,000 and the floating point is a dot
> > (0.20ct). In The Netherlands it's exactly the opposite: €10.000,00 is
> > correct. So where 1.000 in GB is *not* an integer, in The Netherlands it
> > is.
> >
> > R, Jurian
> > --
> > Jurian Sluiman
> > Soflomo.com
> >
> > Op Tuesday 23 June 2009 17:42:57 schreef umpirsky:
> >  > Yes, i know that, but integer is integer, why use locale at all.
> >
> > Integer is
> >
> >  > integer in USA and in Serbia :) For instance Zend_Validate_Alnum is
> >  > not using it, then I don't see why Zend_Validate_Int use it, but it
> >  > looks
> >
> > that
> >
> >  > for some locale value 5,25 is valid integer, which is also wired.
> >  >
> >  > I'm using ZF 1.8.1.
> >  >
> >  > Again big thanks for your valuable help.
> >  >
> >  > Regards,
> >  > Sasa Stamenkovic.

Reply via email to