\MemberProfilePage
A MemberProfilePage allows the administratior to set up a page with a subset of the fields available on the member object, then allow members to register and edit their profile using these fields.
Members who have permission to create new members can also be allowed to
create new members via this page.
It also supports email validation.
Synopsis
class MemberProfilePage
extends Page
implements
PermissionProvider
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $has_many = ;
- private static array $many_many = ;
- private static array $defaults = ;
- public static array $profile_field_defaults = ;
- private static string $description = '';
- private static string $icon = 'memberprofiles/images/memberprofilepage.png';
- // methods
- public void Link()
- public void getCMSFields()
- public void getSettingsFields()
- public string getEmailTemplate()
- public string getEmailSubject()
- public HasManyList Fields()
- public void onAfterWrite()
- public bool CanAddMembers()
Hierarchy
Extends
- Page
Implements
- PermissionProvider
Members
private
- $db
- $defaults
- $description
- $has_many
- $has_one
- $icon
- $many_many
public
- $profile_field_defaults
—
array
An array of default settings for some standard member fields.
Methods
public
- CanAddMembers()
- Fields() — Returns a list of profile field objects after synchronising them with the Member form fields.
- Link() — If profile editing is disabled, but the current user can add members, just link directly to the add action.
- getCMSFields()
- getEmailSubject() — Get either the default or custom email subject line.
- getEmailTemplate() — Get either the default or custom email template.
- getSettingsFields()
- onAfterWrite()