C# Class Sitecore.Modules.WeBlog.WebForms.Layouts.Sidebar.BlogArchive

Inheritance: BaseSublayout
Datei anzeigen Open project: WeTeam/WeBlog

Protected Properties

Property Type Description
PanelArchive global::System.Web.UI.WebControls.Panel
Years global::System.Web.UI.WebControls.Repeater

Private Properties

Property Type Description

Public Methods

Method Description
BlogArchive ( IArchiveCore archiveCore = null ) : System

Protected Methods

Method Description
GetEntriesForYearAndMonth ( int yearAndMonth ) : List

Get the entries for the given year and month

GetEntryCountForYearAndMonth ( int yearAndMonth ) : int

Get the count of entries for the given year and month

GetFriendlyMonthName ( int yearAndMonth ) : string
GetMonths ( int year ) : int[]
MonthDataBound ( object sender, System.Web.UI.WebControls.RepeaterItemEventArgs args ) : void
Page_Load ( object sender, EventArgs e ) : void

Method Details

BlogArchive() public method

public BlogArchive ( IArchiveCore archiveCore = null ) : System
archiveCore IArchiveCore
return System

GetEntriesForYearAndMonth() protected method

Get the entries for the given year and month
protected GetEntriesForYearAndMonth ( int yearAndMonth ) : List
yearAndMonth int The year and month in yyyyMM format
return List

GetEntryCountForYearAndMonth() protected method

Get the count of entries for the given year and month
protected GetEntryCountForYearAndMonth ( int yearAndMonth ) : int
yearAndMonth int The year and month in yyyyMM format
return int

GetFriendlyMonthName() protected method

protected GetFriendlyMonthName ( int yearAndMonth ) : string
yearAndMonth int
return string

GetMonths() protected method

protected GetMonths ( int year ) : int[]
year int
return int[]

MonthDataBound() protected method

protected MonthDataBound ( object sender, System.Web.UI.WebControls.RepeaterItemEventArgs args ) : void
sender object
args System.Web.UI.WebControls.RepeaterItemEventArgs
return void

Page_Load() protected method

protected Page_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

PanelArchive protected_oe property

PanelArchive control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Panel PanelArchive
return global::System.Web.UI.WebControls.Panel

Years protected_oe property

Years control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Repeater Years
return global::System.Web.UI.WebControls.Repeater