Ticket #272 (closed Feature Request: fixed)

Opened 12 months ago

Last modified 12 months ago

Allow more PHP functions in validation class

Reported by: Maxximus Owned by:
Priority: minor Milestone: 2.1
Component: Core Version: SVN HEAD
Keywords: validation Cc:

Description

At this moment it's possible to use trim(), md5() and sha1() as a rule in validation. It would be nice to allow several other functions as well, like strtoupper(), ucfirst(), ucwords() etc.

At this moment it's not possible bcz. such a rule is treated as a result function, and will not alter the data field itself.

Change History

Changed 12 months ago by Maxximus

  • type changed from Bug to Feature Request

Changed 12 months ago by armen

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

Fixed in r1536

You can use php functions like trim, sha1, md5, strtoupper, etc as a rule, just add an = at the beginning of the rule name.

*BC Break* : you can't use trim, sha1 and md5 rules anymore, you have to add an = as prefix

Note: See TracTickets for help on using tickets.