SilverStripe\Newsletter\Model\Recipient
Synopsis
class Recipient
extends DataObject
{
- // members
- private static array $db = ;
- private static array $belongs_many_many = ;
- private static array $has_many = ;
- private static array $indexes = ;
- private static string $default_sort = '"FirstName", "Surname"';
- private static string $table_name = 'Recipient';
- private static array $searchable_fields = ;
- private static array $summary_fields = ;
- private static array $test_data = ;
- private static string $unique_identifier_field = 'Email';
- // methods
- public void validate()
- public void onBeforeWrite()
- public void onAfterWrite()
- public void getCMSFields()
- public void fieldLabels()
- public string getTitle()
- public string getHashText()
- public void generateValidateHashAndStore()
- public void onBeforeDelete()
- public void canDelete()
- public void getFrontEndFields()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Tasks
Line | Task |
---|---|
242+ | Make it possible to handle database errors such as a "duplicate key" error |
Members
private
- $belongs_many_many
- $db
- $default_sort
- $has_many
- $indexes
- $searchable_fields
- $summary_fields
- $table_name
- $test_data
- $unique_identifier_field
—
string
The unique field used to identify this recipient. Duplication will not be allowed for this feild.
Methods
public
- canDelete()
- fieldLabels()
- generateValidateHashAndStore() — Generate an auto login token which can be used to reset the password, at the same time hashing it and storing in the database.
- getCMSFields()
- getFrontEndFields()
- getHashText()
- getTitle() — Returns the title of this Recipient for the MailingList auto-complete add field. The title includes the email address, so that users with the same name can be distinguished.
- onAfterWrite()
- onBeforeDelete()
- onBeforeWrite()
- validate()