PurpleSpider\BasicNews\NewsArticle
Synopsis
class NewsArticle
extends Page
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $defaults = ;
- private static array $summary_fields = ;
- private static array $owns = ;
- private static string $default_sort = "Date DESC, Created DESC";
- private static string $default_parent = "news";
- private static string $description = 'An individual news item displayed on a News holder page';
- private static string $singular_name = 'News Article';
- private static string $plural_name = 'News Articles';
- private static string $icon_class = 'font-icon-p-news-item';
- private static array $allowed_children = ;
- private static boolean $can_be_root = false;
- private static string $table_name = "NewsArticle";
- // methods
- public void populateDefaults()
- public void getCMSFields()
- public void onBeforeWrite()
Hierarchy
Extends
- Page
Members
private
- $allowed_children
- $can_be_root
- $db
- $default_parent
- $default_sort
- $defaults
- $description
- $has_one
- $icon_class
- $owns
- $plural_name
- $singular_name
- $summary_fields
- $table_name