SilverWare\Contact\Pages\ContactPage
An extension of the page class for a contact 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 ContactPage
extends Page
{
- // members
- private static string $singular_name = 'Contact Page';
- private static string $plural_name = 'Contact Pages';
- private static string $description = 'A page which displays a contact form to allow a user to send a message';
- private static string $icon = 'silverware/contact: admin/client/dist/images/icons/ContactPage.png';
- private static string $table_name = 'SilverWare_ContactPage';
- private static array $db = ;
- private static array $has_many = ;
- private static array $defaults = ;
- // methods
- public FieldList getCMSFields()
- public array fieldLabels()
- public void populateDefaults()
- public integer getUnreadMessageCount()
- public array getNumberBadgeData()
- public integer getNumberBadgeText()
- public integer getNumberBadgeValue()
- public DataList getEnabledRecipients()
- public DataList getEnabledRecipientOptions()
Hierarchy
Extends
- Page
Members
private
- $db
—
array
Maps field names to field types for this object. - $defaults
—
array
Defines the default values for the fields of this object. - $description
—
string
Description of this object. - $has_many
—
array
Defines the has-many associations for this object. - $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
- fieldLabels() — Answers the labels for the fields of the receiver.
- getCMSFields() — Answers a list of field objects for the CMS interface.
- getEnabledRecipientOptions() — Answers an array of options for a recipients field.
- getEnabledRecipients() — Answers a list of enabled recipients.
- getNumberBadgeData() — Answers an array of number badge data for the CMS tabs.
- getNumberBadgeText() — Answers the text to display as a site tree number badge.
- getNumberBadgeValue() — Answers the value to display as a site tree number badge.
- getUnreadMessageCount() — Answers the number of unread messages.
- populateDefaults() — Populates the default values for the fields of the receiver.