C# Класс OurUmbraco.Our.Utils

Показать файл Открыть проект

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

Метод Описание
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