C# Класс Rebel.Cms.Web.Macros.AbstractMacroEngine

Abstract class representing a MacroEngine
Показать файл Открыть проект

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

Метод Описание
Execute ( Content currentNode, string>.IDictionary macroParams, MacroDefinition macro, System.Web.Mvc.ControllerContext currentControllerContext, IRoutableRequestContext routableRequestContext ) : System.Web.Mvc.ActionResult

Executes the macro engine to render the macro

GetMacroItems ( IBackOfficeRequestContext backOfficeRequestContext ) : IEnumerable

Returns the macro items that can be used by this Engine

Each MacroEngine may render different items, such as PartialViews or ChildActions or Xslt files, Python files, etc... The Value set for each of the select list items will be the value passed into the MacroEngine's Execute method as the SelectedItem property of the MacroDefinition.

GetMacroParameters ( IBackOfficeRequestContext backOfficeRequestContext, MacroDefinition macroDefinition ) : IEnumerable

Gets a list of Macro parameters for the definition

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

Метод Описание
AbstractMacroEngine ( ) : System

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

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

protected AbstractMacroEngine ( ) : System
Результат System

Execute() публичный абстрактный Метод

Executes the macro engine to render the macro
public abstract Execute ( Content currentNode, string>.IDictionary macroParams, MacroDefinition macro, System.Web.Mvc.ControllerContext currentControllerContext, IRoutableRequestContext routableRequestContext ) : System.Web.Mvc.ActionResult
currentNode Content
macroParams string>.IDictionary
macro MacroDefinition
currentControllerContext System.Web.Mvc.ControllerContext
routableRequestContext IRoutableRequestContext
Результат System.Web.Mvc.ActionResult

GetMacroItems() публичный абстрактный Метод

Returns the macro items that can be used by this Engine
Each MacroEngine may render different items, such as PartialViews or ChildActions or Xslt files, Python files, etc... The Value set for each of the select list items will be the value passed into the MacroEngine's Execute method as the SelectedItem property of the MacroDefinition.
public abstract GetMacroItems ( IBackOfficeRequestContext backOfficeRequestContext ) : IEnumerable
backOfficeRequestContext IBackOfficeRequestContext
Результат IEnumerable

GetMacroParameters() публичный абстрактный Метод

Gets a list of Macro parameters for the definition
public abstract GetMacroParameters ( IBackOfficeRequestContext backOfficeRequestContext, MacroDefinition macroDefinition ) : IEnumerable
backOfficeRequestContext IBackOfficeRequestContext
macroDefinition MacroDefinition
Результат IEnumerable