Hey, I'm finally going to start using OOP
:: Insert member jeers and taunts ::
Ok, now that that's aside, I was hoping you guys could help me plan out a class a little bit, and let me know if I even need a class for this.
My site has a database of users. These users are linked to articles that they've submitted. I expect that I'll need functions to retrieve all the articles that a certain user has written. I'll also need functions to change and retrieve a user's personal information, etc. Then, I'll need methods for creating new articles, editing existing articles, etc.
Do I just create a User class with methods like getAllArticles()? And then do:
$activeUser = new User();
$allNotes = $activeUser->getAllArticles();
Is that right? The syntax isn't really my worry. I'm just concerned about whether or not I'm using classes correctly.