C# 클래스 Umbraco.Pugpig.Core.Installers.UmbracoXmlImportHelper

파일 보기 프로젝트 열기: aqueduct/UmbracoPugPigConnector 1 사용 예제들

공개 메소드들

메소드 설명
InitDataTypes ( IFrameworkContext frameworkContext ) : List

Creates the test data types

InitDocTypes ( ) : IEnumerable
InitTemplates ( ) : IEnumerable

Initialize templates from xml

SetupDocTypeInheritence ( IEnumerable docTypes, Uri providerGroupRoot ) : IEnumerable

TODO: there is something strange going on where inherited doctypes appear multiple times in the gui

UmbracoXmlImportHelper ( IAttributeTypeRegistry attributeTypeRegistry, IPropertyEditorFactory propertyEditorFactory ) : System

비공개 메소드들

메소드 설명
CreateDocType ( System.Xml.Linq.XElement docTypeXml, Func generateTabs, Uri providerGroupRoot ) : Umbraco.Cms.Web.Model.BackOffice.Editors.DocumentTypeEditorModel

Creates doctype from xml

CreateDocTypes ( Func generateTabs, Uri providerGroupRoot ) : IEnumerable

Create doctypes from xml

CreateNodeName ( Umbraco.Cms.Web.Model.BackOffice.Editors.DocumentTypeEditorModel docType ) : Umbraco.Cms.Web.Model.BackOffice.Editors.DocumentTypeProperty

Creates Node Name property

CreateProperties ( System.Xml.Linq.XElement docTypeXml, Umbraco.Cms.Web.Model.BackOffice.Editors.DocumentTypeEditorModel docType ) : HashSet

Create properties from xml

CreateSelectedTemplate ( Umbraco.Cms.Web.Model.BackOffice.Editors.DocumentTypeEditorModel docType ) : Umbraco.Cms.Web.Model.BackOffice.Editors.DocumentTypeProperty

Creates selected template property

GetAllowedTemplates ( System.Xml.Linq.XElement docTypeXml ) : IEnumerable

GetInheritedProperties ( Umbraco.Cms.Web.Model.BackOffice.Editors.DocumentTypeEditorModel inheritedFromDocType ) : HashSet

Gets properties and inherited properties from parent doctype.

GetInheritedTabs ( Umbraco.Cms.Web.Model.BackOffice.Editors.DocumentTypeEditorModel inheritedFromDocType ) : HashSet

Gets tabs and inherited tabs from parent doctype.

GetTabs ( System.Xml.Linq.XElement docTypeXml ) : HashSet

Gets tabs from xml

GetTabsTopLevel ( ) : IEnumerable

Creates tabs from top level of xml

SetUpAllowedChildren ( IEnumerable docTypes, Uri providerGroupRoot ) : void

Gets allowed children form xml.

메소드 상세

InitDataTypes() 공개 메소드

Creates the test data types
public InitDataTypes ( IFrameworkContext frameworkContext ) : List
frameworkContext IFrameworkContext
리턴 List

InitDocTypes() 공개 메소드

public InitDocTypes ( ) : IEnumerable
리턴 IEnumerable

InitTemplates() 공개 메소드

Initialize templates from xml
public InitTemplates ( ) : IEnumerable
리턴 IEnumerable

SetupDocTypeInheritence() 공개 메소드

TODO: there is something strange going on where inherited doctypes appear multiple times in the gui
public SetupDocTypeInheritence ( IEnumerable docTypes, Uri providerGroupRoot ) : IEnumerable
docTypes IEnumerable
providerGroupRoot System.Uri
리턴 IEnumerable

UmbracoXmlImportHelper() 공개 메소드

public UmbracoXmlImportHelper ( IAttributeTypeRegistry attributeTypeRegistry, IPropertyEditorFactory propertyEditorFactory ) : System
attributeTypeRegistry IAttributeTypeRegistry
propertyEditorFactory IPropertyEditorFactory
리턴 System