using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using CMS.CMSHelper; using CMS.GlobalHelper; using CMS.MessageBoard; namespace CMS.Controls { /// /// Message boards transformation methods /// public partial class CMSTransformation { /// /// Returns the count of messages in given message board. /// /// Name of the messageboard webpart. /// Type of messageboard: 'document', 'user' or 'group'. public int GetBoardMessagesCount(string boardWebpartName, string type) { // Get messages count return MessageBoardFunctions.GetBoardMessagesCount(EvalInteger("DocumentID"), boardWebpartName, type); } /// /// Returns the count of messages in given document related message board. /// /// Name of the messageboard webpart. public int GetBoardMessagesCount(string boardWebpartName) { // Get messages count return GetBoardMessagesCount(boardWebpartName, "document"); } } }