SilverWare\Legals\Pages\CopyrightPage
An extension of the legal page class for a copyright page.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2017 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class CopyrightPage
extends LegalPage
{
- // members
- private static string $singular_name = 'Copyright Page';
- private static string $plural_name = 'Copyright Pages';
- private static string $description = 'Shows copyright information for the website';
- private static string $icon = 'silverware/legals: admin/client/dist/images/icons/CopyrightPage.png';
- private static string $table_name = 'SilverWare_CopyrightPage';
- private static string $hide_ancestor = LegalPage::class;
- private static array $db = ;
- private static array|string $token_mappings = ;
- // methods
- public FieldList getCMSFields()
- public array fieldLabels()
- public void populateDefaults()
- public string getYear()
- // Inherited methods from LegalPage
- public FieldList getCMSFields()
- public array fieldLabels()
- public DBHTMLText getMetaContent()
- public string getEntity()
- public string getContactLink()
- public string getProcessedContent()
- protected Page findContactPage()
Hierarchy
Members
private
- $db
—
array
Maps field names to field types for this object. - $description
—
string
Description of this object. - $hide_ancestor
—
string
Defines an ancestor class to hide from the admin interface. - $icon
—
string
Icon file for this object. - $plural_name
—
string
Human-readable plural name. - $singular_name
—
string
Human-readable singular name. - $table_name
—
string
Defines the table name to use for this object. - $token_mappings
—
SilverWare\Legals\Pages\array|string
Maps token names to properties and methods for this object.
Methods
public
- fieldLabels() — Answers the labels for the fields of the receiver.
- getCMSFields() — Answers a list of field objects for the CMS interface.
- getYear() — Answers the year for the template.
- populateDefaults() — Populates the default values for the fields of the receiver.
Inherited from SilverWare\Legals\Pages\LegalPage
protected
- findContactPage() — Attempts to locate and answer the contact page for the site.
public
- fieldLabels() — Answers the labels for the fields of the receiver.
- getCMSFields() — Answers a list of field objects for the CMS interface.
- getContactLink() — Answers the link to the contact page.
- getEntity() — Answers the entity for the template.
- getMetaContent() — Answers the meta content for the receiver.
- getProcessedContent() — Answers the processed content for the template.