SilverWare\Legals\Pages\PrivacyPage
An extension of the legal page class for a privacy 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 PrivacyPage
extends LegalPage
{
- // members
- private static string $singular_name = 'Privacy Page';
- private static string $plural_name = 'Privacy Pages';
- private static string $description = 'Shows privacy information for the website';
- private static string $icon = 'silverware/legals: admin/client/dist/images/icons/PrivacyPage.png';
- private static string $table_name = 'SilverWare_PrivacyPage';
- private static string $hide_ancestor = LegalPage::class;
- // methods
- public void populateDefaults()
- // 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
- $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.
Methods
public
- 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.