C# 클래스 OurUmbraco.Forum.Library.Utils

파일 보기 프로젝트 열기: umbraco/OurUmbraco

공개 메소드들

메소드 설명
AddMemberToPotentialSpamGroup ( umbraco.cms.businesslogic.member.Member member ) : void
CheckForSpam ( IMember member ) : SpamResult
CheckForSpam ( string email, string name, bool sendMail ) : SpamResult
CleanInvalidXmlChars ( string text ) : string
GetForumName ( IPublishedContent forum ) : string
GetIpAddress ( ) : string
GetMember ( int id ) : umbraco.cms.businesslogic.member.Member
IsInGroup ( string GroupName ) : bool
IsMemberInGroup ( string GroupName, int memberid ) : bool
IsModerator ( ) : bool
RemoveMemberFromPotentialSpamGroup ( umbraco.cms.businesslogic.member.Member member ) : void
Sanitize ( string html ) : string

sanitize any potentially dangerous tags from the provided raw HTML input using a whitelist based approach, leaving the "safe" HTML tags

SendActivationMail ( IMember member ) : void
SendMemberSignupMail ( IMember member ) : void
SendNewMemberMail ( SpamResult spamResult ) : void
SendPotentialSpamMemberMail ( SpamResult spammer ) : void

비공개 메소드들

메소드 설명
GetSpamResultBody ( SpamResult spammer ) : string
SendSlackNotification ( string body ) : void

메소드 상세

AddMemberToPotentialSpamGroup() 공개 정적인 메소드

public static AddMemberToPotentialSpamGroup ( umbraco.cms.businesslogic.member.Member member ) : void
member umbraco.cms.businesslogic.member.Member
리턴 void

CheckForSpam() 공개 정적인 메소드

public static CheckForSpam ( IMember member ) : SpamResult
member IMember
리턴 SpamResult

CheckForSpam() 공개 정적인 메소드

public static CheckForSpam ( string email, string name, bool sendMail ) : SpamResult
email string
name string
sendMail bool
리턴 SpamResult

CleanInvalidXmlChars() 공개 정적인 메소드

public static CleanInvalidXmlChars ( string text ) : string
text string
리턴 string

GetForumName() 공개 정적인 메소드

public static GetForumName ( IPublishedContent forum ) : string
forum IPublishedContent
리턴 string

GetIpAddress() 공개 정적인 메소드

public static GetIpAddress ( ) : string
리턴 string

GetMember() 공개 정적인 메소드

public static GetMember ( int id ) : umbraco.cms.businesslogic.member.Member
id int
리턴 umbraco.cms.businesslogic.member.Member

IsInGroup() 공개 정적인 메소드

public static IsInGroup ( string GroupName ) : bool
GroupName string
리턴 bool

IsMemberInGroup() 공개 정적인 메소드

public static IsMemberInGroup ( string GroupName, int memberid ) : bool
GroupName string
memberid int
리턴 bool

IsModerator() 공개 정적인 메소드

public static IsModerator ( ) : bool
리턴 bool

RemoveMemberFromPotentialSpamGroup() 공개 정적인 메소드

public static RemoveMemberFromPotentialSpamGroup ( umbraco.cms.businesslogic.member.Member member ) : void
member umbraco.cms.businesslogic.member.Member
리턴 void

Sanitize() 공개 정적인 메소드

sanitize any potentially dangerous tags from the provided raw HTML input using a whitelist based approach, leaving the "safe" HTML tags
public static Sanitize ( string html ) : string
html string
리턴 string

SendActivationMail() 공개 정적인 메소드

public static SendActivationMail ( IMember member ) : void
member IMember
리턴 void

SendMemberSignupMail() 공개 정적인 메소드

public static SendMemberSignupMail ( IMember member ) : void
member IMember
리턴 void

SendNewMemberMail() 공개 정적인 메소드

public static SendNewMemberMail ( SpamResult spamResult ) : void
spamResult SpamResult
리턴 void

SendPotentialSpamMemberMail() 공개 정적인 메소드

public static SendPotentialSpamMemberMail ( SpamResult spammer ) : void
spammer SpamResult
리턴 void