C# Класс Rock.Field.Types.PersonFieldType

Наследование: FieldType, IEntityFieldType, ILinkableFieldType
Показать файл Открыть проект

Открытые методы

Метод Описание
AttributeFilterExpression ( ConfigurationValue>.Dictionary configurationValues, List filterValues, System parameterExpression ) : Expression

Gets a filter expression for an attribute value.

ConfigurationControls ( ) : List

Creates the HTML controls required to configure this type of field

ConfigurationKeys ( ) : List

Returns a list of the configuration keys

ConfigurationValues ( List controls ) : ConfigurationValue>.Dictionary

Gets the configuration value.

EditControl ( ConfigurationValue>.Dictionary configurationValues, string id ) : Control

Creates the control(s) necessary for prompting user for a new value

FormatValue ( System parentControl, string value, ConfigurationValue>.Dictionary configurationValues, bool condensed ) : string

Returns the field's current value(s)

GetEditValue ( System control, ConfigurationValue>.Dictionary configurationValues ) : string

Reads new values entered by the user for the field (as PersonAlias.Guid)

GetEditValueAsEntityId ( Control control, ConfigurationValue>.Dictionary configurationValues ) : int?

Gets the edit value as the IEntity.Id

GetEntity ( string value ) : IEntity

Gets the entity.

GetEntity ( string value, RockContext rockContext ) : IEntity

Gets the entity.

SetConfigurationValues ( List controls, ConfigurationValue>.Dictionary configurationValues ) : void

Sets the configuration value.

SetEditValue ( System control, ConfigurationValue>.Dictionary configurationValues, string value ) : void

Sets the value (as PersonAlias.Guid)

SetEditValueFromEntityId ( Control control, ConfigurationValue>.Dictionary configurationValues, int id ) : void

Sets the edit value from IEntity.Id value

UrlLink ( string value, ConfigurationValue>.Dictionary configurationValues ) : string

Formats the value extended.

Описание методов

AttributeFilterExpression() публичный Метод

Gets a filter expression for an attribute value.
public AttributeFilterExpression ( ConfigurationValue>.Dictionary configurationValues, List filterValues, System parameterExpression ) : Expression
configurationValues ConfigurationValue>.Dictionary The configuration values.
filterValues List The filter values.
parameterExpression System The parameter expression.
Результат System.Linq.Expressions.Expression

ConfigurationControls() публичный Метод

Creates the HTML controls required to configure this type of field
public ConfigurationControls ( ) : List
Результат List

ConfigurationKeys() публичный Метод

Returns a list of the configuration keys
public ConfigurationKeys ( ) : List
Результат List

ConfigurationValues() публичный Метод

Gets the configuration value.
public ConfigurationValues ( List controls ) : ConfigurationValue>.Dictionary
controls List The controls.
Результат ConfigurationValue>.Dictionary

EditControl() публичный Метод

Creates the control(s) necessary for prompting user for a new value
public EditControl ( ConfigurationValue>.Dictionary configurationValues, string id ) : Control
configurationValues ConfigurationValue>.Dictionary The configuration values.
id string
Результат System.Web.UI.Control

FormatValue() публичный Метод

Returns the field's current value(s)
public FormatValue ( System parentControl, string value, ConfigurationValue>.Dictionary configurationValues, bool condensed ) : string
parentControl System The parent control.
value string Information about the value
configurationValues ConfigurationValue>.Dictionary The configuration values.
condensed bool Flag indicating if the value should be condensed (i.e. for use in a grid column)
Результат string

GetEditValue() публичный Метод

Reads new values entered by the user for the field (as PersonAlias.Guid)
public GetEditValue ( System control, ConfigurationValue>.Dictionary configurationValues ) : string
control System Parent control that controls were added to in the CreateEditControl() method
configurationValues ConfigurationValue>.Dictionary The configuration values.
Результат string

GetEditValueAsEntityId() публичный Метод

Gets the edit value as the IEntity.Id
public GetEditValueAsEntityId ( Control control, ConfigurationValue>.Dictionary configurationValues ) : int?
control System.Web.UI.Control The control.
configurationValues ConfigurationValue>.Dictionary The configuration values.
Результат int?

GetEntity() публичный Метод

Gets the entity.
public GetEntity ( string value ) : IEntity
value string The value.
Результат IEntity

GetEntity() публичный Метод

Gets the entity.
public GetEntity ( string value, RockContext rockContext ) : IEntity
value string The value.
rockContext Rock.Data.RockContext The rock context.
Результат IEntity

SetConfigurationValues() публичный Метод

Sets the configuration value.
public SetConfigurationValues ( List controls, ConfigurationValue>.Dictionary configurationValues ) : void
controls List
configurationValues ConfigurationValue>.Dictionary
Результат void

SetEditValue() публичный Метод

Sets the value (as PersonAlias.Guid)
public SetEditValue ( System control, ConfigurationValue>.Dictionary configurationValues, string value ) : void
control System The control.
configurationValues ConfigurationValue>.Dictionary The configuration values.
value string The value.
Результат void

SetEditValueFromEntityId() публичный Метод

Sets the edit value from IEntity.Id value
public SetEditValueFromEntityId ( Control control, ConfigurationValue>.Dictionary configurationValues, int id ) : void
control System.Web.UI.Control The control.
configurationValues ConfigurationValue>.Dictionary The configuration values.
id int The identifier.
Результат void

UrlLink() публичный Метод

Formats the value extended.
public UrlLink ( string value, ConfigurationValue>.Dictionary configurationValues ) : string
value string The value.
configurationValues ConfigurationValue>.Dictionary The configuration values.
Результат string