\NewsHolder
Container page for News, Events and Media articles, provides filtering, pagination and rss
This code is forked from https://gitlab.cwp.govt.nz/cwp/cwp (16/Jul/2014)
- Author: scienceninjas@silverstripe.com
- License: BSD License (http://silverstripe.org/bsd-license/)
Synopsis
class NewsHolder
extends DatedUpdateHolder
{
- // members
- private static string $description = 'Container page for News, Events and Media articles, provides filtering and pagination';
- private static array $allowed_children = ;
- private static string $default_child = 'NewsPage';
- private static string $update_name = 'News';
- private static string $update_class = 'NewsPage';
- private static array $db = ;
- private static string $icon = 'datedupdates/images/icons/sitetree_images/news_listing.png';
- // methods
- public static DataList AllUpdates()
- public void getCMSFields()
- public void getFooterHeadingAnchor()
- // Inherited methods from DatedUpdateHolder
- public DataList UpdateTags()
- public DataList Updates()
- public static DataList AllUpdates()
- public static ArrayList ExtractMonths()
- public string getDefaultRSSLink()
- public string getSubscriptionTitle()
Hierarchy
Extends
Members
private
- $allowed_children
- $db
- $default_child
- $description
- $icon — string
- $update_class
- $update_name
Methods
public
- AllUpdates() — Find all site's news items, based on some filters.
- getCMSFields()
Inherited from DatedUpdateHolder
public
- AllUpdates() — Find all the sites updates, based on some filters.
- ExtractMonths() — Produce an ArrayList of available months out of the updates contained in the DataList.
- UpdateTags() — Find all distinct tags (TaxonomyTerms) associated with the DatedUpdatePages under this holder.
- Updates() — Wrapper to find all updates belonging to this holder, based on some filters.
- getDefaultRSSLink()
- getSubscriptionTitle()