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

Field Type to select a single (or null) SiteFieldType Stored as Site.Id
Наследование: FieldType, IEntityFieldType
Показать файл Открыть проект

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

Метод Описание
EditControl ( ConfigurationValue>.Dictionary configurationValues, string id ) : System.Web.UI.Control

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

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

Reads new values entered by the user for the field ( as int )

GetEditValueAsEntityId ( System 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.

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

Sets the value. ( as int )

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

Sets the edit value from IEntity.Id value

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

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

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

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

Reads new values entered by the user for the field ( as int )
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 ( System control, ConfigurationValue>.Dictionary configurationValues ) : int?
control System 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

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

Sets the value. ( as int )
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 ( System control, ConfigurationValue>.Dictionary configurationValues, int id ) : void
control System The control.
configurationValues ConfigurationValue>.Dictionary The configuration values.
id int The identifier.
Результат void