Public Attributes | |
| const | OK = 0 |
| const | NONEXISTENT = 1 |
Setup/Initialization/Destruction | |
| Forum ($ForumId=NULL) | |
| Object Constructor. | |
| Delete () | |
| Remove this forum, deleting all assocated topics and messages. | |
Accessors | |
| ForumId () | |
| Get the forum's Id. | |
| LastMessageDate () | |
| Get the date of the most recent post. | |
| LastMessagePoster () | |
| Get the CWIS username of the most recent poster. | |
| LastMessagePosterEmail () | |
| Get the email address of the most recent poster. | |
| ModeratorName () | |
| Get the CWIS username of the forum's moderator. | |
| ModeratorEmail () | |
| Get the email of the forum's moderator. | |
| GetTopicList () | |
| Get a list of the topics in this forum. | |
| ForumName ($NewValue=DB_NOVALUE) | |
| Get or modify the forum's name. | |
| ForumDescription ($NewValue=DB_NOVALUE) | |
| Get or modify the forum description. | |
| TopicCount ($NewValue=DB_NOVALUE) | |
| Get or set the forum's topic count. | |
| MessageCount ($NewValue=DB_NOVALUE) | |
| Get or set the forum's message count. | |
| ModeratorId ($NewValue=DB_NOVALUE) | |
| Get or set the forum's moderator. | |
| GetErrorStatus () | |
| Retrieve error codes associated with the creation of the forum. | |
Definition at line 26 of file Forum.php.
| Forum::Delete | ( | ) |
| Forum::Forum | ( | $ | ForumId = NULL |
) |
Object Constructor.
After constructing the object, be sure to call GetErrorStatus() and verify that it returns Forum::OK.
| ForumId | The Id number of the forum to retrieve from the database, or -1 to create a new forum |
Definition at line 43 of file Forum.php.
References ForumId(), NONEXISTENT, and OK.
| Forum::ForumDescription | ( | $ | NewValue = DB_NOVALUE |
) |
| Forum::ForumId | ( | ) |
Get the forum's Id.
Definition at line 106 of file Forum.php.
Referenced by Delete(), Forum(), GetTopicList(), LastMessageDate(), LastMessagePoster(), and LastMessagePosterEmail().

| Forum::ForumName | ( | $ | NewValue = DB_NOVALUE |
) |
| Forum::GetErrorStatus | ( | ) |
| Forum::GetTopicList | ( | ) |
| Forum::LastMessageDate | ( | ) |
Get the date of the most recent post.
Definition at line 112 of file Forum.php.
References ForumId(), and GetLastMessage().
| Forum::LastMessagePoster | ( | ) |
Get the CWIS username of the most recent poster.
Definition at line 125 of file Forum.php.
References ForumId(), and GetLastMessage().
| Forum::LastMessagePosterEmail | ( | ) |
Get the email address of the most recent poster.
Definition at line 136 of file Forum.php.
References ForumId(), and GetLastMessage().
| Forum::MessageCount | ( | $ | NewValue = DB_NOVALUE |
) |
| Forum::ModeratorEmail | ( | ) |
Get the email of the forum's moderator.
Definition at line 157 of file Forum.php.
References ModeratorId().
| Forum::ModeratorId | ( | $ | NewValue = DB_NOVALUE |
) |
Get or set the forum's moderator.
| NewValue | (OPTIONAL) |
Definition at line 215 of file Forum.php.
Referenced by ModeratorEmail(), and ModeratorName().

| Forum::ModeratorName | ( | ) |
Get the CWIS username of the forum's moderator.
Definition at line 147 of file Forum.php.
References ModeratorId().
| Forum::TopicCount | ( | $ | NewValue = DB_NOVALUE |
) |
| const Forum::NONEXISTENT = 1 |