NSWDPC\Authentication\ProfileExtension
Synopsis
class ProfileExtension
extends DataExtension
{
- // members
- private array $changed_fields = ;
- private static array $db = ;
- private static array $belongs_to = ;
- // methods
- public boolean getIsPending()
- public boolean IsProfilePending()
- public void getProfileRequiresSelfVerification()
- public void getProfileRequiresAdministrationApproval()
- public void IsProfilePendingNice()
- public void updateSummaryFields()
- public void updateCMSFields()
- public void onBeforeWrite()
- public void onBeforeDelete()
- public void storeChangedFields()
- public PendingProfile makePending()
- public void removePending()
- public boolean rePromptForActivationCode()
- public void sendRegistrationApprovalEmail()
- public boolean notifyProfileChange()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $belongs_to
- $changed_fields
- $db
Methods
public
- IsProfilePending() — Returns whether the profile is pending or not based on IsPending value and existence of profile with specific values
- IsProfilePendingNice() — For use in fields
- getIsPending() — Handle calls to IsPending
- getProfileRequiresAdministrationApproval()
- getProfileRequiresSelfVerification()
- makePending() — Mark a user as pending This creates a PendingProfile record
- notifyProfileChange() — Notify the current member of changes to their profile
- onBeforeDelete() — When the Member is deleted, delete any linked {@link PendingProfile}
- onBeforeWrite() — Take action prior to Member write()
- rePromptForActivationCode() — Handle reprompt of a user requiring them to enter a new activation code
- removePending() — Remove pending flags and profile from a Member
- sendRegistrationApprovalEmail() — Send the registration approval email for this member
- storeChangedFields() — Store for later use
- updateCMSFields() — Update CMS fields for the member
- updateSummaryFields() — Update summary data for gridfield tables