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

Afficher le fichier Open project: cake-build/website Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
AddToArchive ( Cake.Web.Core.Content.Blog.BlogPost post ) : void
AddToLookup ( Cake.Web.Core.Content.Blog.BlogPost post ) : void

Method Details

BlogIndex() public méthode

public BlogIndex ( IEnumerable posts ) : System
posts IEnumerable
Résultat System

GetArchive() public méthode

public GetArchive ( ) : IReadOnlyList
Résultat IReadOnlyList

GetAuthors() public méthode

public GetAuthors ( ) : IReadOnlyList
Résultat IReadOnlyList

GetBlogPost() public méthode

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

GetBlogPosts() public méthode

public GetBlogPosts ( ) : IReadOnlyList
Résultat IReadOnlyList

GetBlogPosts() public méthode

public GetBlogPosts ( string category, string author, int year, int month ) : IReadOnlyList
category string
author string
year int
month int
Résultat IReadOnlyList

GetBlogPostsByAuthor() public méthode

public GetBlogPostsByAuthor ( string author ) : IReadOnlyList
author string
Résultat IReadOnlyList

GetBlogPostsByCategory() public méthode

public GetBlogPostsByCategory ( string category ) : IReadOnlyList
category string
Résultat IReadOnlyList

GetBlogPostsByYearAndMonth() public méthode

public GetBlogPostsByYearAndMonth ( int year, int month ) : IReadOnlyList
year int
month int
Résultat IReadOnlyList

GetCategories() public méthode

public GetCategories ( ) : IReadOnlyList
Résultat IReadOnlyList