SilverCart\Model\Newsletter\Newsletter
Bundles newsletter related functionality.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class Newsletter
{
- // methods
- public array fieldLabels()
- public string fieldLabel()
- public static boolean subscribeRegisteredCustomer()
- public static boolean unSubscribeRegisteredCustomer()
- public static void subscribeAnonymousCustomer()
- public static void unSubscribeAnonymousCustomer()
- public static boolean isEmailAllocatedByRegularCustomer()
- public static boolean isEmailAllocatedByAnonymousRecipient()
- public static void sendOptInEmailTo()
- public static string createConfirmationHash()
Hierarchy
Uses
- SilverStripe\Core\Extensible
- SilverStripe\Core\Injector\Injectable
Methods
public
- createConfirmationHash() — Creates a hash from the given parameters and returns it.
- fieldLabel() — Get a human-readable label for a single field, see {@link fieldLabels()} for more details.
- fieldLabels() — Field labels for display in tables.
- isEmailAllocatedByAnonymousRecipient() — Checks if the given email address is allocated by an anonymous newsletter subscriber.
- isEmailAllocatedByRegularCustomer() — Checks if the given email address is allocated by a registered regular customer.
- sendOptInEmailTo() — Sends an email with opt-in link to the given address.
- subscribeAnonymousCustomer() — Adds an anonymous customer to the newsletter subscribers list.
- subscribeRegisteredCustomer() — Adds a member to the newsletter subscribers list.
- unSubscribeAnonymousCustomer() — Removes an anonymous customer from the newsletter subscribers list.
- unSubscribeRegisteredCustomer() — Removes a member from the newsletter subscribers list.