Welcome Guest, Not a member yet? Register   Sign In
preparing vs validating
#1

[eluser]plainas[/eluser]
The validation class allows one to validate data using a customised callback function.
All the callback examples in the docs return either true or false.
It's also said that any native php function that accepts one argument can be used.

My question is:
Is it possible to use the callback trick to prepare data, or can it only be used for validation purposes?
Taking it a bit further, is it possible to use the same function to prepare and validate?


Messages In This Thread
preparing vs validating - by El Forum - 08-11-2008, 08:13 PM
preparing vs validating - by El Forum - 08-11-2008, 09:26 PM
preparing vs validating - by El Forum - 08-11-2008, 11:45 PM
preparing vs validating - by El Forum - 08-12-2008, 04:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB