CWP\CWP\PageTypes\NewsPage
Synopsis
class NewsPage
extends DatedUpdatePage
{
- // members
- private static string $description = 'Describes an item of news';
- private static string $default_parent = 'NewsHolderPage';
- private static boolean $can_be_root = false;
- private static string $icon_class = 'font-icon-p-news-item';
- private static string $singular_name = 'News Page';
- private static string $plural_name = 'News Pages';
- private static array $db = ;
- private static array $has_one = ;
- private static array $owns = ;
- private static string $table_name = 'NewsPage';
- // methods
- public void fieldLabels()
- public void getCMSFields()
- public DBField getNewsPageAuthor()
- // Inherited methods from DatedUpdatePage
- public void populateDefaults()
- public void fieldLabels()
- public void getCMSFields()
Hierarchy
Members
private
- $can_be_root
- $db
- $default_parent
- $description
- $has_one
- $icon_class
- $owns
- $plural_name
- $singular_name
- $table_name
Methods
public
- fieldLabels()
- getCMSFields()
- getNewsPageAuthor() — Returns the Author DB field for this page type.
Inherited from CWP\CWP\PageTypes\DatedUpdatePage
public
- fieldLabels()
- getCMSFields()
- populateDefaults() — Add the default for the Date being the current day.