C# 클래스 OurUmbraco.Our.Utils

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

공개 메소드들

메소드 설명
CleanInvalidXmlChars ( string text ) : string
GetAllTags ( string group ) : string
GetGravatar ( string email, int size, string memberName, bool getRawUrl = false ) : string
GetLocalAvatar ( string imgPath, int minSize, string memberName, bool getRawUrl = false ) : string
GetMember ( int id ) : umbraco.cms.businesslogic.member.Member
GetMemberAvatar ( IPublishedContent member, int avatarSize, bool getRawUrl = false ) : string
GetMemberAvatarImage ( IPublishedContent member ) : Image
GetProjectCompatibleVersions ( ) : IEnumerable>.Dictionary

Returns a dictionary of project id => any version that has been flagged as being compatible

GetProjectCompatibleVersions ( int projectId ) : IEnumerable
GetProjectContributors ( int projectId ) : List
GetProjectFileDownloadCount ( int fileId ) : int
GetProjectMemberVotes ( int projectId ) : int
GetProjectTotalDownload ( ) : int>.Dictionary

Returns a dictionary of project id => total downloads

GetProjectTotalDownloadCount ( int projectId ) : int
GetProjectTotalVotes ( ) : int>.Dictionary

Returns a dictionary of project id => total karma

GetProjectTotalVotes ( int projectId ) : int
GetProjectsMemberHasDownloaded ( int memberId ) : IEnumerable
GetProjectsMemberHasVotedUp ( int memberId ) : IEnumerable
GetReleaseDownloadCount ( int projectId ) : int
GetScreenshotPath ( string screenshot ) : string
HasMemberDownloadedPackage ( int memberId, int projectId ) : bool
IsAdmin ( int id ) : bool
IsHq ( int id ) : bool
IsProjectContributor ( int memberId, int projectId ) : bool
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

StripHTML ( string inputString ) : string

비공개 메소드들

메소드 설명
MemberAvatarPath ( IPublishedContent member ) : string

메소드 상세

CleanInvalidXmlChars() 공개 정적인 메소드

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

GetAllTags() 공개 정적인 메소드

public static GetAllTags ( string group ) : string
group string
리턴 string

GetGravatar() 공개 정적인 메소드

public static GetGravatar ( string email, int size, string memberName, bool getRawUrl = false ) : string
email string
size int
memberName string
getRawUrl bool
리턴 string

GetLocalAvatar() 공개 정적인 메소드

public static GetLocalAvatar ( string imgPath, int minSize, string memberName, bool getRawUrl = false ) : string
imgPath string
minSize int
memberName string
getRawUrl bool
리턴 string

GetMember() 공개 정적인 메소드

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

GetMemberAvatar() 공개 정적인 메소드

public static GetMemberAvatar ( IPublishedContent member, int avatarSize, bool getRawUrl = false ) : string
member IPublishedContent
avatarSize int
getRawUrl bool
리턴 string

GetMemberAvatarImage() 공개 정적인 메소드

public static GetMemberAvatarImage ( IPublishedContent member ) : Image
member IPublishedContent
리턴 Image

GetProjectCompatibleVersions() 공개 정적인 메소드

Returns a dictionary of project id => any version that has been flagged as being compatible
public static GetProjectCompatibleVersions ( ) : IEnumerable>.Dictionary
리턴 IEnumerable>.Dictionary

GetProjectCompatibleVersions() 공개 정적인 메소드

public static GetProjectCompatibleVersions ( int projectId ) : IEnumerable
projectId int
리턴 IEnumerable

GetProjectContributors() 공개 정적인 메소드

public static GetProjectContributors ( int projectId ) : List
projectId int
리턴 List

GetProjectFileDownloadCount() 공개 정적인 메소드

public static GetProjectFileDownloadCount ( int fileId ) : int
fileId int
리턴 int

GetProjectMemberVotes() 공개 정적인 메소드

public static GetProjectMemberVotes ( int projectId ) : int
projectId int
리턴 int

GetProjectTotalDownload() 공개 정적인 메소드

Returns a dictionary of project id => total downloads
public static GetProjectTotalDownload ( ) : int>.Dictionary
리턴 int>.Dictionary

GetProjectTotalDownloadCount() 공개 정적인 메소드

public static GetProjectTotalDownloadCount ( int projectId ) : int
projectId int
리턴 int

GetProjectTotalVotes() 공개 정적인 메소드

Returns a dictionary of project id => total karma
public static GetProjectTotalVotes ( ) : int>.Dictionary
리턴 int>.Dictionary

GetProjectTotalVotes() 공개 정적인 메소드

public static GetProjectTotalVotes ( int projectId ) : int
projectId int
리턴 int

GetProjectsMemberHasDownloaded() 공개 정적인 메소드

public static GetProjectsMemberHasDownloaded ( int memberId ) : IEnumerable
memberId int
리턴 IEnumerable

GetProjectsMemberHasVotedUp() 공개 정적인 메소드

public static GetProjectsMemberHasVotedUp ( int memberId ) : IEnumerable
memberId int
리턴 IEnumerable

GetReleaseDownloadCount() 공개 정적인 메소드

public static GetReleaseDownloadCount ( int projectId ) : int
projectId int
리턴 int

GetScreenshotPath() 공개 정적인 메소드

public static GetScreenshotPath ( string screenshot ) : string
screenshot string
리턴 string

HasMemberDownloadedPackage() 공개 정적인 메소드

public static HasMemberDownloadedPackage ( int memberId, int projectId ) : bool
memberId int
projectId int
리턴 bool

IsAdmin() 공개 정적인 메소드

public static IsAdmin ( int id ) : bool
id int
리턴 bool

IsHq() 공개 정적인 메소드

public static IsHq ( int id ) : bool
id int
리턴 bool

IsProjectContributor() 공개 정적인 메소드

public static IsProjectContributor ( int memberId, int projectId ) : bool
memberId int
projectId int
리턴 bool

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

StripHTML() 공개 정적인 메소드

public static StripHTML ( string inputString ) : string
inputString string
리턴 string