Jump to content

Object Scope best practice question.


atrum

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/215673-object-scope-best-practice-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.