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

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

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

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

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

FilterControl ( ConfigurationValue>.System configurationValues, string id, bool required, Rock filterMode ) : System.Web.UI.Control

Creates the control needed to filter (query) values using this field type.

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. Returns with Page.Guid,PageRoute.Guid or just Page.Guid

HasFilterControl ( ) : bool

Determines whether this filter has a filter control

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

Sets the value ( as either Page.Guid,PageRoute.Guid or just Page.Guid if not specific to a route )

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

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

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

Creates the control needed to filter (query) values using this field type.
public FilterControl ( ConfigurationValue>.System configurationValues, string id, bool required, Rock filterMode ) : System.Web.UI.Control
configurationValues ConfigurationValue>.System The configuration values.
id string The identifier.
required bool if set to true [required].
filterMode Rock The filter mode.
Результат 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. Returns with Page.Guid,PageRoute.Guid or just Page.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

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

Determines whether this filter has a filter control
public HasFilterControl ( ) : bool
Результат bool

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

Sets the value ( as either Page.Guid,PageRoute.Guid or just Page.Guid if not specific to a route )
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