C# Class Engage.Dnn.Publish.Forum.ForumProvider

Defines the relationship between Publish and a forums module used to create discussion threads for articles (in place of comments). Inheritors of ForumProvider must provide a constructor that takes a portalId as an int parameter.
ファイルを表示 Open project: EngageSoftware/Engage-Publish

Public Methods

Method Description
AddComment ( int forumId, int authorUserId, string title, string description, string linkUrl, string commentText, int commentUserId, string commentUserIpAddress ) : int

Adds a comment to the given forum as a new thread with the article description being the first post, and the comment being a reply.

GetInstance ( int portalId ) : ForumProvider

Gets the ForumProvider instance for this portalId.

GetThreadUrl ( int threadId ) : string

Gets a URL to the forum thread which holds discussions for an article.

Protected Methods

Method Description
ForumProvider ( int portalId ) : System

Private Methods

Method Description
GetForums ( ) : string>.Dictionary

Method Details

AddComment() public abstract method

Adds a comment to the given forum as a new thread with the article description being the first post, and the comment being a reply.
public abstract AddComment ( int forumId, int authorUserId, string title, string description, string linkUrl, string commentText, int commentUserId, string commentUserIpAddress ) : int
forumId int The ID of the forum in which to post the new thread.
authorUserId int The user ID of the author of the article.
title string The title of the article, to be used as the main body of the initial post in the thread.
description string The description of the article, to be used as the main body of the initial post in the thread.
linkUrl string A URL pointing to the article.
commentText string The comment text.
commentUserId int The user ID of the person creating the comment.
commentUserIpAddress string The IP address of the user posting a comment.
return int

ForumProvider() protected method

protected ForumProvider ( int portalId ) : System
portalId int
return System

GetInstance() public static method

Gets the ForumProvider instance for this portalId.
public static GetInstance ( int portalId ) : ForumProvider
portalId int The portal id.
return ForumProvider

GetThreadUrl() public abstract method

Gets a URL to the forum thread which holds discussions for an article.
public abstract GetThreadUrl ( int threadId ) : string
threadId int The ID of the requested forum thread.
return string