메소드 | 설명 | |
---|---|---|
AddDisplayControls ( IHasAttributes item, Control parentControl, List |
Gets the display HTML.
|
|
AddDisplayControls ( IHasAttributes item, List |
Adds the display controls.
|
|
AddEditControls ( IHasAttributes item, Control parentControl, bool setValue, string validationGroup, List |
Adds edit controls for each of the item's attributes
|
|
AddEditControls ( IHasAttributes item, Control parentControl, bool setValue, string validationGroup, List |
Adds the edit controls.
|
|
AddEditControls ( IHasAttributes item, Control parentControl, bool setValue, string validationGroup = "", bool supressOrdering = false ) : void |
Adds edit controls for each of the item's attributes
|
|
AddEditControls ( IHasAttributes item, Control parentControl, bool setValue, string validationGroup, int numberOfColumns ) : void |
Adds the edit controls.
|
|
AddEditControls ( string category, List |
Adds the edit controls.
|
|
AddEditControls ( string category, List |
Adds the edit controls.
|
|
CopyAttributes ( IHasAttributes source, IHasAttributes target ) : void |
Copies the attributes from one entity to another
|
|
GetAttributeCategories ( IHasAttributes entity, bool onlyIncludeGridColumns = false, bool allowMultiple = false, bool supressOrdering = false ) : List |
Gets the attribute categories.
|
|
GetAttributeCategories ( List |
Gets attributes grouped by category
|
|
GetAttributeValueExpression ( IQueryable |
Gets the attribute value expression.
|
|
GetEditValues ( Control parentControl, IHasAttributes item ) : void |
Gets the edit values.
|
|
LoadAttributes ( Rock entity ) : void |
Loads the P:IHasAttributes.Attributes and P:IHasAttributes.AttributeValues of any IHasAttributes object
|
|
LoadAttributes ( Rock entity, RockContext rockContext ) : void |
Loads the P:IHasAttributes.Attributes and P:IHasAttributes.AttributeValues of any IHasAttributes object
|
|
SaveAttributeEdits ( AttributeEditor edtAttribute, int entityTypeId, string entityTypeQualifierColumn, string entityTypeQualifierValue, RockContext rockContext = null ) : Rock.Model.Attribute |
Saves any attribute edits made using an Attribute Editor control If a rockContext value is included, this method will save any previous changes made to the context |
|
SaveAttributeEdits ( Rock newAttribute, int entityTypeId, string entityTypeQualifierColumn, string entityTypeQualifierValue, RockContext rockContext = null ) : Rock.Model.Attribute |
Saves any attribute edits made to an attribute. Note: any attributes will be flushed from the cache. Be sure to either reload the cache or the individual attribute when you are done. If a rockContext value is included, this method will save any previous changes made to the context |
|
SaveAttributeValue ( IHasAttributes model, Rock attribute, string newValue, RockContext rockContext = null ) : void |
Saves an attribute value. If a rockContext value is included, this method will save any previous changes made to the context |
|
SaveAttributeValue ( int entityId, Rock attribute, string newValue, RockContext rockContext = null ) : void |
Saves the attribute value. If a rockContext value is included, this method will save any previous changes made to the context |
|
SaveAttributeValues ( IHasAttributes model, RockContext rockContext = null ) : void |
Saves the attribute values. If a rockContext value is included, this method will save any previous changes made to the context |
|
UpdateAttributes ( Type type, int entityTypeId, RockContext rockContext = null ) : bool |
Updates the attributes. If a rockContext value is included, this method will save any previous changes made to the context |
|
UpdateAttributes ( Type type, int entityTypeId, string entityQualifierColumn, string entityQualifierValue, RockContext rockContext = null ) : bool |
Uses reflection to find any FieldAttribute attributes for the specified type and will create and/or update a Rock.Model.Attribute record for each attribute defined. If a rockContext value is included, this method will save any previous changes made to the context |
메소드 | 설명 | |
---|---|---|
AddAttributeCategory ( List |
||
UpdateAttribute ( FieldAttribute property, int entityTypeId, string entityQualifierColumn, string entityQualifierValue, RockContext rockContext = null ) : bool |
Adds or Updates a Rock.Model.Attribute item for the attribute. If a rockContext value is included, this method will save any previous changes made to the context |
public static AddDisplayControls ( IHasAttributes item, Control parentControl, List |
||
item | IHasAttributes | The item. |
parentControl | Control | The parent control. |
exclude | List |
The exclude. |
supressOrdering | bool | if set to |
showHeading | bool | if set to |
리턴 | void |
public static AddDisplayControls ( IHasAttributes item, List |
||
item | IHasAttributes | The item. |
attributeCategories | List |
The attribute categories. |
parentControl | Control | The parent control. |
exclude | List |
The exclude. |
showHeading | bool | if set to |
리턴 | void |
public static AddEditControls ( IHasAttributes item, Control parentControl, bool setValue, string validationGroup, List |
||
item | IHasAttributes | The item. |
parentControl | Control | The parent control. |
setValue | bool | if set to |
validationGroup | string | The validation group. |
exclude | List |
List of attribute names not to render |
supressOrdering | bool | if set to |
리턴 | void |
public static AddEditControls ( IHasAttributes item, Control parentControl, bool setValue, string validationGroup, List |
||
item | IHasAttributes | The item. |
parentControl | Control | The parent control. |
setValue | bool | if set to |
validationGroup | string | The validation group. |
exclude | List |
The exclude. |
supressOrdering | bool | if set to |
numberOfColumns | int | The number of columns. |
리턴 | void |
public static AddEditControls ( IHasAttributes item, Control parentControl, bool setValue, string validationGroup = "", bool supressOrdering = false ) : void | ||
item | IHasAttributes | The item. |
parentControl | Control | The parent control. |
setValue | bool | if set to |
validationGroup | string | The validation group. |
supressOrdering | bool | if set to |
리턴 | void |
public static AddEditControls ( IHasAttributes item, Control parentControl, bool setValue, string validationGroup, int numberOfColumns ) : void | ||
item | IHasAttributes | The item. |
parentControl | Control | The parent control. |
setValue | bool | if set to |
validationGroup | string | The validation group. |
numberOfColumns | int | The number of columns. |
리턴 | void |
public static AddEditControls ( string category, List |
||
category | string | The category. |
attributeKeys | List |
The attribute keys. |
item | IHasAttributes | The item. |
parentControl | Control | The parent control. |
validationGroup | string | The validation group. |
setValue | bool | if set to |
exclude | List |
The exclude. |
리턴 | void |
public static AddEditControls ( string category, List |
||
category | string | The category. |
attributeKeys | List |
The attribute keys. |
item | IHasAttributes | The item. |
parentControl | Control | The parent control. |
validationGroup | string | The validation group. |
setValue | bool | if set to |
exclude | List |
The exclude. |
numberOfColumns | int | The number of columns. |
리턴 | void |
public static CopyAttributes ( IHasAttributes source, IHasAttributes target ) : void | ||
source | IHasAttributes | The source. |
target | IHasAttributes | The target. |
리턴 | void |
public static GetAttributeCategories ( IHasAttributes entity, bool onlyIncludeGridColumns = false, bool allowMultiple = false, bool supressOrdering = false ) : List |
||
entity | IHasAttributes | The entity. |
onlyIncludeGridColumns | bool | if set to |
allowMultiple | bool | if set to |
supressOrdering | bool | if set to |
리턴 | List |
public static GetAttributeCategories ( List |
||
attributes | List |
The attributes. |
onlyIncludeGridColumns | bool | if set to |
allowMultiple | bool | if set to |
리턴 | List |
public static GetAttributeValueExpression ( IQueryable |
||
attributeValues | IQueryable |
The attribute values. |
attributeValueParameter | ParameterExpression | The attribute value parameter. |
parentIdProperty | Expression | The parent identifier property. |
attributeId | int | The attribute identifier. |
리턴 | Expression |
public static GetEditValues ( Control parentControl, IHasAttributes item ) : void | ||
parentControl | Control | The parent control. |
item | IHasAttributes | The item. |
리턴 | void |
public static LoadAttributes ( Rock entity ) : void | ||
entity | Rock | The item. |
리턴 | void |
public static LoadAttributes ( Rock entity, RockContext rockContext ) : void | ||
entity | Rock | The item. |
rockContext | RockContext | The rock context. |
리턴 | void |
public static SaveAttributeEdits ( AttributeEditor edtAttribute, int entityTypeId, string entityTypeQualifierColumn, string entityTypeQualifierValue, RockContext rockContext = null ) : Rock.Model.Attribute | ||
edtAttribute | AttributeEditor | The edt attribute. |
entityTypeId | int | The entity type identifier. |
entityTypeQualifierColumn | string | The entity type qualifier column. |
entityTypeQualifierValue | string | The entity type qualifier value. |
rockContext | RockContext | The rock context. |
리턴 | Rock.Model.Attribute |
public static SaveAttributeEdits ( Rock newAttribute, int entityTypeId, string entityTypeQualifierColumn, string entityTypeQualifierValue, RockContext rockContext = null ) : Rock.Model.Attribute | ||
newAttribute | Rock | The new attribute. |
entityTypeId | int | The entity type identifier. |
entityTypeQualifierColumn | string | The entity type qualifier column. |
entityTypeQualifierValue | string | The entity type qualifier value. |
rockContext | RockContext | The rock context. |
리턴 | Rock.Model.Attribute |
public static SaveAttributeValue ( IHasAttributes model, Rock attribute, string newValue, RockContext rockContext = null ) : void | ||
model | IHasAttributes | The model. |
attribute | Rock | The attribute. |
newValue | string | The new value. |
rockContext | RockContext | The rock context. |
리턴 | void |
public static SaveAttributeValue ( int entityId, Rock attribute, string newValue, RockContext rockContext = null ) : void | ||
entityId | int | The entity identifier. |
attribute | Rock | The attribute. |
newValue | string | The new value. |
rockContext | RockContext | The rock context. |
리턴 | void |
public static SaveAttributeValues ( IHasAttributes model, RockContext rockContext = null ) : void | ||
model | IHasAttributes | The model. |
rockContext | RockContext | The rock context. |
리턴 | void |
public static UpdateAttributes ( Type type, int entityTypeId, RockContext rockContext = null ) : bool | ||
type | Type | The type (should be a |
entityTypeId | int | The entity type id. |
rockContext | RockContext | The rock context. |
리턴 | bool |
public static UpdateAttributes ( Type type, int entityTypeId, string entityQualifierColumn, string entityQualifierValue, RockContext rockContext = null ) : bool | ||
type | Type | The type (should be a |
entityTypeId | int | The entity type id. |
entityQualifierColumn | string | The entity qualifier column. |
entityQualifierValue | string | The entity qualifier value. |
rockContext | RockContext | The rock context. |
리턴 | bool |