Class NewsletterRole
NewsletterRole provides extensions to the Member class, with new
database fields and functions specific to the newsletter module.
- Extension
-
DataObjectDecorator
-
NewsletterRole
Methods summary
public
array
|
|
public
|
#
updateCMSFields(
Update the CMS fields specifically for Member decorated by this NewsletterRole decorator. |
public
|
#
updateMemberFormFields(
Update the frontend fields specifically for Member decorated by this NewsletterRole decorator. |
public
|
|
public
|
#
unsubscribeFromNewsletter(
Unsubscribe the current |
public
|
#
saveNewsletterSubscriptions( mixed $groups )
This does some cunning and automatically save the newsletter subscriptions by adding and removing the member from the appropriate groups based on a checkboxset field. This function is called by the form handler whenever form->saveInto($member); is called with an checkboxsetfield in the data with the name "newsletterSubscriptions" |
public
|
|
public
|
Methods inherited from DataObjectDecorator
augmentDatabase(),
augmentSQL(),
augmentWrite(),
can(),
canCreate(),
canDelete(),
canEdit(),
flushCache(),
load_extra_statics(),
onAfterDelete(),
onAfterWrite(),
onBeforeDelete(),
onBeforeWrite(),
populateDefaults(),
requireDefaultRecords(),
updateCMSActions(),
updateFieldLabels(),
updateFrontEndFields(),
updateSummaryFields()
Methods inherited from Extension
__construct(),
clearOwner(),
getOwner(),
get_classname_without_arguments(),
setOwner()