atrum Posted October 12, 2010 Share Posted October 12, 2010 I'll keep this short. I am making a registration class. I want to have a way to sanitize the input. I am wondering which is the best route to take on the object model. Should I make some method(s) inside of the registration class to sanitize the input, or should I create a separate class specifically for sanitation purposes? Which is better from a best practices stand point? Quote Link to comment https://forums.phpfreaks.com/topic/215673-object-scope-best-practice-question/ Share on other sites More sharing options...
trq Posted October 12, 2010 Share Posted October 12, 2010 Short answer: Sanitizing data has nothing to do with registration. Quote Link to comment https://forums.phpfreaks.com/topic/215673-object-scope-best-practice-question/#findComment-1121368 Share on other sites More sharing options...
atrum Posted October 12, 2010 Author Share Posted October 12, 2010 Thank you for clearing that up for me. Quote Link to comment https://forums.phpfreaks.com/topic/215673-object-scope-best-practice-question/#findComment-1121371 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.