C# Class RockWeb.Blocks.Cms.ContentChannelView

Inheritance: Rock.Web.UI.RockBlockCustomSettings
Afficher le fichier Open project: SparkDevNetwork/Rock

Méthodes publiques

Méthode Description
ShowEdit ( ) : void

Shows the edit.

Méthodes protégées

Méthode Description
LoadViewState ( object savedState ) : void

Restores the view-state information from a previous user control request that was saved by the M:System.Web.UI.UserControl.SaveViewState method.

OnInit ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Init event.

OnLoad ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Load event.

SaveViewState ( ) : object

Saves any user control view-state changes that have occurred since the last page postback.

ShowSettings ( ) : void

Shows the settings.

ddlChannel_SelectedIndexChanged ( object sender, EventArgs e ) : void
filterControl_DeleteClick ( object sender, EventArgs e ) : void

Handles the DeleteClick event of the filterControl control.

groupControl_AddFilterClick ( object sender, EventArgs e ) : void

Handles the AddFilterClick event of the groupControl control.

groupControl_AddGroupClick ( object sender, EventArgs e ) : void

Handles the AddGroupClick event of the groupControl control.

groupControl_DeleteGroupClick ( object sender, EventArgs e ) : void

Handles the DeleteGroupClick event of the groupControl control.

lbSave_Click ( object sender, EventArgs e ) : void

Private Methods

Méthode Description
ContentDynamic_BlockUpdated ( object sender, EventArgs e ) : void
CreateFilterControl ( ContentChannel channel, DataViewFilter filter, bool setSelection, RockContext rockContext ) : void

Creates the filter control.

CreateFilterControl ( Control parentControl, DataViewFilter filter, bool setSelection, RockContext rockContext ) : void

Creates the filter control.

DeleteDataViewFilter ( DataViewFilter dataViewFilter, DataViewFilterService service ) : void
GetContent ( List errorMessages ) : List
GetFilterControl ( ) : DataViewFilter
GetFilterControl ( Control control ) : DataViewFilter
GetFilterFieldControl ( FilterField filterField ) : DataViewFilter
GetFilterGroupControl ( FilterGroup filterGroup ) : DataViewFilter
GetMetaValueFromAttribute ( string input, List content ) : string
GetTemplate ( ) : Template
HackEntityFields ( ContentChannel channel, RockContext rockContext ) : List

The PropertyFilter checks for it's property/attribute list in a cached items object before recreating them using reflection and loading of generic attributes. Because of this, we're going to load them here and exclude some properties and add additional attributes specific to the channel type, and then save list to same cached object so that property filter lists our collection of properties/attributes instead.

SetListValue ( ListControl listControl, string value ) : void

Sets the list value.

SetNewDataFilterGuids ( DataViewFilter dataViewFilter ) : void
ShowView ( ) : void

Binds the grid.

btnTrigger_Click ( object sender, EventArgs e ) : void

Method Details

LoadViewState() protected méthode

Restores the view-state information from a previous user control request that was saved by the M:System.Web.UI.UserControl.SaveViewState method.
protected LoadViewState ( object savedState ) : void
savedState object An that represents the user control state to be restored.
Résultat void

OnInit() protected méthode

Raises the E:System.Web.UI.Control.Init event.
protected OnInit ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
Résultat void

OnLoad() protected méthode

Raises the E:System.Web.UI.Control.Load event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs The object that contains the event data.
Résultat void

SaveViewState() protected méthode

Saves any user control view-state changes that have occurred since the last page postback.
protected SaveViewState ( ) : object
Résultat object

ShowEdit() public méthode

Shows the edit.
public ShowEdit ( ) : void
Résultat void

ShowSettings() protected méthode

Shows the settings.
protected ShowSettings ( ) : void
Résultat void

ddlChannel_SelectedIndexChanged() protected méthode

protected ddlChannel_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

filterControl_DeleteClick() protected méthode

Handles the DeleteClick event of the filterControl control.
protected filterControl_DeleteClick ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
Résultat void

groupControl_AddFilterClick() protected méthode

Handles the AddFilterClick event of the groupControl control.
protected groupControl_AddFilterClick ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
Résultat void

groupControl_AddGroupClick() protected méthode

Handles the AddGroupClick event of the groupControl control.
protected groupControl_AddGroupClick ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
Résultat void

groupControl_DeleteGroupClick() protected méthode

Handles the DeleteGroupClick event of the groupControl control.
protected groupControl_DeleteGroupClick ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
Résultat void

lbSave_Click() protected méthode

protected lbSave_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void