C# Класс Subtext.Framework.Components.FeedbackItem

Наследование: IIdentifiable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
EmailCommentToAdmin void

Открытые методы

Метод Описание
Approve ( FeedbackItem feedback ) : void

Approves the comment, and removes it from the SPAM folder or from the Trash folder.

CalculateChecksum ( string text ) : int

Calculates a simple checksum of the specified text. This is used for comment filtering purposes. Once deployed, this algorithm shouldn't change.

ConfirmSpam ( FeedbackItem feedback ) : void

Confirms the feedback as spam and moves it to the trash.

Create ( FeedbackItem feedback, CommentFilter filter ) : int

Creates a feedback item in the database.

Delete ( FeedbackItem feedback ) : void

Confirms the feedback as spam and moves it to the trash.

Destroy ( FeedbackItem feedback ) : void

Confirms the feedback as spam and moves it to the trash.

Destroy ( FeedbackStatusFlag feedbackStatus ) : void

Destroys all non-active emails that meet the status.

FeedbackItem ( FeedbackType type ) : System

Creates a new FeedbackItem instance.

Get ( int feedbackId ) : FeedbackItem

Gets the specified feedback by id.

GetFeedbackCounts ( ) : FeedbackCounts

Gets the feedback counts for the various top level statuses.

GetPagedFeedback ( int pageIndex, int pageSize, FeedbackStatusFlag status, FeedbackStatusFlag excludeStatusMask, FeedbackType type ) : IPagedCollection

Returns a pageable collection of comments.

GetPagedFeedback ( int pageIndex, int pageSize, FeedbackStatusFlag status, FeedbackType type ) : IPagedCollection

Returns a pageable collection of comments.

GetRecentComments ( int itemCount ) : IList

Returns the itemCount most recent active comments.

Update ( FeedbackItem feedbackItem ) : bool

Updates the specified entry in the data provider.

Защищенные методы

Метод Описание
IsStatusSet ( FeedbackStatusFlag status ) : bool

Checks to see if the specified status bit is set.

SetStatus ( FeedbackStatusFlag status, bool setOn ) : void

Turns the specified status bit on or off depending on the setOn value.

Приватные методы

Метод Описание
EmailCommentToAdmin ( FeedbackItem comment, BlogInfo currentBlog ) : void

Описание методов

Approve() публичный статический Метод

Approves the comment, and removes it from the SPAM folder or from the Trash folder.
public static Approve ( FeedbackItem feedback ) : void
feedback FeedbackItem
Результат void

CalculateChecksum() публичный статический Метод

Calculates a simple checksum of the specified text. This is used for comment filtering purposes. Once deployed, this algorithm shouldn't change.
public static CalculateChecksum ( string text ) : int
text string Text.
Результат int

ConfirmSpam() публичный статический Метод

Confirms the feedback as spam and moves it to the trash.
public static ConfirmSpam ( FeedbackItem feedback ) : void
feedback FeedbackItem The feedback.
Результат void

Create() публичный статический Метод

Creates a feedback item in the database.
public static Create ( FeedbackItem feedback, CommentFilter filter ) : int
feedback FeedbackItem The feedback.
filter CommentFilter Spam filter.
Результат int

Delete() публичный статический Метод

Confirms the feedback as spam and moves it to the trash.
public static Delete ( FeedbackItem feedback ) : void
feedback FeedbackItem The feedback.
Результат void

Destroy() публичный статический Метод

Confirms the feedback as spam and moves it to the trash.
public static Destroy ( FeedbackItem feedback ) : void
feedback FeedbackItem The feedback.
Результат void

Destroy() публичный статический Метод

Destroys all non-active emails that meet the status.
public static Destroy ( FeedbackStatusFlag feedbackStatus ) : void
feedbackStatus FeedbackStatusFlag The feedback.
Результат void

FeedbackItem() публичный Метод

Creates a new FeedbackItem instance.
public FeedbackItem ( FeedbackType type ) : System
type FeedbackType Ptype.
Результат System

Get() публичный статический Метод

Gets the specified feedback by id.
public static Get ( int feedbackId ) : FeedbackItem
feedbackId int The feedback id.
Результат FeedbackItem

GetFeedbackCounts() публичный статический Метод

Gets the feedback counts for the various top level statuses.
public static GetFeedbackCounts ( ) : FeedbackCounts
Результат FeedbackCounts

GetPagedFeedback() публичный статический Метод

Returns a pageable collection of comments.
public static GetPagedFeedback ( int pageIndex, int pageSize, FeedbackStatusFlag status, FeedbackStatusFlag excludeStatusMask, FeedbackType type ) : IPagedCollection
pageIndex int
pageSize int
status FeedbackStatusFlag A flag for the status types to return.
excludeStatusMask FeedbackStatusFlag A flag for the statuses to exclude.
type FeedbackType The type of feedback to return.
Результат IPagedCollection

GetPagedFeedback() публичный статический Метод

Returns a pageable collection of comments.
public static GetPagedFeedback ( int pageIndex, int pageSize, FeedbackStatusFlag status, FeedbackType type ) : IPagedCollection
pageIndex int
pageSize int
status FeedbackStatusFlag A flag for the status types to return.
type FeedbackType The type of feedback to return.
Результат IPagedCollection

GetRecentComments() публичный статический Метод

Returns the itemCount most recent active comments.
public static GetRecentComments ( int itemCount ) : IList
itemCount int
Результат IList

IsStatusSet() защищенный Метод

Checks to see if the specified status bit is set.
protected IsStatusSet ( FeedbackStatusFlag status ) : bool
status FeedbackStatusFlag The status.
Результат bool

SetStatus() защищенный Метод

Turns the specified status bit on or off depending on the setOn value.
protected SetStatus ( FeedbackStatusFlag status, bool setOn ) : void
status FeedbackStatusFlag
setOn bool
Результат void

Update() публичный статический Метод

Updates the specified entry in the data provider.
public static Update ( FeedbackItem feedbackItem ) : bool
feedbackItem FeedbackItem Entry.
Результат bool