C# Класс ToSic.SexyContent.ContentGroup

Показать файл Открыть проект Примеры использования класса

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

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