• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.