C# 클래스 ToSic.SexyContent.ContentGroup

파일 보기 프로젝트 열기: 2sic/2sxc 1 사용 예제들

공개 메소드들

메소드 설명
AddContentAndPresentationEntity ( string type, int sortOrder, int contentId, int presentationId ) : void

If SortOrder is not specified, adds at the end

ContentGroup ( System.Guid previewTemplateId, int zoneId, int appId ) : System

Instanciate a "temporary" ContentGroup with the specified templateId and no Content items

ContentGroup ( IEntity contentGroupEntity, int zoneId, int appId ) : System
ListWithNulls ( string type ) : List
RemoveContentAndPresentationEntities ( string type, int sortOrder ) : void

Removes entities from a group. This will also remove the corresponding presentation entities.

ReorderAll ( int newSequence ) : bool
ReorderEntities ( int sortOrder, int destinationSortOrder ) : void
UpdateEntityIfChanged ( string type, int sortOrder, int entityId, bool updatePresentation, int presentationId ) : void
UpdateTemplate ( int templateId ) : void
this ( string type ) : List

비공개 메소드들

메소드 설명
GetPresentationIdWithSameLengthAsContent ( ) : List
PrepareSavePackage ( string type, IEnumerable entityIds, int?[]>.Dictionary alreadyInitializedDictionary = null ) : int?[]>.Dictionary
ReCapitalizePartName ( string partName ) : string
SaveChangedLists ( int?[]>.Dictionary values ) : void

메소드 상세

AddContentAndPresentationEntity() 공개 메소드

If SortOrder is not specified, adds at the end
public AddContentAndPresentationEntity ( string type, int sortOrder, int contentId, int presentationId ) : void
type string
sortOrder int
contentId int
presentationId int
리턴 void

ContentGroup() 공개 메소드

Instanciate a "temporary" ContentGroup with the specified templateId and no Content items
public ContentGroup ( System.Guid previewTemplateId, int zoneId, int appId ) : System
previewTemplateId System.Guid
zoneId int
appId int
리턴 System

ContentGroup() 공개 메소드

public ContentGroup ( IEntity contentGroupEntity, int zoneId, int appId ) : System
contentGroupEntity IEntity
zoneId int
appId int
리턴 System

ListWithNulls() 공개 메소드

public ListWithNulls ( string type ) : List
type string
리턴 List

RemoveContentAndPresentationEntities() 공개 메소드

Removes entities from a group. This will also remove the corresponding presentation entities.
public RemoveContentAndPresentationEntities ( string type, int sortOrder ) : void
type string Should be 'Content' or "ListContent"
sortOrder int
리턴 void

ReorderAll() 공개 메소드

public ReorderAll ( int newSequence ) : bool
newSequence int
리턴 bool

ReorderEntities() 공개 메소드

public ReorderEntities ( int sortOrder, int destinationSortOrder ) : void
sortOrder int
destinationSortOrder int
리턴 void

UpdateEntityIfChanged() 공개 메소드

public UpdateEntityIfChanged ( string type, int sortOrder, int entityId, bool updatePresentation, int presentationId ) : void
type string
sortOrder int
entityId int
updatePresentation bool
presentationId int
리턴 void

UpdateTemplate() 공개 메소드

public UpdateTemplate ( int templateId ) : void
templateId int
리턴 void

this() 공개 메소드

public this ( string type ) : List
type string
리턴 List