C# Class Rock.Field.Types.BinaryFileFieldType

Field Type used to display a dropdown list of binary files of a specific type Stored as BinaryFile's Guid
Inheritance: FieldType, IEntityFieldType
Afficher le fichier Open project: NewSpring/Rock

Méthodes publiques

Méthode Description
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

FilterValueControl ( ConfigurationValue>.Dictionary configurationValues, string id, bool required, FilterMode filterMode ) : Control

Gets the filter value control with the specified FilterMode

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

Returns the field's current value(s)

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

Reads new values entered by the user for the field returns BinaryFile.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.

GetFilterValueValue ( Control control, ConfigurationValue>.Dictionary configurationValues ) : string

Gets the filter value value.

HasFilterControl ( ) : bool

Determines whether this filter has a filter control

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

Sets the configuration value.

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

Sets the value.

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

Sets the edit value from IEntity.Id value

Method Details

ConfigurationControls() public méthode

Creates the HTML controls required to configure this type of field
public ConfigurationControls ( ) : List
Résultat List

ConfigurationKeys() public méthode

Returns a list of the configuration keys
public ConfigurationKeys ( ) : List
Résultat List

ConfigurationValues() public méthode

Gets the configuration value.
public ConfigurationValues ( List controls ) : ConfigurationValue>.Dictionary
controls List The controls.
Résultat ConfigurationValue>.Dictionary

EditControl() public méthode

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
Résultat System.Web.UI.Control

FilterValueControl() public méthode

Gets the filter value control with the specified FilterMode
public FilterValueControl ( ConfigurationValue>.Dictionary configurationValues, string id, bool required, FilterMode filterMode ) : Control
configurationValues ConfigurationValue>.Dictionary The configuration values.
id string The identifier.
required bool if set to true [required].
filterMode FilterMode The filter mode.
Résultat System.Web.UI.Control

FormatValue() public méthode

Returns the field's current value(s)
public FormatValue ( Control parentControl, string value, ConfigurationValue>.Dictionary configurationValues, bool condensed ) : string
parentControl System.Web.UI.Control 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)
Résultat string

GetEditValue() public méthode

Reads new values entered by the user for the field returns BinaryFile.Guid
public GetEditValue ( Control control, ConfigurationValue>.Dictionary configurationValues ) : string
control System.Web.UI.Control Parent control that controls were added to in the CreateEditControl() method
configurationValues ConfigurationValue>.Dictionary
Résultat string

GetEditValueAsEntityId() public méthode

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.
Résultat int?

GetEntity() public méthode

Gets the entity.
public GetEntity ( string value ) : IEntity
value string The value.
Résultat IEntity

GetEntity() public méthode

Gets the entity.
public GetEntity ( string value, RockContext rockContext ) : IEntity
value string The value.
rockContext Rock.Data.RockContext The rock context.
Résultat IEntity

GetFilterValueValue() public méthode

Gets the filter value value.
public GetFilterValueValue ( Control control, ConfigurationValue>.Dictionary configurationValues ) : string
control System.Web.UI.Control The control.
configurationValues ConfigurationValue>.Dictionary The configuration values.
Résultat string

HasFilterControl() public méthode

Determines whether this filter has a filter control
public HasFilterControl ( ) : bool
Résultat bool

SetConfigurationValues() public méthode

Sets the configuration value.
public SetConfigurationValues ( List controls, ConfigurationValue>.Dictionary configurationValues ) : void
controls List
configurationValues ConfigurationValue>.Dictionary
Résultat void

SetEditValue() public méthode

Sets the value.
public SetEditValue ( Control control, ConfigurationValue>.Dictionary configurationValues, string value ) : void
control System.Web.UI.Control The control.
configurationValues ConfigurationValue>.Dictionary
value string The value.
Résultat void

SetEditValueFromEntityId() public méthode

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.
Résultat void