SilverWare\MailChimp\Pages\SubscribePage
An extension of the page class for a MailChimp subscribe page.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2018 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class SubscribePage
extends Page
{
- // members
- private static string $singular_name = 'Subscribe Page';
- private static string $plural_name = 'Subscribe Pages';
- private static string $description = 'Allows a user to subscribe to a MailChimp mailing list';
- private static string $icon = 'silverware/mailchimp: admin/client/dist/images/icons/SubscribePage.png';
- private static string $table_name = 'SilverWare_MailChimp_SubscribePage';
- private static array $db = ;
- private static array $defaults = ;
- // methods
- public FieldList getCMSFields()
- public array fieldLabels()
- public void populateDefaults()
- public string getNoListMessage()
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. - $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.
- getNoListMessage() — Answers a message string to be shown when no list is available.
- populateDefaults() — Populates the default values for the fields of the receiver.