\DatedUpdateHolder_Controller
The parameters apply in the following preference order: - Highest priority: Tag & date (or date range) - Month (and Year) - Pagination
So, when the user click on a tag link, the pagination, and month will be reset, but not the date filter. Also,
changing the date will not affect the tag, but will reset the month and pagination.
When the user clicks on a month, pagination will be reset, but tags retained. Pagination retains all other
parameters.
Synopsis
class DatedUpdateHolder_Controller
extends Page_Controller
{
- // members
- private static array $allowed_actions = ;
- // methods
- public void init()
- public string FilterDescription()
- public string getUpdateName()
- public array parseParams()
- public string AllTagsLink()
- public ArrayList UpdateTagsWithLinks()
- public TaxonomyTerm CurrentTag()
- public DatedUpdateHolder AvailableMonths()
- public PaginatedList FilteredUpdates()
- public Form DateRangeForm()
- public void doDateFilter()
- public void doDateReset()
- public string rss()
Hierarchy
Extends
- Page_Controller
Members
private
- $allowed_actions — array
Methods
public
- AllTagsLink() — Build the link - keep the date range, reset the rest.
- AvailableMonths() — Extract the available months based on the current query.
- CurrentTag() — Get the TaxonomyTerm related to the current tag GET parameter.
- DateRangeForm()
- FilterDescription() — Get a description of the current filter
- FilteredUpdates() — Get the updates based on the current query.
- UpdateTagsWithLinks() — List tags and attach links.
- doDateFilter()
- doDateReset()
- getUpdateName() — Get a label to use in the Updates display
- init() — Initialise the controller to include requirements and sort out the rss feed
- parseParams() — Parse URL parameters and set the filters
- rss()