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.
Afficher le fichier Open project: EngageSoftware/Engage-Publish

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
ForumProvider ( int portalId ) : System

Private Methods

Méthode Description
GetForums ( ) : string>.Dictionary

Method Details

AddComment() public abstract méthode

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.
Résultat int

ForumProvider() protected méthode

protected ForumProvider ( int portalId ) : System
portalId int
Résultat System

GetInstance() public static méthode

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

GetThreadUrl() public abstract méthode

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.
Résultat string