C# Class Rock.Reporting.EntityHelper

Mostra file Open project: SparkDevNetwork/Rock Class Usage Examples

Public Methods

Method Description
AddEntityFieldForAttribute ( List entityFields, Rock.Web.Cache.AttributeCache attribute, bool limitToFilterableAttributes = true ) : void

Adds the entity field for attribute.

GetEntityFieldForAttribute ( Rock.Web.Cache.AttributeCache attribute, bool limitToFilterableAttributes = true ) : EntityField

Create an EntityField for an Attribute.

GetEntityFields ( Type entityType, bool includeOnlyReportingFields = true, bool limitToFilterableFields = true ) : List

Gets the entity fields.

Private Methods

Method Description
SetEntityFieldFromFieldTypeAttribute ( EntityField entityField, FieldTypeAttribute fieldTypeAttribute ) : bool

Sets the entity field from field type attribute.

Method Details

AddEntityFieldForAttribute() public static method

Adds the entity field for attribute.
public static AddEntityFieldForAttribute ( List entityFields, Rock.Web.Cache.AttributeCache attribute, bool limitToFilterableAttributes = true ) : void
entityFields List The entity fields.
attribute Rock.Web.Cache.AttributeCache The attribute.
limitToFilterableAttributes bool if set to true [limit to filterable attributes].
return void

GetEntityFieldForAttribute() public static method

Create an EntityField for an Attribute.
public static GetEntityFieldForAttribute ( Rock.Web.Cache.AttributeCache attribute, bool limitToFilterableAttributes = true ) : EntityField
attribute Rock.Web.Cache.AttributeCache The attribute.
limitToFilterableAttributes bool
return EntityField

GetEntityFields() public static method

Gets the entity fields.
public static GetEntityFields ( Type entityType, bool includeOnlyReportingFields = true, bool limitToFilterableFields = true ) : List
entityType System.Type Type of the entity.
includeOnlyReportingFields bool if set to true [include only reporting fields].
limitToFilterableFields bool if set to true [limit to filterable fields].
return List