Welcome Guest, Not a member yet? Register   Sign In
Forum prototype - Constructive criticism requested.
#4

[eluser]Dam1an[/eluser]
I would have the following main objects
- forum
- thread
- post
- user

With the following relationships
Forum
- Has many forums
- Has many threads
- Belongs to only one forum

Thread
- Has many posts
- Belongs to only one forum

Post
- Has one author
- Belongs to one thread

User
- Creates many posts

What does what
Forum:
Pretty much the same as you've got, put also would need parent, so you can nest forums

Thread:
Gets list of posts, add post to the end of the thread, get post count etc

Post:
Again, much the same as yours

User:
Get/set user details, post history, unread posts, settings etc

One thing I'll say about yours is, not sure if some of your set methods are really needed (you may have just added them when you put the get?)
Such as:
Forum.set_id
Post.set_id
Post.set_user_id
Post.set_date

The reason I say you don't need these, is cause they would be set in the contructor when you create that forum/post, and they don't really change, the only exception being post.date as it can be edited, but that'll be taken care of internally

You could also just use __get and __set if you want

If you want me to explain my points in more detail, then just ask, or contact me via PM


Messages In This Thread
Forum prototype - Constructive criticism requested. - by El Forum - 04-30-2009, 09:03 AM
Forum prototype - Constructive criticism requested. - by El Forum - 04-30-2009, 11:30 AM
Forum prototype - Constructive criticism requested. - by El Forum - 04-30-2009, 11:51 AM
Forum prototype - Constructive criticism requested. - by El Forum - 04-30-2009, 02:17 PM
Forum prototype - Constructive criticism requested. - by El Forum - 04-30-2009, 07:25 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 01:59 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 05:42 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 05:57 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 06:09 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 07:13 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 07:32 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 07:50 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 07:57 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:02 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:14 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:22 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:28 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:36 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:38 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:41 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:50 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:57 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 09:04 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 09:18 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 09:23 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 09:29 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 09:54 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 01:57 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-02-2009, 11:48 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-03-2009, 05:22 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-03-2009, 06:14 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-03-2009, 06:41 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-04-2009, 07:27 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-05-2009, 09:23 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-05-2009, 09:31 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-05-2009, 09:49 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-05-2009, 09:50 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-05-2009, 02:41 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-05-2009, 07:35 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-06-2009, 05:01 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-06-2009, 08:06 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-06-2009, 08:11 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-11-2009, 09:40 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-11-2009, 09:45 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-11-2009, 11:38 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-11-2009, 11:49 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-11-2009, 12:06 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-11-2009, 12:10 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-11-2009, 11:48 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 01:41 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 06:40 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 06:50 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 06:56 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 06:59 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 07:21 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 07:24 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 07:42 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 07:47 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 11:24 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 11:29 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 11:34 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 12:04 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 01:19 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 02:23 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 02:31 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 02:34 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 02:45 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-13-2009, 04:36 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-13-2009, 05:13 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-13-2009, 02:39 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-15-2009, 08:45 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-15-2009, 08:53 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-15-2009, 09:08 AM
Forum prototype - Constructive criticism requested. - by El Forum - 07-17-2011, 09:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB