\NewsHolderPage_Controller
Synopsis
class NewsHolderPage_Controller
extends Page_Controller
{
- // members
- private static array $allowed_actions = ;
- private static array $url_handlers = ;
- protected $current_item;
- protected $current_tag;
- // methods
- public array allowedActions()
- public parent::handleAction handleAction()
- public void init()
- private void setNews()
- public News getNews()
- private void setTag()
- public Tag getTag()
- public void getCurrentAuthor()
- private $this|null needsRedirect()
- public void MetaTitle()
- public RSSFeed rss()
- public DataList getRSSFeed()
- private array setupFilter()
- public ArrayList allNews()
- public Tag allTags()
- public Array generateAddedFilter()
- public form CommentForm()
Hierarchy
Extends
- Page_Controller
Tasks
Line | Task |
---|---|
287+ | Implement translations? |
380+ | obey translatable. |
394+ | make language-specific versions |
428+ | can this be made smaller? Would be nice! |
454+ | Make this language-specific |
466+ | cleanup the month-method maybe? |
Members
private
- $allowed_actions
- $url_handlers
protected
- $current_item
- $current_tag
Methods
private
- needsRedirect() — This feature is cleaner for redirection.
- setNews() — Set the current newsitem, if available.
- setTag() — Set the current tag
- setupFilter() — Setup the filter for the getters. This keeps in mind if the user is allowed to view this item.
public
- CommentForm() — I'm tired of writing comments!
- MetaTitle() — Meta! This is so Meta! I mean, MetaTitle!
- allNews()
- allTags()
- allowedActions() — Setup the allowed actions to work with the SiteConfig settings.
- generateAddedFilter() — Get the items, per month/year/author If no month or year is set, current month/year is assumed
- getCurrentAuthor()
- getNews() — Get the current newsitem
- getRSSFeed()
- getTag() — Get the current tag.
- handleAction() — Setup the handling of the actions. This is needed for the custom URL Actions set in the SiteConfig
- init() — Include the tagcloud scripts. Configure in newsmodule.js!
- rss() — I should make this configurable from SiteTree? Generate an RSS-feed.