C# Class Rock.Lava.Blocks.RockEntity

Inheritance: RockLavaBlockBase
显示文件 Open project: NewSpring/Rock

Public Methods

Method Description
Initialize ( string tagName, string markup, List tokens ) : void

Initializes the specified tag name.

OnStartup ( ) : void

Method that will be run at Rock startup

RegisterEntityCommands ( ) : void

Helper method to register the entity commands.

Render ( Context context, TextWriter result ) : void

Renders the specified context.

Private Methods

Method Description
BusinessFilters ( IQueryable query, string>.Dictionary parms ) : IQueryable

Special filters for businesses.

GetCurrentPerson ( DotLiquid context ) : Person

Gets the current person.

GetDataViewExpression ( int dataViewId, IService service, System.Linq.Expressions.ParameterExpression parmExpression, Rock.Web.Cache.EntityTypeCache entityTypeCache ) : Expression

Gets the data view expression.

GetDynamicFilterExpression ( string dynamicFilter, string dynamicFilterValue, Type type, IService service, System.Linq.Expressions.ParameterExpression parmExpression ) : Expression

Gets the dynamic filter expression.

ParseMarkup ( string markup, Context context ) : string>.Dictionary

Parses the markup.

ParseWhere ( string whereClause, Type type, IService service, System.Linq.Expressions.ParameterExpression parmExpression, Type entityType, Rock.Web.Cache.EntityTypeCache entityTypeCache ) : Expression

Parses the where.

PersonFilters ( IQueryable query, string>.Dictionary parms ) : IQueryable

Special filters for the person entity.

PropertyComparisonConverstion ( string comparisonOperator ) : int

Properties the comparison converstion.

RegisterEntityCommand ( Rock.Web.Cache.EntityTypeCache entityType ) : void

Method Details

Initialize() public method

Initializes the specified tag name.
public Initialize ( string tagName, string markup, List tokens ) : void
tagName string Name of the tag.
markup string The markup.
tokens List The tokens.
return void

OnStartup() public method

Method that will be run at Rock startup
public OnStartup ( ) : void
return void

RegisterEntityCommands() public static method

Helper method to register the entity commands.
public static RegisterEntityCommands ( ) : void
return void

Render() public method

Renders the specified context.
Your Lava command must contain at least one valid filter. If you configured a filter it's possible that the property or attribute you provided does not exist.
public Render ( Context context, TextWriter result ) : void
context DotLiquid.Context The context.
result System.IO.TextWriter The result.
return void