\Forum_Controller
The forum controller class
Synopsis
class Forum_Controller
extends Page_Controller
{
- // members
- private static array $allowed_actions = ;
- // methods
- public void init()
- public void rss()
- public bool OpenIDAvailable()
- public bool subscribe()
- public bool unsubscribe()
- public void markasspam()
- public void ban()
- public void ghost()
- public DataObjectSet Posts()
- public DataObjectSet BBTags()
- public Form PostMessageForm()
- public Form ReplyForm()
- public void doPostMessageForm()
- public void notifyModerators()
- public Text getForbiddenWords()
- public String filterLanguage()
- public string ReplyLink()
- public array|SS_HTTPResponse_Exception show()
- public array starttopic()
- public string getHolderSubtitle()
- public ForumThread getForumThread()
- public boolean deleteattachment()
- public array editpost()
- public Form EditForm()
- public bool deletepost()
- public String ForumAdminMsg()
- public Form AdminFormFeatures()
- public void doAdminFormFeatures()
Hierarchy
Extends
- Page_Controller
Members
private
- $allowed_actions
Methods
public
- AdminFormFeatures() — Forum Admin Features form.
- BBTags() — Get the usable BB codes
- EditForm() — Get the post edit form if the user has the necessary permissions
- ForumAdminMsg() — Returns the Forum Message from Session. This is used for things like Moving thread messages
- OpenIDAvailable() — Is OpenID support available?
- PostMessageForm() — Section for dealing with reply / edit / create threads form
- Posts() — Get posts to display. This method assumes an URL parameter "ID" which contains the thread ID.
- ReplyForm() — Wrapper for older templates. Previously the new, reply and edit forms were 3 separate forms, they have now been refactored into 1 form. But in order to not break existing themes too much just include this.
- ReplyLink() — Get the link for the reply action
- ban()
- deleteattachment() — Delete an Attachment Called from the EditPost method. Its Done via Ajax
- deletepost() — Delete a post via the url.
- doAdminFormFeatures() — Process's the moving of a given topic. Has to check for admin privledges, passed an old topic id (post id in URL) and a new topic id
- doPostMessageForm() — Post a message to the forum. This method is called whenever you want to make a new post or edit an existing post on the forum
- editpost() — Edit post action
- filterLanguage() — This function filters $content by forbidden words, entered in forum holder.
- getForbiddenWords() — Return the Forbidden Words in this Forum
- getForumThread() — Get the currently viewed forum. Ensure that the user can access it
- getHolderSubtitle() — Get the forum title
- ghost()
- init()
- markasspam() — Mark a post as spam. Deletes any posts or threads created by that user and removes their user account from the site
- notifyModerators() — Send email to moderators notifying them the thread has been created or post added/edited.
- rss() — A convenience function which provides nice URLs for an rss feed on this forum.
- show() — Show will get the selected thread to the user. Also increments the forums view count.
- starttopic() — Start topic action
- subscribe() — Subscribe a user to a thread given by an ID.
- unsubscribe() — Unsubscribe a user from a thread by an ID