C# 클래스 Rebel.Cms.Web.Macros.PartialViewMacroEngine

상속: AbstractMacroEngine
파일 보기 프로젝트 열기: RebelCMS/rebelcmsxu5

공개 메소드들

메소드 설명
Execute ( Content currentNode, string>.IDictionary macroParams, MacroDefinition macro, ControllerContext currentControllerContext, IRoutableRequestContext routableRequestContext ) : System.Web.Mvc.ActionResult
GetMacroItems ( IBackOfficeRequestContext backOfficeRequestContext ) : IEnumerable

Returns all of the PartialViews that can be used for Macros, including all partial views existing in the standard Rebel partials folder and also the ones found inside of packages.

Package PartialViews will be prefixed with the Package name '.'

GetMacroParameters ( IBackOfficeRequestContext backOfficeRequestContext, MacroDefinition macroDefinition ) : IEnumerable

Returns the PartialView Macro parameters

Partial view macro parameters are determined by getting an instance of the partial view and looking for it's publicly declared properties which are done by declaring a region in Razor like so: @functions { public int Age {get;set;} }

PartialViewMacroEngine ( ) : System

보호된 메소드들

메소드 설명
GetFullViewPath ( MacroDefinition macro, IRoutableRequestContext routableRequestContext ) : string

Returns the full view path without the extension

메소드 상세

Execute() 공개 메소드

public Execute ( Content currentNode, string>.IDictionary macroParams, MacroDefinition macro, ControllerContext currentControllerContext, IRoutableRequestContext routableRequestContext ) : System.Web.Mvc.ActionResult
currentNode Content
macroParams string>.IDictionary
macro MacroDefinition
currentControllerContext ControllerContext
routableRequestContext IRoutableRequestContext
리턴 System.Web.Mvc.ActionResult

GetFullViewPath() 보호된 메소드

Returns the full view path without the extension
protected GetFullViewPath ( MacroDefinition macro, IRoutableRequestContext routableRequestContext ) : string
macro MacroDefinition
routableRequestContext IRoutableRequestContext
리턴 string

GetMacroItems() 공개 메소드

Returns all of the PartialViews that can be used for Macros, including all partial views existing in the standard Rebel partials folder and also the ones found inside of packages.
Package PartialViews will be prefixed with the Package name '.'
public GetMacroItems ( IBackOfficeRequestContext backOfficeRequestContext ) : IEnumerable
backOfficeRequestContext IBackOfficeRequestContext
리턴 IEnumerable

GetMacroParameters() 공개 메소드

Returns the PartialView Macro parameters
Partial view macro parameters are determined by getting an instance of the partial view and looking for it's publicly declared properties which are done by declaring a region in Razor like so: @functions { public int Age {get;set;} }
public GetMacroParameters ( IBackOfficeRequestContext backOfficeRequestContext, MacroDefinition macroDefinition ) : IEnumerable
backOfficeRequestContext IBackOfficeRequestContext
macroDefinition MacroDefinition
리턴 IEnumerable

PartialViewMacroEngine() 공개 메소드

public PartialViewMacroEngine ( ) : System
리턴 System