C# Class Cake.Web.Core.Content.Blog.BlogIndex

Mostra file Open project: cake-build/website Class Usage Examples

Public Methods

Method Description
BlogIndex ( IEnumerable posts ) : System
GetArchive ( ) : IReadOnlyList
GetAuthors ( ) : IReadOnlyList
GetBlogPost ( int year, int month, string slug ) : Cake.Web.Core.Content.Blog.BlogPost
GetBlogPosts ( ) : IReadOnlyList
GetBlogPosts ( string category, string author, int year, int month ) : IReadOnlyList
GetBlogPostsByAuthor ( string author ) : IReadOnlyList
GetBlogPostsByCategory ( string category ) : IReadOnlyList
GetBlogPostsByYearAndMonth ( int year, int month ) : IReadOnlyList
GetCategories ( ) : IReadOnlyList

Private Methods

Method Description
AddToArchive ( Cake.Web.Core.Content.Blog.BlogPost post ) : void
AddToLookup ( Cake.Web.Core.Content.Blog.BlogPost post ) : void

Method Details

BlogIndex() public method

public BlogIndex ( IEnumerable posts ) : System
posts IEnumerable
return System

GetArchive() public method

public GetArchive ( ) : IReadOnlyList
return IReadOnlyList

GetAuthors() public method

public GetAuthors ( ) : IReadOnlyList
return IReadOnlyList

GetBlogPost() public method

public GetBlogPost ( int year, int month, string slug ) : Cake.Web.Core.Content.Blog.BlogPost
year int
month int
slug string
return Cake.Web.Core.Content.Blog.BlogPost

GetBlogPosts() public method

public GetBlogPosts ( ) : IReadOnlyList
return IReadOnlyList

GetBlogPosts() public method

public GetBlogPosts ( string category, string author, int year, int month ) : IReadOnlyList
category string
author string
year int
month int
return IReadOnlyList

GetBlogPostsByAuthor() public method

public GetBlogPostsByAuthor ( string author ) : IReadOnlyList
author string
return IReadOnlyList

GetBlogPostsByCategory() public method

public GetBlogPostsByCategory ( string category ) : IReadOnlyList
category string
return IReadOnlyList

GetBlogPostsByYearAndMonth() public method

public GetBlogPostsByYearAndMonth ( int year, int month ) : IReadOnlyList
year int
month int
return IReadOnlyList

GetCategories() public method

public GetCategories ( ) : IReadOnlyList
return IReadOnlyList