Development

#494 (Add an 'integer' type to sfNumberValidator)

You must first sign up to be able to contribute.

Ticket #494 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 years ago

Add an 'integer' type to sfNumberValidator

Reported by: anonymous Assigned to: slickrick
Priority: minor Milestone: 0.6.3
Component: Version: 0.6.2
Keywords: Cc:
Qualification:

Description

It would be good to add an 'integer' type to the number validation class to make sure a given number is actually an integer, and not a float.

You could use a regex validator in combination with the number validator, but it seems natural to just allow sfNumberValidator to ensure the number is actually an int.

(Could use ctype_digit, or something else?)

Change History

05/09/06 16:51:10 changed by fabien

  • milestone set to 0.6.3.

06/13/06 07:57:51 changed by slickrick

  • owner set to slickrick.

Fixed in r1424

06/13/06 14:31:22 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

in r1436