Toast\News\Article
Synopsis
class Article
extends Page
{
- // members
- private static string $singular_name = 'Article';
- private static string $plural_name = 'Articles';
- private static string $table_name = 'Article';
- private static string $default_sort = '"PublishDate" IS NULL DESC, "PublishDate" DESC';
- private static array $db = ;
- private static array $indexes = ;
- private static array $many_many = ;
- private static array $defaults = ;
- private static array $allowed_children = ;
- private static bool $can_be_root = false;
- private static bool $show_in_sitetree = false;
- // methods
- public void getClassNameForSearch()
- public void getCMSFields()
- public void onBeforeWrite()
- public void getCustomSummary()
- public void getDisplayPublishedDate()
Hierarchy
Extends
- Page
Members
private
- $allowed_children — array
- $can_be_root — Toast\News\bool
- $db — array
- $default_sort
- $defaults — array
- $indexes — array
- $many_many — array
- $plural_name
- $show_in_sitetree
—
Toast\News\bool
This will display or hide the current class from the SiteTree. This variable can be configured using YAML. - $singular_name
- $table_name