SilverWare\Social\Buttons\EmailSharingButton
An extension of the sharing button class for an email sharing button.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2017 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class EmailSharingButton
extends SharingButton
{
- // members
- private static string $singular_name = 'Email Sharing Button';
- private static string $plural_name = 'Email Sharing Buttons';
- private static string $description = 'A sharing button to share the current page via email';
- private static string $table_name = 'SilverWare_EmailSharingButton';
- private static string $hide_ancestor = SharingButton::class;
- private static array $db = ;
- // methods
- public FieldList getCMSFields()
- public array fieldLabels()
- public void populateDefaults()
- public string getSubject()
- public string getMessage()
- public string getButtonLink()
- // Inherited methods from SharingButton
- public RequiredFields getCMSValidator()
- public string getButtonLink()
- public string getCurrentPageLink()
- public string getCurrentPageTitle()
- public DBHTMLText|string renderSelf()
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. - $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.
- getButtonLink() — Answers the link for the sharing button.
- getCMSFields() — Answers a list of field objects for the CMS interface.
- getMessage() — Answers the message for the email.
- getSubject() — Answers the subject for the email.
- populateDefaults() — Populates the default values for the fields of the receiver.
Inherited from SilverWare\Social\Model\SharingButton
public
- getButtonLink() — Answers the link for the sharing button.
- getCMSValidator() — Answers a validator for the CMS interface.
- getCurrentPageLink() — Answers the link for the current page.
- getCurrentPageTitle() — Answers the title for the current page.
- renderSelf() — Renders the object for the HTML template.