C# Класс Rebel.Cms.Web.Editors.AbstractContentEditorController

Наследование: StandardEditorController
Показать файл Открыть проект

Защищенные методы

Метод Описание
AbstractContentEditorController ( IBackOfficeRequestContext requestContext ) : System.Linq
ReconstructModelPropertyIds ( BasicContentEditorModel contentViewModel ) : void

This method is used for creating new content and for updating an existing entity with new attributes that may have been created on the document type (attribution schema).

We need to paste the model back together now with the correct Ids since we generated them on the last Action and we've re-generated them again now. This is done by looking up the Alias Key/Value pair in the posted form element for each of the model's properties. When the key value pair is found we can extract the id that was assigned to it in the HTML markup and re-assign that id to the actual property id so it binds.

Приватные методы

Метод Описание
Delete ( HiveId id ) : System.Web.Mvc.JsonResult
Edit ( HiveId id ) : System.Web.Mvc.ActionResult

Описание методов

AbstractContentEditorController() защищенный Метод

protected AbstractContentEditorController ( IBackOfficeRequestContext requestContext ) : System.Linq
requestContext IBackOfficeRequestContext
Результат System.Linq

ReconstructModelPropertyIds() защищенный Метод

This method is used for creating new content and for updating an existing entity with new attributes that may have been created on the document type (attribution schema).
We need to paste the model back together now with the correct Ids since we generated them on the last Action and we've re-generated them again now. This is done by looking up the Alias Key/Value pair in the posted form element for each of the model's properties. When the key value pair is found we can extract the id that was assigned to it in the HTML markup and re-assign that id to the actual property id so it binds.
protected ReconstructModelPropertyIds ( BasicContentEditorModel contentViewModel ) : void
contentViewModel Rebel.Cms.Web.Model.BackOffice.Editors.BasicContentEditorModel
Результат void