View Single Post
05-09-2009, 04:28 PM
Join Date: Feb 2009
Location: New York
Hey guys, so I've been pondering about what are the basic classes that would normally be used within a functioning site. I'd like to get your thoughts and opinions on them. Below is what I came up with that are necessary....no code necessary, just the basic idea/structure....
Handles the creation of session data used throughout the site. Will also handle logging the user out when called upon. This is a stand alone parent class.
Handles the creation of new users. This class will need to rely on the
to accept only "clean" input. This class will be a child class of
Pretty simple class to handle user logins. Will also need to rely on
for "clean" input. Based on success, will then need to rely on
to provide access to site. This class will be a child class of
Pretty self explanatory class for DB access. This is a stand alone parent class.
Optional class for page navigation. Would rely on
for query results. This class would be a child class of the
This class will clean all user input such as mysql_real_escape_string, htmlentities function, string length etc... This is a stand alone parent class.
So that's about it. Does anyone have input? Am I missing anything? Am I going about it the wrong way?
I left out an "Error" class because I haven't yet quite figured out how to handle that....
But I'm hoping I can easily implement that class once these are done...?
View Public Profile
Send a private message to allworknoplay
Find More Posts by allworknoplay