Firebrand\Hail\Pages\HailPage
Hail Page
Holds the article / publication preview list
- Author: Marc Espiard, Firebrand
Synopsis
class HailPage
extends Page
{
- // members
- private static string $table_name = "HailPage";
- private static array $db = ;
- private static array $defaults = ;
- private static array $has_one = ;
- private static array $many_many = ;
- private static array $owns = ;
- private static string $icon = "vendor/firebrandhq/silverstripe-hail/client/dist/images/admin-icon.png";
- private static array $type_map = ;
- private Article $current_article = false;
- // methods
- public void getCMSFields()
- public void getCMSValidator()
- public void onBeforeDelete()
- public void AbsoluteLink()
- public Article|null getCurrentArticle()
- public string MetaTags()
- public string getMetaDescription()
- public string getTitle()
- public PaginatedList getHailList()
- public PaginatedList getFullHailList()
- public array getAllowedPublicTags()
- public string|null getOGImage()
- public string getOGTitle()
- public string getOGType()
- public string getOGDescription()
- public string|null getOGVideo()
Hierarchy
Extends
- Page
Members
private
- $current_article
—
Firebrand\Hail\Models\Article
The article accessed in the current request - $db
- $defaults
- $has_one
- $icon
- $many_many
- $owns
- $table_name
- $type_map
—
array
Maps the types of items we can display and their classes
Methods
public
- AbsoluteLink()
- MetaTags() — Add a canonical link meta tag
- getAllowedPublicTags() — Get the PublicTags that are allowed / configured on this Hail Page
- getCMSFields()
- getCMSValidator()
- getCurrentArticle() — Get article accessed in current request
- getFullHailList() — Get a full List of items (Articles and Publications) associated with that HailPage
- getHailList() — Get a Paginated List of items (Articles and Publications) associated with that HailPage
- getMetaDescription() — Get Page or Article MetaDescription Return the article description when viewing an article
- getOGDescription() — Open Graph Description
- getOGImage() — Open Graph Image URL
- getOGTitle() — Open Graph Title
- getOGType() — Open Graph Type
- getOGVideo() — Open Graph Video Link
- getTitle() — Get page or article title
- onBeforeDelete()