A Wee Tiny Blog

Home || Downloads || Documentation || Change Log || License || Roadmap || Contact



 

Method: GetEntrySummariesForYear

Parameters

year
A four-digit representation of the year you want to summarize

Description

This method scans your database for entries made during the given year and produces an array listing their dates, subjects and IDs. The main use of this function is generating archive pages, which typically list only the minimal information about the posts they index.

The returned array is easily processed using PHP's foreach construct, as shown on the Creating an archive page tutorial.

Return value

This method always returns an array. If successful, this will be an array of entry arrays, otherwise it will just be an empty array and the internal error flag will have been set.

Note: since this method is aimed at creating summaries, none of the entry arrays have their icon or content fields filled in.


 

Hosting generously provided by
Get A Wee Tiny Blog at SourceForge.net. Fast, secure and Free Open Source software downloads