Forum Moderators: coopster

Message Too Old, No Replies

Forum Using Classes

         

bobnew32

7:25 pm on Jun 30, 2004 (gmt 0)

10+ Year Member



I can physically use php classes syntax, but applying them to my code and things that i'm creating is becoming a bit hard.

Thinking of a forum in a general way, would creating these types of classes be viable to having a forum run?

classes:

class Thread (Get info about thread, Create new thread, update thread info, edit thread, delete thread)

class Post (Get info about an individual post, edit a post, delete a post, insert a new post)

class Private_msg (create new priv msg, all that good stuff)

class Forum (get info about it, create a new forum, edit a forum)

I just feel lost, and am unsure if i'm doing things correctly.

bobnew32

3:53 am on Jul 1, 2004 (gmt 0)

10+ Year Member



Noone?

dcrombie

9:42 am on Jul 1, 2004 (gmt 0)



class Forum:

* displayForum (calls displayThread)
* add/edit/delete Thread (calls handlers inside Thread class)

class Thread:

* displayThread (calls displayPost)
* add/edit/delete Post (calls handlers inside Post class)

class Post:

* display Post