C# 클래스 Subtext.Framework.Components.FeedbackItem

상속: IIdentifiable
파일 보기 프로젝트 열기: ayende/Subtext 1 사용 예제들

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