C# Class Rebel.Cms.Web.Macros.AbstractMacroEngine

Abstract class representing a MacroEngine
Afficher le fichier Open project: RebelCMS/rebelcmsxu5

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
AbstractMacroEngine ( ) : System

Method Details

AbstractMacroEngine() protected méthode

protected AbstractMacroEngine ( ) : System
Résultat System

Execute() public abstract méthode

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
Résultat System.Web.Mvc.ActionResult

GetMacroItems() public abstract méthode

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
Résultat IEnumerable

GetMacroParameters() public abstract méthode

Gets a list of Macro parameters for the definition
public abstract GetMacroParameters ( IBackOfficeRequestContext backOfficeRequestContext, MacroDefinition macroDefinition ) : IEnumerable
backOfficeRequestContext IBackOfficeRequestContext
macroDefinition MacroDefinition
Résultat IEnumerable