C# Class Umbraco.Plugins.Connector.Helpers.ContentHelper

ファイルを表示 Open project: narek725/Umbraco-8-CMS-DotNET-c-sharp

Public Methods

Method Description
AddAllowedDocumentType ( IContentTypeService service, string parentAlias, string childAlias, int order = -1 ) : void
AddTemplate ( IContentType type, IContentTypeService service, Template template, int order = -1 ) : void
AssetAlreadyExists ( string fileName, string outputDirectory ) : bool
BrowserIsMobile ( ) : bool
CopyPhysicalAssets ( IEmbeddedResource embeddedResource ) : void
DecodeUrl ( string url ) : string
EncodeUrl ( string url ) : string
OnOffToBool ( string state ) : bool
RandomString ( int length ) : string
Sanitize ( string value ) : string
SetTemplate ( IContentService service, IFileService fileService, int nodeId, string templateAlias ) : void

Private Methods

Method Description
GetListOfEmbeddedResources ( IEmbeddedResource embeddedResource, ResourceType resourceType ) : List

Method Details

AddAllowedDocumentType() public static method

public static AddAllowedDocumentType ( IContentTypeService service, string parentAlias, string childAlias, int order = -1 ) : void
service IContentTypeService
parentAlias string
childAlias string
order int
return void

AddTemplate() public static method

public static AddTemplate ( IContentType type, IContentTypeService service, Template template, int order = -1 ) : void
type IContentType
service IContentTypeService
template Template
order int
return void

AssetAlreadyExists() public static method

public static AssetAlreadyExists ( string fileName, string outputDirectory ) : bool
fileName string
outputDirectory string
return bool

BrowserIsMobile() public static method

public static BrowserIsMobile ( ) : bool
return bool

CopyPhysicalAssets() public static method

public static CopyPhysicalAssets ( IEmbeddedResource embeddedResource ) : void
embeddedResource IEmbeddedResource
return void

DecodeUrl() public static method

public static DecodeUrl ( string url ) : string
url string
return string

EncodeUrl() public static method

public static EncodeUrl ( string url ) : string
url string
return string

OnOffToBool() public static method

public static OnOffToBool ( string state ) : bool
state string
return bool

RandomString() public static method

public static RandomString ( int length ) : string
length int
return string

Sanitize() public static method

public static Sanitize ( string value ) : string
value string
return string

SetTemplate() public static method

public static SetTemplate ( IContentService service, IFileService fileService, int nodeId, string templateAlias ) : void
service IContentService
fileService IFileService
nodeId int
templateAlias string
return void