#region Disclaimer/Info
///////////////////////////////////////////////////////////////////////////////////////////////////
// Subtext WebLog
//
// Subtext is an open source weblog system that is a fork of the .TEXT
// weblog system.
//
// For updated news and information please visit http://subtextproject.com/
// Subtext is hosted at Google Code at http://code.google.com/p/subtext/
// The development mailing list is at subtext@googlegroups.com
//
// This project is licensed under the BSD license. See the License.txt file for more information.
///////////////////////////////////////////////////////////////////////////////////////////////////
#endregion
using System.Collections.Generic;
using Subtext.Framework.Components;
using Subtext.Framework.Providers;
namespace Subtext.Framework{
/// <summary>
/// Static class used to get collections of archived posts
/// (by month and year and category) from the data provider.
/// </summary>
public static class Archives
{
/// <summary>
/// Gets archived posts by month.
/// </summary>
/// <returns></returns>
public static ICollection<ArchiveCount> GetPostCountByMonth()
{
return ObjectProvider.Instance().GetPostCountsByMonth();
}
/// <summary>
/// Gets archived posts by year.
/// </summary>
/// <returns></returns>
public static ICollection<ArchiveCount> GetPostCountByYear()
{
return ObjectProvider.Instance().GetPostCountsByYear();
}
/// <summary>
/// Gets archived posts by category.
/// </summary>
/// <returns></returns>
public static ICollection<ArchiveCount> GetPostCountByCategory()
{
return ObjectProvider.Instance().GetPostCountsByCategory();
}
}
}
|